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

Reply via email to