pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /usr/pkg cleanup, files not owned by any package



Mayuresh <mayuresh%acm.org@localhost> writes:

>>    I'd just like to remove those files that are not owned by any package to 
>>    clean up /usr/pkg (at least bin and lib directories as at least in theory
>>    etc can have files that are hand made).
>> 
>> Before you do that, make sure the pathname->package mapping has not
>> been corrupted -- it doesn't seem to be terribly robust, and I have
>> often seen it go wrong.  You can use the `pkg_admin rebuild' command
>> to regenerate it afresh from the installed packages.
>
> I did pkg_admin rebuild. However I still have orphaned files under
> /usr/pkg (that are not owned by any package is what pkg_info -F -e says).
> How do I get rid of them? I don't mind loosing some packages that I may be
> using. I can reinstall them cleanly.

So after following Taylor's advice to check/fix the db (which I agree
with 100%) now you can use rm.  For each file, think about it, and then
rm.  This happens to me too, occasionally (I have systems that have been
continuously updated w/o a reinstall for a long time, probably 8 years
at least, maybe longer).

Attachment: pgpe_mlBM_ltn.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index