From owner-freebsd-questions@FreeBSD.ORG Fri May 26 16:40:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B50B216A4E6 for ; Fri, 26 May 2006 16:40:53 +0000 (UTC) (envelope-from rar102@ra.msstate.edu) Received: from Ra.MsState.Edu (Ra.msstate.edu [130.18.80.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ECBA43D79 for ; Fri, 26 May 2006 16:40:49 +0000 (GMT) (envelope-from rar102@ra.msstate.edu) Received: from ws168-55.hilbun.dynamic.msstate.edu (ws168-55.hilbun.dynamic.msstate.edu [130.18.55.168]); by Ra.MsState.Edu (8.13.6/8.12.8/ra_1.2) with SMTP; id k4QGejAJ009226 for ; Fri, 26 May 2006 11:40:45 -0500 (CDT) From: "Robertsen A. Riehle" Organization: Dept. of Physics & Astronomy To: freebsd-questions@freebsd.org Date: Fri, 26 May 2006 11:40:35 -0500 User-Agent: KMail/1.9.1 References: <200605251755.55461.rar102@ra.msstate.edu> <17526.15287.919244.548666@jerusalem.litteratus.org> <20060525200308.ov3zgj80wgk48044@newwebmail.jnielsen.net> In-Reply-To: <20060525200308.ov3zgj80wgk48044@newwebmail.jnielsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605261140.35648.rar102@ra.msstate.edu> Subject: Re: Rebuilding /var/db/pkg X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 16:40:54 -0000 On Thursday 25 May 2006 19:03, John Nielsen wrote: > Quoting Robert Huff : > > Robertsen A. Riehle writes: > >> Say that the /var/db/pkg directory had been recursively erased > >> off of a workstation that had ~300 packages on it. And, let's > >> hypothetically say that this workstation's ports tree was up to > >> date as of yesterday. Is there any hope of rectifying this or is > >> this workstation is a static ports state forever??? > > > > 1) Is there no back-up? > > 2) Unless you clear it regularly, look in > > Also if you act before the weekly(?) periodic script rebuilds the > locate database, you could use the output of "locate /var/db/pkg" to > help you determine what was there. This is really good idea except the locate database was already updated. > > /usr/ports/distfiles. On my system, I'd also check pkgtools.conf. > > Start with things with a lot of dependencies (OpenOffice, Mozilla, > > KDE/gnome, Java, Emacs, etc.) and reinstall by hand. It appears that this is really the only way to solve the problem. Except, if there is nothing in /var/db/pkg, make install does nothing. So, I tried pkg_add -r gcc41 and the following result revealed a more substantial problem. su-2.05b# pkg_add -r gcc41 (Before I compile all of KDE and find out that it didn't work, I decided to try something small...) Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/Latest/gcc41.tbz... /var: write failed, filesystem is full info/gcc41/gccint.info: Write error: No space left on device Done. ^C /var: write failed, filesystem is full Signal 2 received, cleaning up.. But.... su-2.05b# df -h /var Filesystem Size Used Avail Capacity Mounted on /dev/ad0s2d 248M 183M 45M 80% /var Surely, a gcc package doesn't take up 45M. What is going on here?