BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Showing results for 
Search instead for 
Do you mean 

swinstall

SOLVED
Go to Solution
Contributor

swinstall

[ Edited ]

How can I swinstall 10 patches at the same time using command line

 

 

P.S. this thread has been moevd from HP-UX > Security to HP-UX > patches - HP Forums Moderator

6 REPLIES
Outstanding Contributor

Re: swinstall

Un shar them, then use swcopy to put them into a depot first:

for i in *.depot
do
swcopy ${PWD}/$i \* @ /var/spool/sw
done

Pete

Pete
Outstanding Contributor

Re: swinstall

Oops, you said from the command line - I think you need to use swpackage to make a tape.

Pete

Pete
Outstanding Contributor

Re: swinstall

swpackage -s /tmp/patch_depot -x target_type=tape -d /dev/rmt/0m

Pete
Honored Contributor

Re: swinstall

1) Download the patches into /tmp for example
2) Un-shar them
# cd /tmp
# for X in PH*.htm
> do
> sh ${X}
> done
3) Pack 'em
# PDIR=/tmp/patch_depot
# mkdir ${PDIR}
# for X in PH*.depot
> do
> swcopy -s ${PWD}/${X} \* @ ${PDIR}
> done
4) List and see
# swlist -s ${PDIR}

Now run swinstall on /tmp/patch_depot dir.
Honored Contributor

Re: swinstall

Highlighted
Outstanding Contributor

Re: swinstall

Sanjay & S.K. -

That will get them collected into a depot but will he be able to install them all "from the command line" using the depot? I didn't think that would work?

Pete

Pete