List all installed rpm packages and it’s size

2010-12-09 1 min read Fedora Linux

If you are looking for a command to see the disk usage by each of the rpm‘s then you can use this command:

  <td>
    <div class="text codecolorer">
      &nbsp;rpm -q --queryformat "%10{SIZE}\t%{NAME}\n"
    </div>
  </td>
</tr>
1

And if you use this command very regularly then you can create an alias like

  <td>
    <div class="text codecolorer">
      &nbsp;alias rpm_size='rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" '
    </div>
  </td>
</tr>
1

and use it like

Continue reading

List all the rpms by size – quick way to find out what is eating your disk space in root partition

2010-10-13 1 min read Bash Fedora

Here is a quick command to check the list of installed packages by their size in reverse order. Very useful if you want to remove unwanted rpms just to clean up some space on your disk:

  <td>
    <div class="text codecolorer">
      rpm -q -a --qf "%10{SIZE}\t%{NAME}\n" | sort -k1,1nr |more
    </div>
  </td>
</tr>
1

Sample output:

78070452    kernel
78060477    kernel
50708634    jre
50316408    libgcj
48581593    wireshark
47778643    gimp
47674675    jre
47303084    qt-x11
45838912    otrs
45657248    chromium-libs
42070128    wxPython

Continue reading

Packagekit Error

2010-02-04 1 min read Fedora

With the latest update on my Fedora 10(F10) I started getting this error when ever I wanted to use the gnome package kit (I was able to use yum though):
failed to get a TID: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface &#8221;org.freedesktop.PackageKit.Transaction&#8221; member &#8221;SetLocale&#8221; error name &#8221;(unset)&#8221; destination &#8221;org.freedesktop.PackageKit&#8221;) (0)

I searched couple of forums but did not find any good resource on what was happening. Finally I decided to rollback Packagekit and dbus. And Yahoooooooooooo, it started working again.

Continue reading

rebuild rpm from installed rpm with rpmrebuild

2009-10-22 1 min read Fedora Linux

Ever happened to you that you downloaded and installed  a rpm and then deleted the package? If your answer is yes, then there is a solution.

Come to the fairyland of rpmrebuild. Create the rpm from the installed files  and give a new number if required.

sudo yum install rpmrebuild

Simplest use is to

rpmrebuild

but I personally like the one mentioned below:

rpmrebuild -R -v -P –pug-from-db

Continue reading
Newer posts