"Resetting" ports and pkg's?

Lowell Gilbert freebsd-questions-local at be-well.no-ip.com
Thu Jun 19 12:48:39 PDT 2003


Peter Leftwich <Hostmaster at Video2Video.Com> writes:

> Is there some way to "reset" what my FreeBSD 4.7-RELEASE O.S. "knows" about
> what is currently installed?  I ask because a while back, I accidentally
> deleted part of /usr/local/lib/ (in unlinking a directory).
> 
> Now, whenever I install a port or run `pkg_add -rf` something is always
> wrong and indicated by an error message.  Help!  Thanks CC: me please...
> 
> PS - Is it as easy as just `rm -rf /var/db/pkg/` or just one directory?

Hmm.  Depends on what you want to do again in the future.  
If it were I, I would probably pkg_delete everything there, clean out
/usr/local, and reinstall them.


More information about the freebsd-questions mailing list