Recently I was trying to upgrade using Yum on my Fedora 9 machine and I got an awful message that I did not have enough space to complete the upgrade. What the hell? My / partition has a huge 10GB, how can this be so?
[root@Garth Download]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.5G 8.7G 312M 97% /
tmpfs 722M 80K 722M 1% /dev/shm
/dev/sda4 17G 12G 4.2G 75% /home
/dev/sda1 28G 25G 3.1G 90% /mnt/Winxp
As you can see, my laptop has a 60GB hdd, so I am consistently having this argument with it.
The problem with most command line utilities is that it is difficult to see what you have installed and how much space each has. Then I remembered a little script that I used a few years back that told me what RPM’s I had installed and how big each was. Eureka! Just what I need.
So, I had a little fun, did a little search and found the beloved rpmhogs script.
Check this out;
[root@Garth Download]# perl rpmhogs.pl
246,007,784 java-1.5.0-gcj-javadoc-1.5.0.0-21.fc9.x86_64
246,902,300 java-1.6.0-openjdk-javadoc-1.6.0.0-0.13.b09.fc9.x86_64
231,068,455 openoffice.org-core-2.4.1-17.4.fc9.x86_64
114,684,216 texlive-texmf-fonts-2007-22.fc9.noarch
91,189,935 glibc-common-2.8-3.x86_64
87,927,623 compat-gcc-34-c++-3.4.6-9.x86_64
84,367,402 git-1.5.5.1-1.fc9.x86_64
<snip>
How good is that? I love it. Now I need to uninstall a crap load of stuff I dont use.
And, yes, my Laptop’s name is Garth. My media PC is named Cassandra and my wifes laptop is named Wayne. Who can guess my theme?
No related posts.
No related posts.