1832204 Members
2523 Online
110039 Solutions
New Discussion

swinstall question

 
Nyck_1
Super Advisor

swinstall question

I have a requirement to install gvim on 11.23 and its requiring 20 dependancies, normally I would just swinstall each one but this is daft. Can someone tell me an easy way to install these dependancies in one go please?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: swinstall question

Use swcopy to place them all in one depot, from whence they can all be installed at once.


Pete

Pete
Ivan Krastev
Honored Contributor

Re: swinstall question

Hi Nyck,

Copy all dependencies to one depot:

swcopy -s dep1.depot \* @ /var/depot/yourdepot
.
.
.


after that install all at once:

swinstall -s /var/depot/yourdepot \*
or
swinstall -s /var/depot/yourdepot dep1 dep2 dep3 dep4 ...

regards,
ivan

Steven E. Protter
Exalted Contributor

Re: swinstall question

Shalom,

Download all the dependency depots into a single directory and the gvim depot.

Then:
# run this in script form with $1 ad the target depot

for i in *.depot
do
swcopy -x write_remote_files=true -x enforce_dependencies=false -s ${PWD}/$i \* @ ${1}
done

Example

depmake gvim_with_deps.depot

swinstall $PWD/gvim_with_deps.depot \*

1 line install

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
Jaime Bolanos Rojas.
Honored Contributor

Re: swinstall question

Nyck

http://docs.hp.com/en/5992-2146/ch04s02.html

Regards,

Jaime.
Work hard when the need comes out.
Nyck_1
Super Advisor

Re: swinstall question

Got it working like a dream with the script method, but i found the command line method failed. Below is what I used, what have I got wrong here?

swcopy -x write_remote_files=true -x enforce_dependencies=false -s /usr/local/downloads/vim/*.depot \* @/tmp/depot
Patrick Wallek
Honored Contributor

Re: swinstall question

You can't use wildcards in the swcopy command.

You must do something like this:

cd /usr/local/downloads/vim
for DEPOT in *.depot
do
swcopy -x write_remote_files=true -x enforce_dependencies=false -s /usr/local/downloads/vim/${DEPOT} \* @ /tmp/depot
done
Tingli
Esteemed Contributor

Re: swinstall question

I believe for swcopy need a full path.

# cd /tmp
# mkdir depot
# for i in /tmp/*.depot
# do
# swcopy -s $i \* @/tmp/depot
# done
# swlist -l depot
# swinstall -s /tmp/depot