From owner-freebsd-pkg@FreeBSD.ORG Tue Jun 24 06:39:58 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4C57A80 for ; Tue, 24 Jun 2014 06:39:58 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4152B241A for ; Tue, 24 Jun 2014 06:39:57 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 35806766; Tue, 24 Jun 2014 13:39:55 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s5O6dsxi012942; Tue, 24 Jun 2014 13:39:54 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s5O6drp3012941; Tue, 24 Jun 2014 13:39:53 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Tue, 24 Jun 2014 13:39:53 +0700 From: Victor Sudakov To: Matthew Seaman Subject: Re: Cleanup of /var/db/pkg/ Message-ID: <20140624063953.GA12165@admin.sibptus.tomsk.ru> References: <20140624014513.GA3659@admin.sibptus.tomsk.ru> <53A90D99.10009@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A90D99.10009@infracaninophile.co.uk> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 06:39:58 -0000 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