On Tuesday 18 September 2007 14:01:27 [EMAIL PROTECTED] wrote:

>     Suppose you deleted /var/db/pkg by accident :( What would you do to
> get it back??

Depending how fast your disk and cpu is:

cd /usr/ports
find . -name pkg-plist -print|xargs egrep -H '^(s?bin|lib)' |while read MATCH;
do
        PATH=${MATCH##*:}
        if test -f /usr/local/${PATH}; then
                 echo ${MATCH%%/pkg-plist:*}
        fi
done | grep -v XFree86-4-*|sort -u >myports.lst

Then look carefully for mismatches and feed myports.lst to portinstall.
-- 
Mel
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to