RPM tricks and tips
RPM is a very powerful utility. It can do a lot more with packages than most
people realize. This page is just to give you a taste of what it can do, as
well as give you some of our most favorite rpm tricks.
If you want to find even more things that rpm can do, the best place to
start is
man rpm
It really is a very good (yet lengthy) man page
- Some slightly hidden, but useful rpm query commands
rpm -q --scripts kernel (find out is run when the rpm get's installed)
rpm -q --triggers kernel (find out the trigger scripts)
rpm -q --changelog kernel (look at the packages changelog)
- Custom Output
rpm -q --qf "%{name}-%{url}\n" nedit (List the name and URL of a package)
rpm -qa --qf "%{size}\t%{name}\n" | sort -n (List all rpm's by size, smallest first)
rpm --querytags (List what tags you can put into the query section)
October 25, 2006