nixpkgs/pkgs/tools/archivers/rpmextract/rpmextract.sh
2014-10-20 03:16:24 +04:00

9 lines
139 B
Bash

#!/bin/sh
if [ "$1" = "" ]; then
echo "usage: rpmextract package_name" 1>&2
exit 1
fi
@rpm@/bin/rpm2cpio "$1" | @cpio@/bin/cpio -idv