Last active
December 17, 2015 03:08
-
-
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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