在solaris上安装pkg_get工具
因为工作需要,还有很多solaris需要维护,值得庆幸的是,solairs也有了这种工具,这就是pkg_get,由blastwave.org推出的
什么是blastwave.org?
blastwave.org is a collective effort to create a set of binary packages of free software, that can be automatically installed to a Solaris computer (sparc or x86 based) over the network.
We do not have Open Source Solaris yet, but we are building for the future today.
官方网站有详细解释,我就不生造句子了
好了,让我们开始pkg_get之旅吧
1:下载pkg_get
官方 http://www.blastwave.org/pkg_get.pkg
我的站点 http://www.douzhe.com/mirrors/blastwave.org/csw/pkg_get.pkg
2:安装pkg_get
# pkgadd -d pkg_get.pkg
如果在solaris8下安装有问题,请打下面几个patch
Patches needed
If you run into pkgadd problems under solaris 8, you may need to add patches
110380-04 (x86 110403)
110934-11 (x86 110935)
[if you have a support contract, you will also want to add]
[ 112097-02 (x86 112098 ]
3:设置
vi /opt/csw/etc/pkg-get.conf
# default site, in USA:
#url=http://ibiblio.org/pub/packages/solaris/csw/unstable
url=http://www.douzhe.com/mirrors/blastwave.org/csw/unstable
或者其它比较快的site,参考http://www.blastwave.org/mirrors.php
如果有gpg,但不想使用,请打开下面这行注释
use_gpg=false
4:测试
把/opt/csw/bin加入到PATH里
/opt/csw/bin/pkg_get install gcc
/opt/csw/bin/pkg_get install vim
5:常用参数
Short summary of pkg-get usage
pkg-get -a (shows "available" packages)
pkg-get -i openldap (installs openldap, and all libraries it depends on)
pkg-get -D open (searches for software with 'open' in the description)
pkg-get -U -u (upgrades all installed CSW packages to the latest)
If/when you get messages about packages not found, or unavailable, you probably want to just update your local copy of the catalog, with
pkg-get -U
6:成为mirror站点
如果你有4G以上的硬盘和充足的带宽,下载官方站点的软件,并在这里注册一下信息,就可以了
http://www.blastwave.org/mirror-signup.php
原文:http://www.douzhe.com/article/2/138.html
参考文章
http://www.blastwave.org
sun CEO BLOG
http://blogs.sun.com/jonathan