Skip to content

Instantly share code, notes, and snippets.

@alex-pat
Created January 30, 2018 11:37
Show Gist options
  • Save alex-pat/c35db5383976888b25f6204800aec561 to your computer and use it in GitHub Desktop.
Save alex-pat/c35db5383976888b25f6204800aec561 to your computer and use it in GitHub Desktop.
srpms unpacker
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