What happened to all my hard drive space?
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?
Debian etch apt-get issue
I am setting up a local development server at work as our main development server is in Melbourne and we have no root access (so permissions changes on directories can take days, literally, before they are actioned). I am using debian as it is the OS used on the main dev server (if it was up to me, I’d use CentOS, but thats a story for another day). I used the internet setup disc image to minimise what I downloaded and installed a bare-bones system on a machine here.
When I went to use aptitude (apt-get) to install required software and servers, I kept getting errors advising me of the dependants needed for the install, but the error says “but it is not installable”. For some reason, I was unable to install anything. Anyway, after some searching it appeared that the default sources.list file (/etc/apt/sources.list) contained repositories for security patches only. Adding the following line sorted it for me; (NOTE. Use a locally hosted mirror or updates will take you forever);
deb http://mirror.pacific.net.au/debian etch main
Also, as a side note, on etch, use vim, not vi as its much, MUCH easier and you wont pull your hair out as much.