Operating System - HP-UX
1838240 Members
3456 Online
110125 Solutions
New Discussion

Depencies for installed xyz software and Softwares which are dependent on xyz

 
Girish_17
Regular Advisor

Depencies for installed xyz software and Softwares which are dependent on xyz

Hi Friends,
I would like to know what softwares are dependent on particular software.
for e.g. i have on my system installed XYZ software.

1. Now i want to know what things are required to keep XYZ intact (In case i have to remove other stuff but XYZ should not be affected).
2. Also where i should look for what all software are dependent on XYZ ( In case i have remove XYZ from System)

As far as issue 1 is concern i look into "Software description" in swremove menu.
But i would like to know better way of doing it.

Thanks a lot in Advance.
Regards,
Girish.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

The area to look at is swlist.

At this point I'm working on the command combination and will hopefully post back.

Seems the search forums post feature is not working. When it comes back you might be able to hunt down the command there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Girish_17
Regular Advisor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

THanks SEP fro your reply.
Yes i am using "swlist -v -l product "
But that doesn't help me in issue no.2

Looking further to your replies.
Thanks,
Thayanidhi
Honored Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

My reply is not exactly what you want? But think of this way. If you want to check a patch for its dependency, try the below command.

grep Dependen /var/adm/sw/products/PH*/pfiles/README

If the line returned with None, no dependencies, If it's blank open those READEME files for more information.

But I noticed there is no similar READEME files for normal software products. README is available only for patches.

Regds
TT
Attitude (not aptitude) determines altitude.
Girish_17
Regular Advisor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

Thanks Thayaninidhi,
My concern is to know what all softwares are dependent on my software.

Say i have a,b and c software installed on my server.

Now c requires b and assume i am not knowing it. Then how would i know looking at b that c needs b and that i should not remove b.

Regards,
Girish
Elias Abboud
Honored Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

Hi,

this is interesting. are you on a test machine? well if yes try to remove software b even though you know c depends on b. I think the system will prompt u for confirmation in this case. But i am not sure, it is just a guess.

One more thing If you are talking about patches this is another story and it would be very easy to know by checking their readme files as previously stated.

But if you are meaning software applications, I am thinking that the only way to know would be to check their documentation (installation guides) for pre-requisites. One example I could think of is ITO which depends on ORACLE. If you remove ORACLE you will be in trouble trying to run ITO :)

Cheers
Elias
If you can't solve it, post it :)
RAC_1
Honored Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

Looks like following will help you.

List the product and it's associated_bundles attribute. Like follows. I used glance product.

/usr/sbin/swlist -a associated_bundles B3693AA
# Initializing...
# Contacting target "xxxxx"...
#
# Target: xxxxx:/
#

# B3693AA
B3693AA.MeasurementInt
B3693AA.Glance
There is no substitute to HARDWORK
Girish_17
Regular Advisor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

Hi Elias,
You got that right. So let us talk about ITO and Oracle. Now if am installing this two softwares (assume) through swinstall that mean they are updating the IPD so why i can't know using any command whether ITO is dependent on Oracle without knowing ITO exists.
That mean i will run command on OracleSoftware to know whether something like ITO is dependent on it???

Any ideas....

Thanks a lot for your concern.
Regards,

Elias Abboud
Honored Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz

Hi again Girish,

I have to go now but i ll check it back tomorrow. in the mean time take a look at the man page of swverify and swlist. I think that if there is something to achieve your goal you should find it in one of these two man pages.

Cheers,
Elias
If you can't solve it, post it :)
Elias Abboud
Honored Contributor

Re: Depencies for installed xyz software and Softwares which are dependent on xyz


also check the

/var/adm/sw/products// directory maybe you will find some info over there.

cheers,
Elias
If you can't solve it, post it :)