Date: Tue, 24 Jun 2014 08:51:34 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-pkg@freebsd.org Subject: Re: Cleanup of /var/db/pkg/ Message-ID: <53A92E06.6060007@infracaninophile.co.uk> In-Reply-To: <20140624063953.GA12165@admin.sibptus.tomsk.ru> References: <20140624014513.GA3659@admin.sibptus.tomsk.ru> <53A90D99.10009@infracaninophile.co.uk> <20140624063953.GA12165@admin.sibptus.tomsk.ru>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 06/24/14 07:39, Victor Sudakov wrote: > 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. Yes -- IIRC that should work. Details of how pkg_tools laid out stuff in /var/db/pkg have grown a bit fuzzy in my memory... Cheers, Matthew [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTqS4MXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnAg0P/2ImMPyijD982z7OiFVUaKmY 42eyQNYJNbKmifi6xUlfRfQkOuO50osMCnWygPExE6RxRDIHowR+NGz0uH2ArI0C K1bjV70zLkllmy2iayooqf34IQBgi8WLA+xAoGafSnwrEIqZLLXUgAyVcvTMgJR5 nY8bZJEIOc0t5xPihdlk0OXeraMNla3DzYVKITCJUFnbLFHWwCA4Hbpu4eJhd378 ufpZSQeCQTF18kDXYg5RM3rWhjPBCVbF0+jcQE4yxcZZCEMId2fhnrkw7ilUbI3z YSGJAKu54pYTYdueRD2fRx7KwRloO/dDAiv+ttw8xKtvX8vg9L3dVDK3VCxY/uLq sDAjUHNbuNiwDp4a+ebD8RVSUzDrx6ONUCIPRFoa6H+fI2T8XCrwaittFZq3AN2u q1pb7JccYtrr+GzWpdXsmM2E77Y+DvfP/Yx0o2lXgOxzczF9MjOi0H7628pidnU/ d+4+D2KCrR57HnNJLhPdwQm+DC68K+yvB88gJ8b6VEWmD6+LhlJsericOcbFGv2S atrjoPn9612AEQj/gLNiK4GYXii0J7RW+Jn5ZC2nmEw5U03ScgU73niwtZwY7Dsi ODA7FQXo2plKffvFlTgyEQNSprk0rQETprjHZg1rsjcj9qajm8CAeuDUXe1k1+Nw E3azED0sv4001bX8uXf3 =8e6e -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A92E06.6060007>
