Cleanup of /var/db/pkg/
Victor Sudakov
vas at mpeks.tomsk.su
Tue Jun 24 06:39:58 UTC 2014
Matthew Seaman wrote:
>
> > Is it safe to remove all directories and files therein in /var/db/pkg/
> > after running pkg2ng?
> >
> > Is there anything of value there other than /var/db/pkg/*.sqlite
> > databases?
>
> Generally, yes. Other than local.sqlite or repo*.sqlite pkg(8) also
> uses some other bits and pieces like vuln.xml -- but apart from
> local.sqlite all of those can be downloaded from the net.
>
> Note that if you use portmaster(8) it creates per-pkg directories under
> /var/db/pkg to stash some information about distfiles. Deleting these
> will cause nothing worse than portmaster being unable to remove outdated
> versions of distfiles.
Yes, I use portmaster. Would it be wiser then to delete only the
'+*' files, like
find /var/db/pkg/ -type f -name '+*' -delete
My ultimate goal is to disable the pkg_* tools.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru
More information about the freebsd-pkg
mailing list