rpm2cpio [*.rpm] | cpio -div > /dev/null
--------------------------------------------------------------
#!/bin/sh
if [ $# -lt 2 ];then
echo "usage : $0 [rpm dir] [install dir]"
exit
fi
rpm_dir=$1
install_dir=$2
curdir=`pwd`
for i in `find $rpm_dir/ | grep -E "*.rpm"`
do
i=`basename $i`
echo "install $i"
install $rpm_dir/$i $install_dir
cd $install_dir
rpm2cpio $i | cpio -dvi 2> /dev/null
rm $i -f
cd $curdir
done