Operating System - HP-UX
1834645 Members
3157 Online
110069 Solutions
New Discussion

How to install depot or .sd file in diff filesystem

 
Viswanadhan
Regular Advisor

How to install depot or .sd file in diff filesystem

Hi Admin,

I have space problem in HP UX 11.0 box for /usr, /var, etcc. I want to install gcc compile, binutils, and Apache in this server in diff filesystem, say /u06.

For example :

# swinstall -s /tmp/gcc*
gcc install in default location /usr/local/bin directory

or

# swinstall -s /tmp/gcc* gcc
Now gcc will install in /opt filesystem

Is it possible to install gcc, bintils, at diff filesystem, say /u06 ?

Regards,
Viswa.
7 REPLIES 7
Aneesh Mohan
Honored Contributor

Re: How to install depot or .sd file in diff filesystem

Hi Viswa,

A small info ..create a seperate filesytem and mount on /opt/gcc directory and try to install gcc using the below command.

# swinstall -s /tmp/gcc* gcc


Thanks ,
Aneesh
Viswanadhan
Regular Advisor

Re: How to install depot or .sd file in diff filesystem

Hi,

Even i donot have much space for
/
/usr
/opt
/var

Im trying to install gcc4.2.2...
But i have /u06 with 2gb space.

Regards,
Viswa.
Aneesh Mohan
Honored Contributor

Re: How to install depot or .sd file in diff filesystem

Hi Viswa,

I feel better to extend the filesystems /var ,/usr, /opt ..since all these are critical for OS .If you don`t have enough disk space then plan to upgrade the disk drive or install new drive if you have enough free slot available .

Thanks,
Aneesh
Dennis Handly
Acclaimed Contributor

Re: How to install depot or .sd file in diff filesystem

># swinstall -s /tmp/gcc*
>gcc install in default location /usr/local/bin directory
># swinstall -s /tmp/gcc* gcc
>Now gcc will install in /opt filesystem

How do these commands install in different locations?

You can do an alternate root installation but I'm not sure if gcc will work after that:
# swinstall -s $PWD/gcc.depot \* @ /u06
Vladimir Fabecic
Honored Contributor

Re: How to install depot or .sd file in diff filesystem

Why not doing this:
# mkdir /u06/gcc
# ln -s /u06/gcc /opt/gcc
# swinstall -s /tmp/gcc* gcc

Symbolic link is sometimes a good way how to "extend".
In vino veritas, in VMS cluster
Viswanadhan
Regular Advisor

Re: How to install depot or .sd file in diff filesystem

Hi All,

Let me try like this.

# mkdir /u06/gcc
# ln -s /u06/gcc /opt/gcc
# swinstall -s /tmp/gcc* gcc

Regards,
Viswa.
Sagar Sirdesai
Trusted Contributor

Re: How to install depot or .sd file in diff filesystem

Hi
Use the below command
swinstall -s /tmp/gcc*,l=/u06.
Thanks

Sagar