[csw-users] pkg-get to install in ither directories

Mike Arnold mike at blastwave.org
Wed May 19 13:11:57 CEST 2004


Siew Hui, Wong said:
> Hi,
>
> i'm a newbie to solaris, so bear with me. I have to install gcc3rt to get
> php going in a solaris 8 box. But df -k shows that the directory "/" has
> not enough of space to install gcc3rt
>
[snip]
>
> Based on what is suggested in the userguide, can i just redirect the
> installation in /opt/csw like below?
>
> # mount /tmp /opt/csw
>
> I am not familiar with solaris and the machine, so am trying to minimise
> mistakes heh. Any advice is very much appreciated. Thank you for your
> consideration.
>
>
> best regards,
> siew hui
> _______________________________________________
> users mailing list
> users at lists.blastwave.org
> https://lists.blastwave.org/mailman/listinfo/users

You *could* do that, but when you reboot, you won't have any /opt/csw. 
/tmp is a tmpfs which exists only in memory.  (Additionally, the syntax
above will not quite work.)

You can do what I have done:
# as root
# goto single user mode
init S
# move /opt/csw to /export/home
mv /opt/csw /export/home
# create a symlink from /opt/csw/to /export/home/csw
ln -s /export/home/csw /opt/csw
# go back to runlevel 3
exit

-- 
-mike



More information about the users mailing list