Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread Volodymyr Kostyrko
Mark Stosberg wrote: I'll just say it plainly: /var/db/pkg is long gone and there is no backup. It was not copied to new a machine. Is there is any hope of being able to use the ports or packages system in a meangingful way again? My sense is that some recovery is possible, but may be

Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread b. f.
There are a lot of common places the files would be installed such as bin, sbin, lib, libexec under %%PREFIX%%. You can use `find dir -type f | xargs -n1 -Ifoo sh -c echo -n foo:; pkg_which foo` to obtain the list of known files (pkg_which is part of ports-mgmt/portsupgrade). After that you can

Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread Robert Huff
Volodymyr Kostyrko wrote: I'll just say it plainly: /var/db/pkg is long gone and there is no backup. It was not copied to new a machine. Is there is any hope of being able to use the ports or packages system in a meangingful way again? My sense is that some recovery is possible, but may

Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread Mel Flynn
On Saturday 08 August 2009 03:02:05 b. f. wrote: 2) write a script to get the names of all files that belonged to ports and swing through a ports tree, associating the files with ports via the pkg-plist and PLIST_FILES variables; or This is quite complex, time consuming and prone to error the

Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread b. f.
On 8/8/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Saturday 08 August 2009 03:02:05 b. f. wrote: 2) write a script to get the names of all files that belonged to ports and swing through a ports tree, associating the files with ports via the pkg-plist and PLIST_FILES

Re: Recovering loss of /var/db/pkg ?

2009-08-08 Thread b. f.
Robert Huff wrote: Unfortunately, I know of no way of rebuilding the contents of /var/db/pkg without re-(compiling, installing) every component of every port. If it does not exist, this would be a _killer_ ability to have; it's not often required (one hopes!) but when it is it would be a total

Re: Recovering loss of /var/db/pkg ?

2009-04-09 Thread Joshua Gimer
You could try to recover the file from the disk if it has not been reallocated using something like The Sleuth Kit: http://www.sleuthkit.org/ You can use fls to find the location of the file on the disk and then icat to recover. On Wed, Apr 8, 2009 at 12:29 PM, Mark Stosberg

Recovering loss of /var/db/pkg ?

2009-04-08 Thread Mark Stosberg
I'll just say it plainly: /var/db/pkg is long gone and there is no backup. It was not copied to new a machine. Is there is any hope of being able to use the ports or packages system in a meangingful way again? My sense is that some recovery is possible, but may be prohibitively expensive.

Re: Recovering loss of /var/db/pkg ?

2009-04-08 Thread Lowell Gilbert
Mark Stosberg m...@summersault.com writes: I'll just say it plainly: /var/db/pkg is long gone and there is no backup. It was not copied to new a machine. Is there is any hope of being able to use the ports or packages system in a meangingful way again? My sense is that some recovery is

Re: Recovering loss of /var/db/pkg ?

2009-04-08 Thread Robert Huff
Lowell Gilbert writes: /var/db/pkg is long gone and there is no backup. It was not copied to new a machine. Is there is any hope of being able to use the ports or packages system in a meangingful way again? You can do a forced reinstall of all your ports, and you'll end up