Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 13:39:53 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: Cleanup of /var/db/pkg/
Message-ID:  <20140624063953.GA12165@admin.sibptus.tomsk.ru>
In-Reply-To: <53A90D99.10009@infracaninophile.co.uk>
References:  <20140624014513.GA3659@admin.sibptus.tomsk.ru> <53A90D99.10009@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

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@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140624063953.GA12165>