Operating System - HP-UX
1838075 Members
3764 Online
110124 Solutions
New Discussion

Combining the package & a depot and install

 
SOLVED
Go to solution
Nikee Reddy
Regular Advisor

Combining the package & a depot and install

Hello,

I have downloaded few custom patches and created a bundle (make_bundles) and then a package using swpackage command.

I would like to install the above package and the QPK1100_B.11.00.64.4.depot together.

How can I install them together?

Thanks,
Nikee
6 REPLIES 6
Shaikh Imran
Honored Contributor

Re: Combining the package & a depot and install

Hi,
If i understood the question correctly then,

Try using swcopy and then use swinstall.
swcopy you can copy all the required patches
at on destination and then selectively install them using swinstall.

Regards,




I'll sleep when i am dead.
Muthukumar_5
Honored Contributor

Re: Combining the package & a depot and install

you can do it by combining or merging software selections and making as a target selection to swinstall.

Man page says as,

The swcopy command copies or merges software_selections from a
software source to one or more software depot target_selections These
depots can then be accessed as a software source by the swinstall
command.

Regards
Muthu
Easy to suggest when don't know about the problem!
Nikee Reddy
Regular Advisor

Re: Combining the package & a depot and install

Here is the procedure which I have followed:

Uncompress all the downloaded patch files using sh command:
for i in PH*
do
sh $i
done

mkdir /swdepot/patches./custom_aug_04

Copy the files using swcopy from the tmp directory.

for i in PH*.depot
do
swcopy -v -x enforce_dependencies=false -s /swdepot/patches/tmp/$i \* @ /swdepot/â ¦./custom_aug_04
done


Bundle â Product Specific File
make_bundles -B -n CSWPATCHES -t "Customized Patch Bundle, August 2004" -o titan_0804.psf -r C.1.0 /swdepot/patches/custom_aug_04

Package
swpackage -s titan_0804.psf -xlayout_version=1.0 -xreinstall_files=true -d /swdepot/patches/custom_aug_04

This is how I have create a package.

Thanks,
Bharat Katkar
Honored Contributor
Solution

Re: Combining the package & a depot and install

Nikee,
I assume your depot is /swdepot/patches/custom_aug_04. Secondly Created a bundle CSWPATCHES in /swdepot/patches/custom_aug_04.
Now you will be able to see this Bundle thr' swinstall menu.
Now copy QPK1100_B.11.00.64.4.depot file to /swdepot/patches/custom_aug_04 using swcopy command that you know already.

Now you have both your customized bundle as well as the QPK depot file in your depot.

Swintall will now see both of them in the install window, go ahead to select them and install.
Hope this is what you are looking for.

Regards,





You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Combining the package & a depot and install

After making bundle, there is no need to use swpackage.
swpackage is used baciscally to create a depot file.

Regards,
You need to know a lot to actually know how little you know
Petr Simik_1
Valued Contributor

Re: Combining the package & a depot and install

I use this proceurte:
You can make script like below and swinstall many patches without restart and reboot server after last one.

cp -p /var/adm/sw/defaults /var/adm/sw/defaults.ORI
echo "swagent.reboot_cmd=/bin/true" >> /var/adm/sw/defaults
swinstall -x autoreboot=true -s /dir/patch1.depot
swinstall -x autoreboot=true -s /dir/patch2.depot
cp -p /var/adm/sw/defaults.ORI /var/adm/sw/defaults
swinstall -x autoreboot=true -s /dir/patch3.depot