Operating System - HP-UX
1753738 Members
4389 Online
108799 Solutions
New Discussion юеВ

Re: Installed location of a package

 
Vibhor Kumar Agarwal
Esteemed Contributor

Installed location of a package

Hi,

I have created test package named Test.
How do i figure out the installed location of package.

Was doing "swlist -l file Test" and it stated
/opt/Test/Test.txt
If I relocate the package to /abc, then also swlist -l file is giving /opt as the location.

Now how do i figure the installed location?
Thanks
Vibhor Kumar Agarwal
17 REPLIES 17
sreekanthtm
Trusted Contributor

Re: Installed location of a package

Hi,

My thoughts....
Swlist pick the information from its owm database created while installing the package. So, if you are relocating the file manually, that won't afect the swlist o/p. You need to slecify the installation location while installing the pkg.

Rgds,
Sreekanth.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Installed location of a package

The package is already installed at the relocated location of "/abc/Test".

Now if a new user comes, how does he determine the location of the package.
Vibhor Kumar Agarwal
Dennis Handly
Acclaimed Contributor

Re: Installed location of a package

>how do I figure the installed location?

From within a control script?
http://docs.hp.com/en/5992-5875/ch11s04.html#v2215294
SW_LOCATION
SW_ROOT_DIRECTORY
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Installed location of a package

Yes,

I am aware of that. I want to find the location of the package after it has been installed.

Say a 2nd person.
Vibhor Kumar Agarwal
Dennis Handly
Acclaimed Contributor

Re: Installed location of a package

>I want to find the location of the package after it has been installed.

I would hope swlist would tell you that. Otherwise it would be next to useless.
You may have to use -v to see which attribute.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Installed location of a package

Probably the "location" attribute in "swlist -v" gives the installed location.

But shouldn't "swlist -l file " point to the location where the binaries are installed?
Vibhor Kumar Agarwal
Sajjad Sahir
Honored Contributor

Re: Installed location of a package

Dear Friend

swlist -v
List all the attributes for an object if no -a options are specified. (Vendor-defined attributes are not included. See the -a option.) The output lists one attribute per line in the format:

attribute_name attribute_value

thanks and regards

Sajjad Sahir

Bill Hassell
Honored Contributor

Re: Installed location of a package

> If I relocate the package to /abc, then also swlist -l file is giving /opt as the location.

relocate?

Di you simply move the /opt/pkg to /abc? If so, kyou have disconnected all information about the package from swlist. swlist will show where it WAS installed. After that, any changes to directories cannot be tracked. You would have to remove the package and reinstall it with swinstall but specify the new location. Then swlist will show where it was installed.


Bill Hassell, sysadmin
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Installed location of a package

I installed it via normal relocation install:

swinstall -s Test,l=/abc/Test

Even then "swlist -l file Test" shows
/opt/Test/Test.txt
Vibhor Kumar Agarwal