Originally published at: http://www.howtogeek.com/185173/4-ways-to-free-up-disk-space-on-linux/
Linux systems aren’t as light on disk space as they could be. For example, the APT package manager keeps package files around even after you install them — a waste of space unless you plan on uninstalling and reinstalling them.
True, package executables are kept on disk by apt, however they are really small. Kernels don't take up much space either. A linux / partition with lets say 25 GB of space allotted will, even with a bunch of packages installed to it still only use about 60% of that available 25 GB at max.
In my opinion people carry that old mentality of the days of 10 GB disks and windows to linux. They remain paranoid about space. On Linux there really isn't too much of a need to be concerned unless you didn't allot the proper size to your / partition when you made the installation. Even if that is the case in most cases you can simply expand your linux / partition. At this point I must note that I have separate NTFS disks/partitions for my files. I do not save them to linux /, more specifically /home. This has benefits. I can clean install or restore an image if necessary without having to move files from linux so they are not overwritten. I can then access them from any OS. I currently have Arch, Ubuntu Windows 7 & 8 on my machine.
In my /var/apt/cache/archives directory I have 412 items which only total 702 MB. Really? Are they consuming that much space? If one wants to remove these stored downloaded packages that is OK. But they should not be consuming too much space to get someone worried in the first place.
I am by no means an expert. I have been using linux for almost 8 years. I have used ubuntu, mint, crunchbang, fedora, sabayon and arch. I have never had a problem with space on /. Probably because I allocate 25-35 GB for the / partition. Given the size of most users hard disks this is a concern of days gone by.
Output of df -h terminal command from ubuntu (sda3), sdb 1 is my storage, sdc1 is my internal backup:
I have installed Linux on a 2 GB partition. Regardless of the number of packages, it should not be practically possible to fill up a 500 GB disk with old executable files, unless your machine is a server constantly upgraded since it was first turned on in 2000 (were there 500 GB drives then?).
My immediate gut reaction is 'shouldn't this article be entitled "4 Ways to Free up Disk Space on Ubuntu"???' Is this applicable to Linux - aka Mint (I hope so), Gentoo, Slackware, Sabayon, openSuse, CentOS, Red Hat, and any of the MANY other distros out there that are in the Linux sphere? Or, as the article would tend to make me believe, does this apply only to Ubuntu?
I skimmed the article, I did not scrutinize it closely and I didn't see an Ubuntuesque-only disclaimer. I haven't yet tried the recommendations on my current preferred distros (alas Ubuntu I loved you well, until you tried to Unitize me, so u r history for me). If I am wrong, mea culpa. If not - don't blame me for being overly picky! And furthermore, if I am right - tsk, tsk, tsk!
The package files refer to any Debian based distro (such as ububtu, mint) that uses apt. I am not sure where all the other distros store their downloaded package files. I will guess it is in the same directory since linux file system structure is pretty uniform. I just really don't worry about it because they are so small in size, only when I read this did I go check out the size of them.
True, I should have specified Ubuntu/Debian-based distos.
But like I said - gut reaction!
This topic was automatically closed after 10 days. New replies are no longer allowed.