Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/lib/rpm/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #!/bin/sh
# a universal interface to Unix OS package managment systems
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:$PATH"
export PATH
osname=`uname -s`
if test $? -ne 0 || test X$osname = X ; then
echo "I can't determine what platform this is. Exiting"
exit 1
fi
#
# Set OS dependent defaults
#
case $osname in
Linux)
check_all_packages='rpm -Va'
list_all_packages='rpm -qa'
list_all_files='rpm -qla'
list_all_files_in_package='rpm -ql $1'
full_package_name='rpm -q $1'
query_file='rpm -qf $1'
;;
SunOS)
check_all_packages='/usr/sbin/pkgchk -n'
list_all_files='/usr/sbin/pkgchk -l | /bin/egrep Pathname | /bin/awk "{print \$2}" '
list_all_files_in_package='/usr/sbin/pkgchk -l $1 | /bin/egrep Pathname | /bin/awk "{print \$2}" '
list_all_packages='/usr/bin/pkginfo -x | /bin/sed -e "/^[a-zA-Z]/ { N; /^\\n\$/d; s/ .*$//; }" '
package_version='/usr/bin/pkginfo -x $1 | egrep -v "^[a-zA-Z]" | sed -e "s/(.*)//; s/\ \ *//" '
query_file='/usr/sbin/pkgchk -l -p $1 | /bin/egrep -v "^[a-zA-Z]" | xargs /usr/bin/pkginfo -x | /bin/sed -e "/^[a-zA-Z]/ { N; /^\\n\$/d; s/\ .*\\n.*//; }" '
;;
OSF1)
;;
HP-UX)
;;
AIX)
;;
IRIX|IRIX64)
;;
*)
echo "I haven't been configured yet to work on $osname."
echo "email it to rpm-list@redhat.com, so that your OS"
echo "will be supported by some future version of this script."
echo ""
echo "Thanks!"
echo
exit 2
;;
esac
option=$1
shift
# I would like to have the second $ actually interpolate so I could
# drop the second eval. Anyone know how to do this?
if [ $option = 'print_cmd' ]; then
option=$1
shift
eval echo $"$option"
exit 0
fi
eval eval $"$option"
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.012 ]-- |