Fix to bug 456
Added a script that unpacks RPMs to a directory
This commit is contained in:
11
unpack_rmp.sh
Executable file
11
unpack_rmp.sh
Executable 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
|
||||||
Reference in New Issue
Block a user