Cleanup of /var/db/pkg/

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Jun 24 05:33:22 UTC 2014


On 24/06/2014 02:45, Victor Sudakov 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.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140624/7ad74f58/attachment.sig>


More information about the freebsd-pkg mailing list