Operating System - HP-UX
1829863 Members
2316 Online
109993 Solutions
New Discussion

Controlling swinstall destination directory

 
Smucker
Regular Advisor

Controlling swinstall destination directory

Is there any way to control the destination directory while using swinstall. I upgraded to a new version of gzip but it is dropping the members in /usr/local/bin and not /usr/contrib/bin.

I hesitate to just do a move incase I ever need to do a swremove.

Any ideas
5 REPLIES 5
RAC_1
Honored Contributor

Re: Controlling swinstall destination directory

That is how depot was prepared. You will have to compile from source.
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: Controlling swinstall destination directory

During the swinstall you should be able to choose the destination directory. It might be under Options in the GUI - I don't remember exactly.


Pete

Pete
Rick Garland
Honored Contributor

Re: Controlling swinstall destination directory

The depot packages are built with the install location.

Would have to tear it apart and repackage.

Sreedhar Nathani
Valued Contributor

Re: Controlling swinstall destination directory

Hi,

By Default Destination directory is "/"

Incase if you want to install gzip /test/usr/local/bin instead of /usr/local/bin,
then you can mention the destination directory as /test during the installation

** Is there any way to control the destination directory while using swinstall.
I upgraded to a new version of gzip but it is dropping the members in
/usr/local/bin and not /usr/contrib/bin. **

For this specific gzip you can do the following

All the depot files are tar balls
a. create a tmp dir /var/hp
b. copy the depot file to /var/hp
c. extract the depot with tar xvf
#cd /var/hp
#tar xvf
it will create catalog and Product directory
catalog and gzip
d. modify the following files and save
/var/hp/catalog/gzip/gzip-RUN/INFO
/var/hp/catalog/gzip/gzip-MAN/INFO
edit the file using vi
:1,$ s/local/contrib/g ** this will modify from local to contrib

e. mv the source files from local to contrib
#mv /var/hp/gzip/gzip-RUN/usr/local /var/hp/gzip/gzip-RUN/usr/contrib
#mv /var/hp/gzip/gzip-MAN/usr/local /var/hp/gzip/gzip-MAN/usr/contrib

h. create a depot with modified files
#cd /var/hp
#tar cvf gzipmodified.depot catalog gzip

i. install using this depot
#swinstall -s /var/hp/gzipmodified.depot gzip

I tested this and it worked for me

Hope this helps :-)

Smucker
Regular Advisor

Re: Controlling swinstall destination directory

Thanks