how get "/var/db/pkg"?
Tom Grove
freebsd at voidmain.net
Wed May 3 14:48:35 UTC 2006
Robert Huff wrote:
>xiang writes:
>
>
>
>> Today,i run "pkgdb -F",but get a error message:"you do not own
>> /var/db/pkg",becouse i had delete /var/db/pkg by oversight just
>> the other day.
>>
>> how can i do now?
>>
>>
>
> If you have deleted all contents of /var/db/pkg, and you don't
>have a backup, you're screwed. You'll have to reinstall every to
>rebuild the db.
> If, however, you just deleted pkgdb.db then "pkgdb -U" will
>repopulate it.
>
>
> Robert Huff
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>
>
>
If you haven't run locate since you delete /var/db/pkg you could run:
locate "/var/db/pkg"
This will at least give you a partial (maybe a full) listing of
everything you have installed. From there you could do a script that
does something like:
for $program in <fileofpackagenames>
pkg_delete $program
pkg_add $program
Just a thought....
-Tom Grove
More information about the freebsd-questions
mailing list