View previous topic :: View next topic |
Author |
Message |
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Wed May 18, 2011 2:34 pm Post subject: /usr full |
|
|
Hello, ok my /usr partition is full, all 6.6gb of it.
I have /usr/portage and /usr/src on own partitions, questions is how can free up some space till i get it sorted with hard drive/partition redo?
Is there some cruft that can be deleted from /usr ?
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Wed May 18, 2011 2:44 pm Post subject: |
|
|
you could install localepurge and run it? |
|
Back to top |
|
|
Apheus Guru
Joined: 12 Jul 2008 Posts: 422
|
Posted: Wed May 18, 2011 2:47 pm Post subject: |
|
|
How old is this system? Remnants from perl-5.8.8 or python-2.4 come to mind...
These would be in /usr/lib/perl5/5.8.8 and similar for python. But be careful: Check these versions are not installed any more, and back up the files first. It will not free much space anyway, except if something went wrong when the old interpreter versions where uninstalled. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Wed May 18, 2011 5:02 pm Post subject: |
|
|
Thanks for replies.
Localepurge got me some space back, nothing to gain from perl, moved from python 2.6 to 2.7 so could remove 2.6 which got some more. _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Wed May 18, 2011 8:31 pm Post subject: |
|
|
If you are really desperate for space you can clean the following out without many negative impacts to your system... but I would recommend a full `emerge -e world` to return the files after you migrate to the new disk/partition. You might also want to move these to a USB stick so you don't lose them.
Please note that removal of these may impact your system in unexpected ways...
Code: | /usr/share/man
/usr/share/doc
/usr/share/gtk-doc
/usr/share/gnome/help
# If KDE 3.5 stuff is still around
/usr/kde/3.5/share/doc
/usr/kde/3.5/share/emoticons
/usr/kde/3.5/share/sounds
/usr/kde/3.5/share/wallpapers
/usr/kde/3.5/share/apps/carddecks
|
Also performing an `emerge --depclean` or removing some packages you installed but hardly use might also be a good idea. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21707
|
Posted: Thu May 19, 2011 2:36 am Post subject: |
|
|
If you have free space somewhere, just not on /usr, you could try to find the biggest hogs on /usr, move those to the new volume, and bind mount the new directory back into place. This will keep the view mostly consistent, so programs should continue to work. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Thu May 19, 2011 8:45 am Post subject: |
|
|
Thanks for replies, recovered nearly 700mb of space which will keep me going till get drives sorted. _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
geeksheik Tux's lil' helper
Joined: 07 Sep 2003 Posts: 99 Location: Zürich, Switzerland
|
Posted: Thu May 19, 2011 10:14 pm Post subject: |
|
|
Have you tried eclean already? It's part of the anti-cruft arsenal (gentoolkit actually).
On second thought, I wonder if eclean-pkg will do anything more than your emerge --depclean...
The other part of eclean, eclean-dist, probably doesn't do anything outside of /usr/portage |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21707
|
Posted: Fri May 20, 2011 3:42 am Post subject: |
|
|
geeksheik wrote: | On second thought, I wonder if eclean-pkg will do anything more than your emerge --depclean...
The other part of eclean, eclean-dist, probably doesn't do anything outside of /usr/portage | eclean-pkg cleans out tbz2 files from built packages, which restricts it to $PKGDIR. eclean-dist cleans out distfiles, which restricts it to $DISTDIR. In a default configuration, both of those are directories under /usr/portage. |
|
Back to top |
|
|
|