1831658 Members
2184 Online
110029 Solutions
New Discussion

Want to make depot file

 
SOLVED
Go to solution
E Reus
New Member

Want to make depot file

I compiled proftp from source, but I want to make a depot file from it. Does anyone have experience with making depot files. What is the best way to make depot files
5 REPLIES 5
Jose Mosquera
Honored Contributor

Re: Want to make depot file

Hi,

In order to install multiple patches in one go, you will need to create a patches depot as follows :

1. Obtain the set of patches you want to install in your depot.


2. Unshar the patches:

# for i in PH*
do
sh $i
done

3. Combine all these separate depots into one depot. To do this, use the swcopy command. First, create the directory to store the patches:

# mkdir /tmp/patches

4. Now take the patch depots and copy them into the target depot:

# for i in PH*depot
do
swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patches
done

5. Verify the contents of the depot:

# swlist -d @ /tmp/patches


6. You can now use swinstall to install these patches in one hit. Run interactively, and select the patches you want.


Rgds.
Balaji N
Honored Contributor

Re: Want to make depot file

hi
i guess this helps you.

http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/proftpd-1.2.4/

regards
balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Steven E. Protter
Exalted Contributor

Re: Want to make depot file

Making a patch depot is incredibly easy now.

Go to

http://itrc.hp.com

Click patches

Click HP-UX

Use the search function to find your patch, click the button to add to your shopping or download list for what you want. It includes all dependencies.

Download the patches as one zip file.

ftp or whatever to get them on your hp box

unzip patches.zip


I a script called create_depot_hp-ux_11 is included

Run it with the -d parameter to create a depot followed by where you want the depot.

You can even modify the script to add other patches to your temporary depot.

Because sometimes dangerous dependencies are included in these bundles I recommmend the following install procedure

swinstall -x autoreboot=true -x reinstall=false -s /depot_location \*

The reinstall line keeps patches that are dangerous if they reinstall from messing up you life.

Can you say LITS patch, PHKL_18543(never reinstall it, trust a guy who did).

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
SGUX
Valued Contributor

Re: Want to make depot file

Had the same yesterday.
Followed Steve's link and after that the link to hp.docs for an example of the PSF and it works great.

Basically it is nothing more like;
- create PSF
- swpackage -s 'psf-file' -d 'path/file.depot'
- swreg -l depot 'path/file.depot'