I have ubuntu 12.04 and I need to clear some space for my updates. I did a procedure that a tech showed me where I purchased my computer where you go to fur and copy-paste a line beginning with dpkg and it pretty much did the rest.This time though it wont work. I think it was a one time thing. So can someone show me a procedure to fix this in basic non computer nerd language cause I'm not very computer savy? Thanx
1 Answers
When you do updates and install packages, "deb" package files are downloaded and put into the directory /var/cache/apt/archives/ and will stay there unless you clean them out.
The way to do this is with the command
apt-get clean
which will delete all of the "deb" package files from that directory which been processed.
If you want to clean up your system further, install deborphan
sudo apt-get get deborphan
Running deborphan will show you which packages installed on your system and are redundant. Typically these are library packages which no other package requires because the package that required them was removed for whatever reason.
You can if you choose remove them by passing the output of deborphan to the command to remove them with
dpkg --purge deborphan
When running dpkg --purge, one is always prompted for confirmation to remove the packages specified.
If your /var directory is on your "volume boot" and not on a separate file system, you should check to see how much space it is using and if the problem is also due to large log files which have gradually accumulated. These can be kept trimmed down using the logrotate package and specifying how often to process the log file and how many previous versions to keep either on a daily, weekly, monthly basis or just on fixed size.

- 556
- 4
- 7
-
so how do I download this apt-get clean thing. In my "dash home" or just google it or what? – user301230 Jul 09 '14 at 02:37
-
Ok, I found this http://youtu.be/OxDRnh_cCBI on you tube and its the easiest method I could find but like I said I'm an idiot and there is still some thing on here that I can't figure out. First of all it says to login and change the file permission for boot. Where do you login and how do you change the name? Then how does he highlight just the files he needs to? Then the numbers they are deleting are different than the ones I can find, I imagine thats cause they're older files. So what numbers are they? Please help, cause my computer is gonna need an update soon. – user301230 Jul 09 '14 at 13:27
-
apt-get is a standard program in Debian/LinuxMint/Ubuntu. It is already installed by default, so you do not need to download it. – J G Miller Jul 11 '14 at 15:22
-
well where is it? why am I having this problem? – user301230 Jul 12 '14 at 03:04