On Tue, Mar 23, 2004 at 12:07:06PM -0500, Brian McCann wrote:
> I've got an urgent problem that needs fixing...and i'm stuck. One of
> the admins on one of our servers decided to delete the /var/db/pkg
> directory. I tried rebuilding it using pkfdb -Fu, and it returned
> nothing. Is there a way to recover from this...aside from backups?
pkgdb -Fu scans the contents of /var/db/pkg to build its package
Either use your backups, or re-install all of the ports you've got on
that machine. However, that's harder to do than it sounds, as
/var/db/pkg is what would be consulted to see exactly what ports
are installed on the machine.
On the plus side, losing /var/db/pkg doesn't affect the day to day
operation of the system, so you can repair this at your leisure.
Perhaps delegate the job of working out what ports were installed on
that box to the admin who broke it, as an object lesson in the
consequences of being too quick with the rm(1) command...
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
loga de root ...
vá em configure > distribuitions , masque ports , faça via ftp ou cd
se tiver marcado desmarque sai do sysinstal e repita
BSD System Engineer
unixmafia at yahoo dot com dot br
Yahoo! doce lar. Fa�a do Yahoo! sua homepage.
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd