Operating System - HP-UX
1833777 Members
1935 Online
110063 Solutions
New Discussion

Re: Need single file depot that installs exactly like prepackaged bundles

 
SOLVED
Go to solution
jmb
Regular Advisor

Need single file depot that installs exactly like prepackaged bundles

I've searched through this forum repeatedly to find the steps necessary for this, and I'm still not gettting it. I'm close, but so far no cigar.

I want to be able to pull down selected patches, bundle them all into a single .depot file, then install them through the command line with a single swinstall command. Most of the examples I've come across create a working directory, then install from there.

This might be easier than it seems, but my testing so far has not been successful. Some of the links in previous threads no longer work, so any suggestions are appreciated.
8 REPLIES 8
RAC_1
Honored Contributor

Re: Need single file depot that installs exactly like prepackaged bundles

mkdir /tmp/patch

swcopy -s "source" "product-name" @ /tmp/patch
Do so for all patches you need.

Or you can do interactive swcopy. swcopy -i -s "source"

Than swinstall -s /tmp/patch

Anil
There is no substitute to HARDWORK
Mel Burslan
Honored Contributor

Re: Need single file depot that installs exactly like prepackaged bundles

if you download all your patches in one single shot, i.e., select all patches from patcg database and then click on download selected, the final tar.gz or tgz file (if you selected that format) will include a shell script called create_depot or something close to that which will bundle all the products you downloaded into a single depot, where you can install them all in one single shot. You just run this script and you are golden.

Otherwise, if you have patches here and there scattered on your disks, in different depots, follow Anil's directions and you should be good to go.

________________________________
UNIX because I majored in cryptology...
D Block 2
Respected Contributor

Re: Need single file depot that installs exactly like prepackaged bundles

I follow the above suggestion myself..

itrc -> maintenance -> path_firmware_database

Loop Here:

enter Patch
select: Add_to_Selected_Patch_List

** choose "Add Patches", not the "Down_Load Selected"..

End Loop:

now do the Down_Load_Selected - gets all the patches..

gunzip, and extract the entire .tar file into a new directory, say: /tmp/newdir_name
then run the create_depot script:

# ./create_depot_hp-ux_11

# ll depot
there is a BUNDLE directory created under here.

# swinstall -s /tmp/newdir_name/depot





Golf is a Good Walk Spoiled, Mark Twain.
David Child_1
Honored Contributor
Solution

Re: Need single file depot that installs exactly like prepackaged bundles

Perhaps you are looking for something like this;

1. download patches and create the sw depot as already mentioned (into /tmp/patch for example)
2. package into a single depot file using;
swpackage -d "| gzip -c > /tmp/patch.depot.gz" -x target_type=tape -s /tmp/patch \*

This will create a single gzip'd .depot file.

David
jmb
Regular Advisor

Re: Need single file depot that installs exactly like prepackaged bundles

David, you paid attention to my question! I was looking for the single file. The others did not answer that, and you did.

Thanks for paying attention to the requirements doc!
Mel Burslan
Honored Contributor

Re: Need single file depot that installs exactly like prepackaged bundles

in order to accopmplish what you are trying to do, i.e., select all the patches in one single click and mark, if what I am understanding from your comments is right, you do not have to do it that way.

Using either Anil's or my/Tom's suggestion, if you compiled everything into a single depot *directory*, you can use the following command to install them without even needing the graphical interface:

(this assumes, your depot directory is /tmp/patch/patches)

swinstall -x match_target=true \
-x mount_all_filesystems=false \
-x autoreboot=true \
-s /tmp/patch/patches PH*

everyn patch which matches your target will install automatically.
________________________________
UNIX because I majored in cryptology...
jmb
Regular Advisor

Re: Need single file depot that installs exactly like prepackaged bundles

Mel, I specifically needed a single file because it will be copied out to multiple servers. I did not want to deal with mutltiple files in a directory. I wanted to keep things as simple as possible, and David's suggestion appears to be doing that.
D Block 2
Respected Contributor

Re: Need single file depot that installs exactly like prepackaged bundles

think about it.. as Mel pointed out just above this repsonse. use network based or file-locate-push-based installs w/ swintall.

you can do a network-access to this depot "directory" using swinstall on another system. simply bring up the GUI interface or Curser based interface (last resort)..

enter the system name that has the downloaded patches..

enter the path to the downloaded BUNDLE directory (or "depot" path: /tmp/dir/depot).

and that's it, all network based.. this is part of the behavior of SWINSTALL..

my point is: you don't have to push or rcp or copy the tar'ed directory and then un-tar it on the other servers.. it's network based.

best of luck,
Tom
Golf is a Good Walk Spoiled, Mark Twain.