- 论坛徽章:
- 0
|
什么是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
(这是默认值,(unstable)代表最新版本,可能不稳定。可以改为(stable)代表已经试运 行一段时间,相对稳定。)
url=http://www.douzhe.com/mirrors/blastwave.org/csw/unstable
或者其它比较快的site,参考http://www.blastwave.org/mirrors.php
如果有gpg,但不想使用,请打开下面这行注释
use_gpg=false
# pkg-get now defaults to downloading to /var/pkg-get/downloads
# If you'd like it somewhere else, change it here
# PKGGET_DOWNLOAD_DIR=/some/large/dir/pkg-get --------将这一行的注释去掉, 并写入自己希望的下载目录。
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
7,查看可下载的软件
opt/csw/bin# /opt/csw/bin/pkg-get -c
ant [Not installed] 1.7.0,REV=2007.09.17
antdoc [Not installed] 1.7.0
antiword [Not installed] 0.33
ap2_mod_jk [Not installed] 1.2.25,REV=2007.10.25
ap2_modapreq2 [Not installed] 2.08,REV=2007.10.25
ap2_modevasive [Not installed] 1.10.1,REV=2007.10.25
ap2_modfastcgi [Not installed] 2.4.2,REV=2007.10.25
ap2_modperl [Not installed] 2.0.3,REV=2007.10.25
ap2_modphp5 [Not installed] 5.2.4,REV=2007.10.29
ap2_modpython [Not installed] 3.3.1,REV=2007.10.25
ap2_prefork [Not installed] 2.2.6,REV=2007.10.25
ap2_subversion [Not installed] 1.4.5,REV=2007.11.18
ap2_suexec [Not installed] 2.2.6,REV=2007.10.25
ap2_worker [Not installed] 2.2.6,REV=2007.12.05
apache [Not installed] 1.3.37,REV=2007.09.02
apache2 [Not installed] 2.2.6,REV=2007.10.25
apache2_devel [Not installed] 2.2.6,REV=2007.10.25
apache2_manual [Not installed] 2.2.6,REV=2007.10.25
apache2c [Not installed] 2.2.6,REV=2007.11.02
apache2rt [Not installed] 2.2.6,REV=2007.10.25
apg [Not installed] 2.2.3
arc [Not installed] 5.21
archivemail [Not installed] 0.6.1,REV=2004.06.27
8,其他功能介绍:
pkg-get
'-i|install' installs a package -----安装一个软件包
'-u|upgrade' upgrades already installed packages if possible -----升级已安装的软件包
'-a|available' lists the available packages in the catalog -----查看所有列表中的软件包信息
'-c|compare' shows installed package versions vs available -----查看可下载的软件信息,及其本地的安装状态
'-l|list' shows installed packages by software name only -----只显示已安装软件的名字
Optional modifiers:
'-d|download' just download the package, not install -----只下载软件,不进行安装
'-D|describe' describe available packages, or search for one -----查看软件描述信息,或者搜索某一软件
'-U|updatecatalog' updates download site inventory -----更新下载目录
'-S|sync' Makes update mode sync to version on mirror site -----在镜像网站上,使升级模式与新版本同步
'-f' dont ask any questions: force default pkgadd behaviour -----强制执行默认选项
Normally used with an override admin file
See /var/pkg-get/admin-fullauto
'-s ftp://site/dir' temporarily override site to get from -----暂时使用其他网站进行下载
上述是综合各网站博客的文章.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/65478/showart_1226543.html |
|