第三方软件安装在Solaris的什么地方?

Please avoid installing any 3rd party software, including your own, under /usr. That directory is for the OS vendor / distro maintainer and is off limits for anything else.
Using /usr can cause all kinds of nasty problems down the road. My favorite example is sparse zones (virtual servers): if one installs stuff under /usr in the global zone, those packages cannot be installed in sparse zones simply because a sparse zone is loopback-mounted from the global zone. Major headache.
And if you just stuck "some stuff" under /usr, think about how you will remove it or upgrade it? You won't because unless it came onto the system as a package, who knows where junk is laying around; but even if it's a package, you have problem #1.

On a System V UNIX, such as Solaris, /opt is reserved for 3rd party and for unbundled applications; that's where stuff is supposed to go. /var/opt is where the 3rd party application data goes, and /etc/opt is where the 3rd party application's configuration files go.

Apropos GCC, GCC comes bundled with Solaris; it's in /usr/sfw/bin/, so you didn't have to install it at all.

As far as bash goes, I warmly recommend you read through the man page of `tcsh`.


And if you _must_ have /usr/local, put it in /opt/local and loopback mount that to /usr/local.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值