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
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?
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.