Results 1 to 1 of 1
Anyways if any of you feel like exctracting your rpms,
and have used this executable for linux before then
you might apreciate the improved version of rpm2cpio
it doesnt make ...
- 02-24-2009 #1
rpm2cpio fully functional
Anyways if any of you feel like exctracting your rpms,
and have used this executable for linux before then
you might apreciate the improved version of rpm2cpio
it doesnt make a directory for the directory.rpm's you
may have already exctracted in your current working
directory. it actually only makes a directory for files now.
hense the if [ -f $rpm2cpio ] <--- checks to see if the item is a file.
use it modify it have fun, its bug free now I think.
#!/bin/bash
for rpm2cpio in *.rpm
do
if [ -f $rpm2cpio ]
then
mv $rpm2cpio tmp$rpm2cpio
mkdir $rpm2cpio
mv tmp$rpm2cpio $rpm2cpio/$rpm2cpio
cd $rpm2cpio
rpm2cpio $rpm2cpio | cpio -idmv
else
for $rpm2cpio in *.rpm
do
echo "$rpm2cpio"
echo "is directory"
done
fi
done
ls -hlsa | more
cd ..


Reply With Quote