Sysadmin’s monday blues: clean your RPMs
From time to time, I need to clean my disk from useless stuff I’ve installed over time. It’s just amazing how much of packages I can install during debugging and configuring every day. If I’m short of disk space, I start first by reviewing biggest packages on my system:
[mmahut@mmahut repo]$ rpm -qa --queryformat '%10{size} %{name}-%{version}\n' | sort -k1,1nr | head
317673868 fgfs-base-0.9.11
215271762 openoffice.org-core-2.3.0
133572466 frysk-0.4
120848879 fpc-2.2.0
89947314 glibc-common-2.7
80722817 java-1.7.0-icedtea-1.7.0.0
65310309 emacs-common-22.1
61516077 googleearth-4.2.198.2451
61036768 inkscape-0.46
60173188 tetex-fonts-3.0
[mmahut@mmahut repo]$
Another useful program is package-cleanup from package yum-utils. You can use it to list duplicates, orphans or problematic packages as well as old kernel packages.
[mmahut@mmahut ~]$ package-cleanup --orphans | head
Setting up yum
cinelerra-2.1-0.14.svn20071111.kwizart.fc8.i386
desktop-file-utils-0.15-2.fc8.i386
NetworkManager-0.7.0-0.6.7.svn3370.fc8.i386
bind-utils-9.5.0-27.rc1.fc8.i386
PackageKit-libs-0.1.5-0.351.20071126git.fc7.hughsie.i386
redmode-1.0-1.fc8.i386
kurso-3.0-1.fc8.i386
x11vnc-0.9.3-2.fc8.i386
popt-debuginfo-1.13-1.fc8.i386
[mmahut@mmahut ~]$
I’ve cleaned up 200MB today, great success!
Comments
Comment from marek
Date: July 15, 2008, 8:15
Ashcrow, I’m not using emacs! :) It’s wordpress’ thing. My shell meme can prove it!
Comment from Steven
Date: July 15, 2008, 8:45
Great tip, I didn’t know package-cleanup :)
Comment from axelilly
Date: July 15, 2008, 17:57
Yea, thanks for the tip.
Comment from marek
Date: July 15, 2008, 18:09
Chalos, dikes!
Pingback from Bookmarks about Sysadmin
Date: December 7, 2008, 7:00
[...] – bookmarked by 6 members originally found by bamdadi on 2008-11-05 Sysadmin’s monday blues: clean your RPMs http://marek.mahut.sk/blog/2008/07/14/sysadmins-monday-blues-clean-your-rpms/ – bookmarked by 6 [...]
Trackback from ADRIAN
Date: September 9, 2010, 19:08
Buy:Zovirax.Arimidex.Valtrex.Nexium.Accutane.Mega Hoodia.Petcam (Metacam) Oral Suspension.Prevacid.Synthroid.Lumigan.Zyban.Actos.Prednisolone.Human Growth Hormone.Retin-A.100% Pure Okinawan Coral Calcium….
Trackback from DWAYNE
Date: September 10, 2010, 2:49
Buy:Cialis Professional.Viagra Super Active+.Viagra Soft Tabs.Soma.Viagra Super Force.Cialis Soft Tabs.Cialis Super Active+.Super Active ED Pack.Tramadol.Viagra.VPXL.Maxaman.Levitra.Zithromax.Propecia.Cialis.Viagra Professional….

Write a comment