Created
January 30, 2018 11:37
-
-
Save alex-pat/c35db5383976888b25f6204800aec561 to your computer and use it in GitHub Desktop.
srpms unpacker
This file contains 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
unpack_rpm() { | |
local pkgname="${1%.*}" | |
pkgname="${pkgname%.*}" | |
echo "Package $pkgname" | |
mkdir "$pkgname" | |
cd "$pkgname" | |
rpm2cpio "../$1" | cpio -idmv | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment