On Sat, 22 Feb 2003 01:14:43 -0800
Susie <[EMAIL PROTECTED]> wrote:

> On Sat, 22 Feb 2003 02:42:47 -0600
> Nick Jones <[EMAIL PROTECTED]> wrote:
> 
> > > To make some disk space, i thought i'd delete /var/tmp/portage/*..
> > > but i accidentally deleted /var/db/pkg/* instead.
> > > 
> > > Is there anyway to rebuild the package database or does this
> > > system need reinstalling? 
> > 
> > I'd personally recommend you rebuild the system. Otherwise you'll have
> > files floating around stale on the system. Do it on your current
> > system in a chroot. Just copy /var/cache/edb/world to /root in the
> > chroot and after you emerge system, just do 'emerge $(<~/world)'...
> > Hopefully your world file is populated.
> > 
> > --NJ
> > <[EMAIL PROTECTED]>
> > Gentoo Linux Developer
> 
> Actually there is a way to rebuild the world file run regenworld
> 
> /usr/lib/portage/bin/regenworld
> /usr/lib/portage/bin/regenworld.sh
> /usr/sbin/regenworld
> 
> 
> I had to use the regenworld after using "emerge -e world" because of a
> bug with the "-e" switch that deleted my world file.  As for the other
> files in there that you'd be missing I'm not sure what you'd do about
> those.  But for anyone whose lost their world file for whatever
> reasons... that script will rebuild it.
> 
> 
> -- 
> 
> Susie
> (Arienadean\Kelticess)  
> [EMAIL PROTECTED]
> 
> -----------------------------------------------------------------------
> 
> "Strength does not come from physical capacity. It comes from an
> indomitable will." - Gandhi 
> 
> --
> [EMAIL PROTECTED] mailing list
> 
You should notice it wasn't the world file, but the files in /var/db/pkg/* ..the harm 
being that under each pkg category theres a file CONTENTS with the installed files and 
their md5sums so they get removed during unemerge....I also believe qpkg reads these 
files to figure out which package a file belongs to..sort of a grep -ir '$file' 
/var/db/pkg if you will, hence Nick's suggestion that the system be rebuilt.

-- 
Chuck Brewer
Registered Linux User #284015
Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to