1825766 Members
2609 Online
109687 Solutions
New Discussion

Re: bundling patches

 
Luis E. Giner_1
Occasional Contributor

bundling patches

We did a patch analysis on our N4000 and HP sent me a cd with all the patches (100+). I'd like to bundle them up into one bundle so I can back them out all at the same time. Is this possible? This is how they come on the CD. Thank you.

Aug 28 14:50 PHSS_27962
Aug 28 14:50 PHSS_28219
Aug 28 14:50 PHSS_28302
Aug 28 14:50 PHSS_28434
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: bundling patches

This script will do it for you.

# set this any way you wish
depot_location=/tmp/big.depot

for i in PH*
do
# unshar the patches
sh $i
done

# create the depot
for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ ${depot_location}
done

Solution.

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
Patrick Wallek
Honored Contributor

Re: bundling patches

If that's how HP sent them to you, then they didn't do a very good job. Usually they create a depot for you.

Here is what I'd do:

# cd /to_somewhere_with_lots_of_disk_space
# for i in /cdrom/PH*
>do
>sh $i
>done

# PATCHDIR=/tmp/patch_depot
# mkdir ${PATCHDIR}
# for i in PH*.depot
>do
>swcopy -s ${PWD}/$i \* @ ${PATCHDIR}
>done
Luis E. Giner_1
Occasional Contributor

Re: bundling patches

No luck on either one. I get "permission Denied" on all of them. I tried copying them from the CD to a directory and I get the same error when I do the unshar. I also tried doing a chmod on the whole directory tree but to no avail.

sh: PHCO_27818: Execute permission denied.
sh: PHCO_27847: Execute permission denied.
sh: PHCO_28069: Execute permission denied.
sh: PHCO_28116: Execute permission denied.
sh: PHCO_28141: Execute permission denied.
sh: PHCO_28166: Execute permission denied.
GK_5
Regular Advisor

Re: bundling patches

Are you logged in as root?

-GK-
IT is great!
Luis E. Giner_1
Occasional Contributor

Re: bundling patches

Yes. File systems are owned by root.