Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Last active December 17, 2015 03:08
Show Gist options
  • Save BlackMaria/5540923 to your computer and use it in GitHub Desktop.
Save BlackMaria/5540923 to your computer and use it in GitHub Desktop.
Just another silly hack. I needed some files from a package, but the package was removed from the mirror! POW!
#!/bin/sh
#
# Some times you jsut want the files from an installed package...
#
for package in $( rpm -qa |egrep $1 )
do
rpm -ql $package | xargs tar -czvf $package.tgz
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment