[FUG-BR] pkg_info
Marcello Costa
unixmafia em yahoo.com.br
Qua Maio 24 18:25:18 BRT 2006
http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/041307.html
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
database.
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...
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
loga de root ...
digite sysinstall
vá em configure > distribuitions , masque ports , faça via ftp ou cd
se tiver marcado desmarque sai do sysinstal e repita
boa sorte
--
Marcello Costa
BSD System Engineer
unixmafia at yahoo dot com dot br
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
Mais detalhes sobre a lista de discussão freebsd