On Wed, Apr 21, 2010 at 10:43:37PM -0700, Doug Barton typed: > On 4/20/2010 7:11 PM, Aryeh M. Friedman wrote: > > I acciddentally rm'ed my /var/db/pkg and want to know is it possible to > > rgenerate it (I have portmaster and portupgrade installed) > > Portmaster certainly can't do this, it uses the information from > /var/db/pkg. I'm not sure if portupgrade can do it or not. > > Your most likely course of success is to generate a list of ports that > you know you're using ("root" and "leaf" ports in portmaster > terminology), back up any config or other key files from /usr/local, > then delete everything and reinstall.
This question (how to restore /var/db/pkg) comes up fairly regularly. How about adding a /etc/periodic/daily/220.backup-pkgdb script or something? Just asking opinions, if people want this, I'll make a patch and file a PR. Ruben _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"