Operating System - HP-UX
1837173 Members
2450 Online
110113 Solutions
New Discussion

Seeing dependent products using swlist

 
Deepak BS
Occasional Contributor

Seeing dependent products using swlist

Hi,

I have a product (for eg Prod1) which many other products may be dependent on. So, when i do a swremove of Prod1, it doesnt allow me to remove it, and gives an error saying that other products are dependent on this. I can as well set the attribute "autoselect_dependents=true", but this behavior is absolutely fine with me, as I do not want to remove the dependent products without even knowing them.

So, does anyone know how to see the list of products that are dependent on a particular product? In my case, I want to know the list of products that are dependent on Prod1. This will help me in crossing checking before remove Prod1.

Thanks
Deepak
4 REPLIES 4
Chris Wilshaw
Honored Contributor

Re: Seeing dependent products using swlist

Run swlist -i, to activate the GUI.

You can then select your product from the list.

Then select the "Actions" menu, and "Show Description Of Software"

If the software you are looking at has any dependencies, they are available for viewing from an option on the description screen.


Jean-Louis Phelix
Honored Contributor

Re: Seeing dependent products using swlist

Hi,

You can use :

swlist -a corequisite

Example :

# swlist -a corequisite NFS
# Initializing...
# Contacting target "xxx"...
#
# Target: xxx:/
#

# NFS
NFS.KEY-CORE NFS.NFS-CORE,r>=B.11.11.%27
NFS.NFS-64ALIB NFS.NFS-SHLIBS,r>=B.11.11.%27
NFS.NFS-64SLIB NFS.NFS-SHLIBS,r>=B.11.11.%27
NFS.NFS-CLIENT
NFS.NFS-CORE NFS.NFS-KRN,r>=B.11.11.%27 NFS.NFS-SHLIBS,r>=B.1
1.11.%27 OS-Core.CORE-SHLIBS,r>=B.11.11.%27
NFS.NFS-ENG-A-MAN TextFormatters.TEXT-FMT,r>=B.11.11.%27
NFS.NFS-JPN-E-MAN TextFormatters.TEXT-FMT,r>=B.11.11.%27
NFS.NFS-JPN-S-MAN TextFormatters.TEXT-FMT,r>=B.11.11.%27
NFS.NFS-KRN
NFS.NFS-PRG Networking.NET-PRG,r>=B.11.11.%27
NFS.NFS-SERVER
NFS.NFS-SHLIBS
NFS.NIS-CLIENT NFS.NIS-CORE,r>=B.11.11.%27
NFS.NIS-CORE NFS.KEY-CORE,r>=B.11.11.%27
NFS.NIS-SERVER NFS.NIS-CORE,r>=B.11.11.%27
NFS.NISPLUS-CORE NFS.NIS-CLIENT,r>=B.11.11.%27

Sometimes you also have PRE requisites, in this case use '-a prerequisite' or multiple '-a' options on the same command line.

Regards.
It works for me (© Bill McNAMARA ...)
Umapathy S
Honored Contributor

Re: Seeing dependent products using swlist

As Jean has said corequisites and prerequisites will do. You can do a swlist -v to know the attributes that are internally managed for a depot.

I suggest listing both the corequisites and prerequisites will suit your requirements.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Bruno Ganino
Honored Contributor

Re: Seeing dependent products using swlist