On 8/7/07, Aaron <torgis.how at gmail.com> wrote: > I have a test system here to which, unfortunately, many people have root > access. One of our software installs is failing because the showrev -p > command fails. > > I ran truss on the showrev -p command and it looks as though it is trying to > open the directory /var/sadm/pkg, which is completely missing. > > Long story short: is there any way to re-create the /var/sadm/pkg directory > and all of its installed package information?
The normal answer would be a reinstall. Or recover from backups. I have done this without resorting to such drastic methods, by taking a similar system and adding and removing packages and patches to match the state of the broken system (fortunately, I had a documented trail of what work had been done to it before it broke) and then copying the contents of /var/sadm back to the broken system. (This was back in the days when you had to split the OS up into multiple filesystems to fit it onto multiple tiny drives, and one of the drives failed on me wiping out /var/sadm in the process..) -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
