Date: Fri, 29 Feb 2008 20:21:20 -0800 From: Patrick Mahan <mahan@mahan.org> To: Shaun Amott <shaun@FreeBSD.org> Cc: ports@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: Having problems with my ports configuration Message-ID: <47C8D9C0.1050905@mahan.org> In-Reply-To: <20080301024554.GA30007@charon.picobyte.net> References: <47C86A22.4010706@mahan.org> <20080301024554.GA30007@charon.picobyte.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Shaun Amott presented these words - circa 2/29/08 6:45 PM-> > On Fri, Feb 29, 2008 at 12:25:06PM -0800, Patrick Mahan wrote: >> One of the issues that came out of this was it seemed that the >> ports database (/var/db/pkg/pkgdb.db) was corrupt. So I tried >> to rebuild it by deleting it and setting PKG_DBDIR). I issued >> a 'portsdb -Uu' and it fails - > > Do you have anything left under /var/db/pkg (presumably not, unless you > still have PKG_DBDIR set)? > >> host# portsdb -Uu >> Updating the ports index ... Generating INDEX.tmp - please >> wait..p5-DateTime-Calendar-Japanese-0.06001: >> "/usr/ports/japanese/p5-DateTime-Calendar-Japanese-Era" non-existent -- >> dependency list incomplete >> ===> devel/p5-DateTime-Calendar-Japanese failed >> *** Error code 1 >> 1 error > > Looks like you might have an old ports tree. Have you updated it lately? > I had done a portsnap about 6 hours before the first READ error on the IDE drive. >> So, somehow, I have managed to seriously hammer my ports/package >> installation. Is there a way to recover this info? Is there any >> way of determing just what is installed (I know of a few: Perl, >> emacs, etc) from info stored under '/usr/ports'? > > If you just removed the portupgrade database (which is all you > mentioned), you haven't lost anything important: it can be regenerated. > If the whole of /var/db/pkg was obliterated, you'll have to reinstall > everything. If you know what version of each port you had installed > (plus the OPTIONS, etc., used), installing over the top of what you have > now is probably the best you can do. > Unfortunately, the whole of /var/db/pkg was *pocked*. As for knowing what versions were installed, well, that's what I am trying to determine. I guess it looks like I am going to need a big *pocking* hammer.... Thanks, Patrick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47C8D9C0.1050905>