Table of Contents
rpmf pgaccess ~/discards/postgresql-all.lst cat ~/discards/postgresql-all.lst | rpmf pgaccess rpmc -qail | rpmf sshd.conf
rpm -qp --requires <file.rpm>
If you're unsure if the packages you're adding manually are going to work, you can use it to see if you can resolve them.
rpm -qa --queryformat='%{NAME}\n'
rpmp=ksconfig
$ rpmc -qi $rpmp | sed -n '1p; /^Summary/p' Name : ksconfig Relocations: (not relocateable) Summary : A graphical interface for making kickstart files.
$ rpmc -qi $rpmp | sed -n '1p; /^Summary/,$p' Name : ksconfig Relocations: (not relocateable) Summary : A graphical interface for making kickstart files. Description : This package contains a graphical tool for creating kickstart files. The ksconfig utility will allow you to set most of the kickstart options.
# file listing rpm -ql $rpmp | xargs ls -l # directory listing rpm -ql miniChinput | xargsl1 dirname | sort -u | xargs ls -ld
rpm -qpR <package> rpm -i -vv !$ | tee /tmp/rmp.inst.!$.log
rpm -i --nodeps
— Don't do a dependency check before installing or upgrading!
rpm -qail | cgreps "^Group$s" printcap
rpm -qp -filesbypkg /mnt/cdrom/RedHat/RPMS/*.rpm | grep libwraster.so.1
which results in:
WindowMaker /usr/X11R6/lib/libwraster.so.1 WindowMaker /usr/X11R6/lib/libwraster.so.1.2.0
rpmc -qa | grep -- '-devel' | sort > /tmp/rpm-devel.lst.0
rpmc -qa | grep -- '-devel' | xargs -l1 rpm -ev
— repeat several times.
![]() | |
!! |
The only two packages that are absolutely necessary are:
glibc-devel is needed by gcc-2.96-98 libstdc++-devel = 2.96 is needed by gcc-c++-2.96-98
QUERY OPTIONS The general form of an rpm query command is
rpm -q [query-options]
-p <package_file> -i Display package information, including name, version, and description. -R, --requires List packages on which this package depends. -l, --list List files in package. --triggerscripts Shows all the trigger scripts for the selected packages.