up vote 1 down vote favorite
share [g+] share [fb]

A friend of mine partitioned his ubuntu system with /usr on a separate partition. That partition is now full. He can't use apt to install new software. Is there anything in /usr that he can safely delete (i.e. delete with rm, not apt-get remove)?

Since he can't install new software he can't install something like dpigs (the tool for checking which packages is taking up space)

link|improve this question

79% accept rate
feedback

3 Answers

up vote 1 down vote accepted

Have you tried "sudo apt-get clean", "apt-get autoclean", and "apt-get autoremove"? If you use "man apt-get" that will describe what each does and may free some space.

link|improve this answer
1  
clean only deletes stuff in /var. – womble Nov 23 '09 at 14:39
As @womble said, clean only deletes things in /var. However autoremove will delete things in /usr, so it might save something – Rory McCann Nov 23 '09 at 15:30
Whoops...didn't hurt to try it though :-) Looks like autoremove may give wanted results. It may have given some direction in which to look though. – Bart Silverstrim Nov 24 '09 at 12:06
feedback
/usr/share/doc
/usr/src
link|improve this answer
/usr/share/doc is the best place to purge. /usr/src can contain locally-built stuff that can't be easily replaced. – womble Nov 23 '09 at 14:40
yes, but sometimes it conain vanilla kernel and standard sources what easily can be restored from internet – vlad Nov 24 '09 at 11:03
/usr/share/doc is a good one to clean up, however, using apt-get to delete the files would be a better way. Is there some easy way to remove those files using apt? – Rory McCann Dec 21 '09 at 10:28
feedback

An ugly hack would be to try uninstalling GNOME and get something lightweight instead. Presumably this shall save some space.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.