RPM
Check for a particular RPM
If, for example, a program you want to install calls for GTK to also
be installed, you can check if you have RPMs for this installed by
issuing the following command:
rpm -qa | grep gtk
get package information
This will get detailed information about an RPM:
rpm -qpi the_package.rpm
what does package depend on
This will show what files are needed by the gaim RPM installed on your
system.
rpm -q --requires gaim-0.75-0.9.0
what package does a file belong to
The following command will show you what package a file came from.
rpm -q -f /usr/lib/libssl3.so
rebuild source RPM
To install an RPM for a different distribution, run the following command:
rpm --rebuild x.src.rpm
This usually places the new RPM in /usr/source/rpm/
make uninstalling a package more automatic
To uninstall package with a little less effort, you can use
the following one-liner. This example will uninstall everything
with 'mozilla' in the package name. You should be careful with
this particular one. The '--nodeps' will override RPM warnings
about dependencies. Other packages may be effected.
rpm -qa | grep mozilla | xargs -n1 -p rpm -e --nodeps
Misc.
use wget to download packages
If you're updating a lot of packages and you need to install manually,
you can use wget to automate the package download process somewhat. This
comes in handy when you're, say, updating to a higher version of KDE, for
example. To get every packages in a directory, you would use the
following wget command:
wget -c -r -np http://some.kde-mirror.org/new_version/
[ return to main tips page ]
|