Operating System - HP-UX
1821539 Members
2473 Online
109633 Solutions
New Discussion юеВ

how to list out and verify all package / application in hpux

 
pratapvfr
Advisor

how to list out and verify all package / application in hpux

I would like to check what are the package / applications are installed in my hpux server (should list out all application / package ) i am not worry about patch.

swlist -v is correct option or i can use just swlist | more

please reply who have good knowledge for this.
5 REPLIES 5
Suraj K Sankari
Honored Contributor

Re: how to list out and verify all package / application in hpux

Hi,
swlist is the right command to see patch, bundles, products and filesets

To check all filesets are configured or not

# swlist -l fileset -a state | more
insted of fileset you can use bundle or products

list software in depot /var/spool/sw
swlist -d @ /var/spool/sw

list all files that are part of the X11 product
swlist -l file X11

list software in depot named mydepot on host hp1
swlist -d @ hp1:/mydepot

Listing Packages in a Depot (list contents of the local tape)
swlist -d @ /dev/rmt/0m

Suraj
pratapvfr
Advisor

Re: how to list out and verify all package / application in hpux


it mean
if i want to verify in my server the sudo is installed or not then i can verify with below

swlist -l bundle -a state | grep -i sudo

is this correct?

where i can search sudo /su2 or any other applications / pacakges.
also if i want to search any particular patch how to get it.
likid0
Honored Contributor

Re: how to list out and verify all package / application in hpux

I have the gnu sudo installed, it's a product not a bundle, to list it you should use:

swlist -l product | grep -i sudo

you can then verify it with:

[root@c:/]# swlist -l product | grep -i sudo
sudo 1.6.9p17 sudo

[root@c:/]#swverify sudo
WARNING: The logfile, "/var/adm/sw/swverify.log" is in use by process
"20940". The log information will be intermixed unless a
different logfile is given. To select a new logfile, specify
the "-x logfile=" option on the command line.

======= 03/27/09 12:23:55 MET BEGIN swverify SESSION
(non-interactive) (jobid=cceaunix-0065)

* Session started for user "root@cceaunix".

* Beginning Selection
* Target connection succeeded for "cceaunix:/".
* Software selections:
sudo.sudo-RUN,l=/usr/local,r=1.6.9p17,a=HP-UX_B.11.23_64
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swverify.last".
* The analysis phase succeeded for "cceaunix:/".
* Verification succeeded.


Windows?, no thanks
T G Manikandan
Honored Contributor

Re: how to list out and verify all package / application in hpux

#swlist -l |grep -i sudo
#swverify sudo
James R. Ferguson
Acclaimed Contributor

Re: how to list out and verify all package / application in hpux

Hi:

If the standard HP-UX Software Distribution tools ('swinstall') has been used for installation of a properly packaged object, then 'swlist' will divulge the installed products, patches and bundles.

HOWEVER, this does not mean that all applications will be exposed. If is quite possible (and sometimes too common) to find applications added with simple shell and 'tar' tools. The location of these packages will vary. Certainly, examine the contents of '/usr/local' as one place to look.

Regards!

...JRF...