Fix to bug 456

Added a script that unpacks RPMs to a directory
This commit is contained in:
Markus Makela 2014-09-29 13:54:11 +03:00
parent fa47bf760a
commit 1111059ee8

11
unpack_rmp.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
#This script unpacks the RPM to the provided directory
if [[ $# -lt 2 ]]
then
echo "Usage: unpack_rpm.sh <path to RPM package> <installation directory>"
exit 0
fi
mkdir -p $2
cd $2 && rpm2cpio $1 | cpio -id