Re: how get /var/db/pkg?

2006-05-03 Thread Björn König

xiang schrieb:

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.
and i install som ports by pkg_add just now, then i can get
/var/db/pkg,but only a record of few ports in /var/db/pkg.
As a result,It do not show all ports that had installed in my machine 
when i

run pkg_info or pkg_version.and i do not use portupgrade upgrade all
ports!
how can i do now?


I think you can't do nothing except reinstalling your software unless 
you have a backup of your old /var/db/pkg.


Regards
Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how get /var/db/pkg?

2006-05-03 Thread Robert Huff

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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how get /var/db/pkg?

2006-05-03 Thread Tom Grove

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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 


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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how get /var/db/pkg?

2006-05-03 Thread Robert Huff

Tom Grove writes:
  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

Try:

locate /var/db/pkg | awk '{FS = \/\\+.*$} {print $1}' | \
awk '{FS = /$} {print $1}' | sort -u 

This will reduce the output to one line per package.


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how get /var/db/pkg?

2006-05-02 Thread xiang

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.
and i install som ports by pkg_add just now, then i can get
/var/db/pkg,but only a record of few ports in /var/db/pkg.
As a result,It do not show all ports that had installed in my machine when i
run pkg_info or pkg_version.and i do not use portupgrade upgrade all
ports!
how can i do now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]