Re: swinstall (66 Views)
Reply
Contributor
Rogelio Ordinario
Posts: 21
Registered: ‎01-31-2001
Message 1 of 7 (66 Views)
Accepted Solution

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

Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,201
Registered: ‎11-03-1996
Message 2 of 7 (66 Views)

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
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,201
Registered: ‎11-03-1996
Message 3 of 7 (66 Views)

Re: swinstall

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

Pete

Pete
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,201
Registered: ‎11-03-1996
Message 4 of 7 (66 Views)

Re: swinstall

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

Pete
Please use plain text.
Honored Contributor
S.K. Chan
Posts: 4,063
Registered: ‎08-29-2000
Message 5 of 7 (66 Views)

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.
Please use plain text.
Honored Contributor
Sanjay_6
Posts: 5,942
Registered: ‎04-15-2001
Message 6 of 7 (66 Views)

Re: swinstall

Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,201
Registered: ‎11-03-1996
Message 7 of 7 (66 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation