From owner-freebsd-questions@FreeBSD.ORG Tue Jun 7 01:21:18 2005 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 6746516A41C for ; Tue, 7 Jun 2005 01:21:18 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10D6243D48 for ; Tue, 7 Jun 2005 01:21:18 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EE41551258; Mon, 6 Jun 2005 21:21:15 -0400 (EDT) Date: Mon, 6 Jun 2005 21:21:15 -0400 From: Kris Kennaway To: Vizion Message-ID: <20050607012115.GB33058@xor.obsecurity.org> References: <200506061414.16870.vizion@vizion.occoxmail.com> <20050606223206.GA84164@xor.obsecurity.org> <200506061730.01713.vizion@vizion.occoxmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline In-Reply-To: <200506061730.01713.vizion@vizion.occoxmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org, Kris Kennaway Subject: Re: pkgdb problem 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: Tue, 07 Jun 2005 01:21:18 -0000 --Y7xTucakfITjPcLV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 06, 2005 at 05:30:01PM -0700, Vizion wrote: > On Monday 06 June 2005 15:32, the author Kris Kennaway contributed to th= e=20 > dialogue on- > Re: pkgdb problem:=20 >=20 > >On Mon, Jun 06, 2005 at 02:14:16PM -0700, Vizion wrote: > >> Hi > >> > >> I managed to get my pkgdb entirely screwed up - and there is now no > >> database. > >> > >> I tried pkgdb -fu > >> And was told there were 0 pkgs! > >> > >> How do I rebuild from scratch? > > > >If you accidentally delete your /var/db/pkg directory then the only > >way to recover it is to restore from backup. >=20 > Ooooooooooooooh dear > are there no recovery scripts - I lost my var partition - and the back up= was=20 > overwritten by a blank db!! No, the information is only stored within that directory. > I have a file listing of all the packages installed on the system - an ou= tput=20 > from pkg_info. > Do you happen to know if there is any way I can at least get that into th= e=20 > pkgdb? Feed it to portinstall to reinstall all of the ports. Kris --Y7xTucakfITjPcLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCpPaLWry0BWjoQKURArCJAJoCAKfSg2wwyPfiyKFBxnvGu/gHnwCg/51V 5M5qf9uXSMOUZEedtJyag+U= =9obH -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--