在solaris上安装pkg_get工具
发表于:2007-05-26来源:作者:点击数:
标签:
作者南非蜘蛛 Emailzhedou(AT)sohu.com 主页http://www.douzhe.com 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明 原文链接http://www.douzhe.com/blog/post/1/48 以前一直使用freebsd,用惯了ports安装软件,ports
作者 南非蜘蛛
Email zhedou(AT)sohu.com
主页 http://www.douzhe.com
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明
原文链接 http://www.douzhe.com/blog/post/1/48
以前一直使用freebsd,用惯了ports安装软件,ports安装的简单,方便,使所有网管的工作变的简单方便,不用为了软件的
兼容性和相关软件的安装而烦恼,debian的apt安装也延续了这种方式。
因为工作需要,还有很多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 w
ant 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 g
clearcase/" target="_blank" >cc
/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
我的mirror站点
http://www.douzhe.com/mirrors/blastwave.org/csw/
参考文章
http://www.blastwave.org
sun CEO BLOG
http://blogs.sun.com/jonathan
stevens_wu 回复于:2004-09-02 20:02:50
|
好帖子!我以前在freebsd下用ports装软件很方便,现在solaris下也有了,呵呵!谢谢蜘蛛JJ
|
deeperpurple 回复于:2004-09-02 23:01:00
|
不错~ 苦日子结束了
谢过大蜘蛛
|
echo52 回复于:2004-09-05 12:04:58
|
把/opt/csw/bin加入到PATH里
/opt/csw/bin/pkg_get install gcc
/opt/csw/bin/pkg_get install vim
path是个什么概念? 这两条语句我直接执行告诉我找不到pkg_get 而我转到目录里去看却是有的,在bin目录下执行却是可以的,why?
#/opt/csw/bin/pkg_get install gcc
pkg_get :file not found
#/opt/csw/bin/pkg_get install vim
pkg_get :file not found
还有个疑问
# pwd
/opt/csw/bin
#./pkg-get install wget
成功,最后的提示信息是这样的,
## Installing part 1 of 1.
/opt/csw/bin/wget
/opt/csw/etc/wgetrc.CSW
/opt/csw/sbin/wget.static
/opt/csw/share/info/wget.info
/opt/csw/share/info/wget.info-1
/opt/csw/share/info/wget.info-2
/opt/csw/share/info/wget.info-3
/opt/csw/share/info/wget.info-4
/opt/csw/share/man/man1/wget.1
[ verifying class <none> ]
## Executing postinstall script.
Installation of <CSWwget> was successful.
但我是执行:
# wget
wget: not found
# pwd
/opt/csw/bin
# ./wget
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
#
为什么这样方式安装的软件非得在本目录下执行??
|
havdone 回复于:2004-09-06 08:53:56
|
出现这个错误怎么回事?
Trying http://ibiblio.org/pub/packages/solaris/csw/unstable/i386/5.9/wget-1.9.1,REV=2003.12.26-SunOS5.8-i386-CSW.pkg.gz
--09:51:40-- http://ibiblio.org/pub/packages/solaris/csw/unstable/i386/5.9/wget-1.9.1,REV=2003.12.26-SunOS5.8-i386-CSW.pkg.gz
=> `wget-1.9.1,REV=2003.12.26-SunOS5.8-i386-CSW.pkg.gz'
Connecting to ibiblio.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 265,555 [text/plain]
0K .... 100% @ 18.77 KB/s
09:51:55 (18.77 KB/s) - `wget-1.9.1,REV=2003.12.26-SunOS5.8-i386-CSW.pkg.gz' saved [265555/265555]
/opt/csw/bin/pkg-get[13]: cpio:^J1 + 1: 错误数字
|
原文转自:http://www.ltesting.net
|