PDA

View Full Version : Cleaning after upgrade



pjalegria
October 9th, 2010, 11:17 AM
Hi

I just upgrade my 10.04 Netbook Remix to 10.10 Netbook Edition and is missing 500mb on my 4gb SSD... is there any way to be some TMP files from de upgrade? how can i delete them?

THX

mikewhatever
October 9th, 2010, 12:21 PM
I think

sudo apt-get clean

CharlesA
October 9th, 2010, 12:32 PM
Try running this to see where the most data on your drive is:


du -h --max-depth=1 / 2> /dev/null

Note: the 2> /dev/null is there to get rid of the "permission denied" messages when it tries to work thru /proc.

pjalegria
October 9th, 2010, 02:00 PM
32K /media
4,0K /selinux
11M /etc
6,5M /bin
0 /proc
69M /opt
124K /tmp
4,0K /root
134M /lib
504K /dev
119M /home
4,0K /mnt
22M /boot
4,0K /cdrom
4,0K /srv
0 /sys
317M /var
6,2M /sbin
2,1G /usr
16K /lost+found
2,8G /


317M /var is this normal???

CharlesA
October 9th, 2010, 02:09 PM
It's probably yer package cache.


sudo apt-get autoremove

pjalegria
October 9th, 2010, 02:15 PM
still 317M /var after "sudo apt-get autoremove"...

CharlesA
October 9th, 2010, 02:17 PM
Then that's the best you can do. /var stores the package cache (more specifically /var/cache/apt/archives/). If you want to delete the debs there, there shouldn't be any problems outside of having to download them again if they are needed.