what to delete in /usr

Christopher Browne cbbrowne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Feb 3 20:53:06 UTC 2006


On 2/3/06, caitken-Bm8TULXj0r/3fQ9qLvQP4Q at public.gmane.org <caitken-Bm8TULXj0r/3fQ9qLvQP4Q at public.gmane.org> wrote:
> Sometimes, now, when I open OpenOffice it hangs my business production
> computer. I checked for any partition that may be full. I found this:
>
> [chris at a800 chris]$ df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1              1004024    254928    698092  27% /
> /dev/hda3              2016044   1468792    444840  77% /home
> none                    127696         0    127696   0% /dev/shm
> /dev/hda2              2949060   2698768    100488  97% /usr
> [chris at a800 chris]$
>
> Clearly I need to lighten /usr 's load. What can I delete? The only programs
> I really use on the computer are Mozilla and OpenOffice but I don't want to
> delete programs that I don't know what they do or that other programs may
> rely on...

You really should consult your distribution's packaging system.  For
instance, with distributions like Red Hat's, SuSE, Mandriva, and such,
"rpm -e" is likely to be the way to go.

You could list packages on the system via "rpm -qa"; you might then
come up with a list of things you imagine you don't need.  You then,
for those, submit "rpm -e names-of-packages."  It'll complain if some
ARE needed...

Similarly, with Debian and derivatives like Ubuntu, you might try
"dpkg -l" to list packages, then "dpkg -r names-of-packages" to remove
the undesired stuff.

Otherwise, it's a real shooting match, where you hope you know what
you are doing, hoping you don't accidentally hit any vital organs...
--
http://www3.sympatico.ca/cbbrowne/linux.html
"The true  measure of a  man is how he treats  someone who can  do him
absolutely no good." -- Samuel Johnson, lexicographer (1709-1784)
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list