Operating System - HP-UX
1833729 Members
2315 Online
110063 Solutions
New Discussion

Unable to run swlsit to see the product list

 
SOLVED
Go to solution
nag_2
Occasional Contributor

Unable to run swlsit to see the product list

Hi ,
Here I am trying to get the installes software list to see the products installed running swlist.But it is giving the following error.

# swlist
# Initializing...
# Contacting target "wmipa06"...
WARNING: Incomplete definition for the root (installation) "/",
beginning at line 0. The following attributes are not
defined:
products the products contained in the root
ERROR: The depot "wmipa06:/" exists but is currently empty.


Please give me the solution.

Regards
-Nag
have nice sys admin time
1 REPLY 1
John Palmer
Honored Contributor
Solution

Re: Unable to run swlsit to see the product list

Hi,

Document id KBRC00003721 states the following:-

PROBLEM

swlist and swverify commands produce this message:


WARNING: Incomplete definition for the root (installation) "/"

RESOLUTION
Take the following steps to rebuild the corrupt Installed Products Database:



1. As root, go to the directory /var/adm/sw/products:
cd /var/adm/sw/products

2. Remove the INDEX file.
rm /var/adm/sw/products/INDEX

3. Create a file called void.psf in the /tmp directory:
vi /tmp/void.psf

4. Add these lines:
product
tag void
fileset
tag void

5. Create a software package for the product void:
swpackage -s /tmp/void.psf

6. Install void and generate a new INDEX file:
swinstall void

7. Test swlist

8. Remove the void product just created:
a. swremove void
b. rm void.psf
c. swremove -d void

Hope this helps,
John