Operating System - HP-UX
1832609 Members
2522 Online
110043 Solutions
New Discussion

Finding the specific pakage with swinstall

 
Fay_1
Contributor

Finding the specific pakage with swinstall

Hello,
I use swinstall to connect to a software server and then try to find a specific package that I want to install. I find it very hard to look into each source path and see if the name of the desired package is in there. Is there a way that I can type in the name of a package (eg: netscape or LVM) and it will at least tell me what path I should look into?
Thanks for the help.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Finding the specific pakage with swinstall

Hi:

By way of example, how about this:

# swlist -l file |grep -i glance|more

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: Finding the specific pakage with swinstall

Hi Fay,

I don't think there is any easy way to find out the info you are looking for. You can do a telnet to the box and do a "ll" for the patch depot directories and locate the packge if you know the packge code B????? or something like that.

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: Finding the specific pakage with swinstall

Hi Fay,

you can try,

swlist -d * @ Depot_Server:/path_to_depot

This will list all the packges on the depot.

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: Finding the specific pakage with swinstall

have you tried switching your view from product to topic?

live free or die
harry
Live Free or Die
Darrell Allen
Honored Contributor

Re: Finding the specific pakage with swinstall

Hi Fay,

I believe you're going to have to check each depot seperately. The following works on 11.0 but I don't know for certain on earlier OS levels (but I feel pretty good that it will):

List the registered depots on you software_server:
swlist -l depot @ software_server

If the depots aren't registered then you should use "swreg -l depot path_to_depot" on the software server to register them.

Now that you have the list of registered depots, list their contents:
swlist -d @ software_server:/path_to_depot

Repeat the last swlist for each depot you need to.

You can also specify the "-l" option to list filesets, products, or bundles. Example:
swlist -l fileset -d @ software_server:/path_to_depot

Now it's a simple process of grepping the output for the package you need.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Roger Baptiste
Honored Contributor

Re: Finding the specific pakage with swinstall

hi,

if you are on a remote system, do
#swlist -l depot @

This will list the depots present in swserver system

eg:/swdepot/11.11/OV

To list the products in the depot do
#swlist -d * @ swserver:/pathofdepot

eg: swlist -ld * @ swserver:/swdepot/11.11/OV

HTH
raj
Take it easy.
Deshpande Prashant
Honored Contributor

Re: Finding the specific pakage with swinstall

HI
If all depots are registered then use
#swlist -d @: |grep

Thanks.
Prashant.
Take it as it comes.