Get the information on all the rpms installed on the system

2010-07-23 1 min read Fedora Linux
Here’s a one-liner to get the info on all the packages installed on your system. rpm -qa –info |tee All_rpms_Info This is what it does, when you query the rpm database with the –info parameter, then the output looks something like the below, which is quite helpful. Name : rpm Relocations: (not relocatable) Version : 4.6.0 Vendor: Fedora Project Release : 0.rc3.1.fc10 Build Date: Sat 13 Dec 2008 12:38:24 AM IST Continue reading

Removing duplicate RPMS.

2010-05-12 1 min read Linux
Got the script mainly with google search on the <a href="http://linux.derkeiler.com/Mailing-Lists/Fedora/2006-12/msg04156.html">link. Nice trick.. Get the list of rpms with just the names rpm -qa –queryformat &#8217;%{name}\n&#8217; > pkglist Get the non-uniques list. sort -g pkglist | uniq -d > duplicates Get the versions of the duplicate files: for pkg in `cat duplicates`; do rpm -q $pkg » removelist done Now keep the rpms that you want to delete in the removelist Continue reading

View information on all the rpms installed.

2010-01-16 1 min read Fedora Linux
This post if applicable to all the distro&#8217;s which are based on rpm. If you look at the number of rpms installed on your system, you will see it somewhere around 500-2000. Noe thats a pretty huge number. So sometimes I keep wondering what are these rpms for. Heres a command that can help you figure out what these rpms are for: rpm -qa –info And if you want to find info on all the files and put it in a file too: Continue reading