Operating System - HP-UX
1830931 Members
2387 Online
110017 Solutions
New Discussion

Re: problem with swlist and swinstall

 
SOLVED
Go to solution
eran_6
Advisor

problem with swlist and swinstall

Hi

i cant do swlist or swinstall on hp-ux 11.00
the problem i thing is that somone has delete the dir /var/adm/sw/products

can i do anything to rebuild the sd-ux
or do i need to install it again ( i dont have ignite backup )
4 REPLIES 4
Elmar P. Kolkman
Honored Contributor

Re: problem with swlist and swinstall

You don't have any other backup ?
Every problem has at least one solution. Only some solutions are harder to find.
Robert-Jan Goossens
Honored Contributor

Re: problem with swlist and swinstall

Hi,

To rebuild the INDEX file, use the following procedure which will install a
"fake" product on the system. During the installation of this product, the INDEX
file will be regenerated.


# cd /var/adm/sw/products
# mv INDEX INDEX.orig
# cd /tmp
# vi void.psf
product
tag void
fileset
tag void
:wq!
# swpackage -s /tmp/void.psf
# swinstall void
# swremove void
# rm void.psf
# swremove -d void

Regards,
Robert-Jan.
Stefan Farrelly
Honored Contributor
Solution

Re: problem with swlist and swinstall

Normally there is a procedure to rebuild the INDEX file, as someome as pointed out already, but this requires the contents of the /var/adm/sw/products dir to rebuild the INDEX file from. Im afraid I cant see any way of recovering your products dir (so that swinstall/swlist will work again) except from backup. If you dont have a backup or ignite backup from before it was deleted then you are facing a reinstall.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor

Re: problem with swlist and swinstall

Hi Michael,

Sorry about mu previous message, you will have to use your backup to restore /var/adm/sw/products.

Regards,
Robert-Jan.