1834380 Members
1777 Online
110066 Solutions
New Discussion

Re: Depot file creation

 
Manish_33
Advisor

Depot file creation

Hi,
I have created the depot and now want to distribute it to others. The depot i have created is in form of directory. If I wish to distribute it do I need to create a tar of both the depot of my sw and the catalog directory. What I understand is I can create a single .depot file but only when it is on tape otherwise it creates a directory using the command below.
# /usr/sbin/swpackage -v -s XYZ.psf -x target_type=tape @ .depot

Please help.
8 REPLIES 8
Arunvijai_4
Honored Contributor

Re: Depot file creation

Hi Manish,

Yes, you can create a tape depot and gzip it. Tape depot is already tarred internally and named *.depot.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: Depot file creation

Hi,

You can only distribute the resulting depot file. Nothing else is required to be distributed. On remote hosts use

#swinstall -s /path_to_file/file.depot


HTH,
Devender
Impossible itself mentions "I m possible"
Manish_33
Advisor

Re: Depot file creation

Hi Devendra,
When I just tarred my sw directory and put it in my home directory on a new machine I was not able to install since swinstall was not able to find the depot. It was only when I copied catalog directory too there then I could install it using
swinstall -s localhost:/home/manish
otherwise it give error.

Am I missing something?.


Thanks in advance.

Re: Depot file creation

Hi Manish

Have you registered the depot on the new server ?
Otherwise swinstall will not find it.

swreg -l depot /path/.depot

After swreg, check with swlist that the depot has been registred on the server

swlist -l depot

If it's there, install with swinstall.
Devender Khatana
Honored Contributor

Re: Depot file creation

Hi,

As mentioned earlier, the depot file was the only requirement for the swinstall to work. This file is allready compressed and one will not get much out of compressing or tarring it.

In whatever way you moved files, if you have one depot file there swinstall should work. If you have moved files using tar then untar them to get the depot file and then run swinstall command.

HTH,
Devender
Impossible itself mentions "I m possible"
Manish_33
Advisor

Re: Depot file creation

Hi,
It seems I am not able to explain my problem. Let me state it agiain. I have a code "test_pack" for which I created a psf file and ran the following command.
swpackage -s /home/manish/test.psf @ /home/manish
This gave me the following directory hierarchy
/home/manish/catalog and /home/manish/test_pack
I don't have any .depot file.
Also since I don't have to install it from the network I guess I don't need to register it. What I want is to install my software on a standalone machine. I will ftp it to that m/c and then disconnect it from the network. Now what are the files/directories and in which format should I transfer them so that swinstall works properly?

Thanks in advance for your suggestions.
Arunvijai_4
Honored Contributor

Re: Depot file creation

Hi Manish,

You can just tar the dir /home/manish/catalog and /home/manish/test_pack and ftp to any machine,.In machine B, you need to untar and register it. If you can able to create a tape depot, it would be very easy as you dont need to swreg anywhere.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Frank de Vries
Respected Contributor

Re: Depot file creation

I posted a similar question recently,
the answers were good for me
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981165

Look before you leap