今天安装ORACLE的时候,给SOLARIS打包
下面介绍下打包方法
pkgadd -d 路径 包名
-bash-3.00# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product/ SUNWlibC
处理软件包范例来自
Sun Workshop Compilers Bundled libC(i386) 5.10,REV=2004.12.20
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
试图安装同已经安装的软件包具有相同的 结构和版本号的软件包.这次安装将会
覆盖这个已经安装的包.
使用>作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
16软件包路径名已经正确地安装
## 检查软件包的依赖性
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。
在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.
要继续安装 [y,n,?] y
安装Sun Workshop Compilers Bundled libC成为
##正在安装1部分- 1.
安装成功
还有一种方法是:
下载:pkgutil
-bash-3.00# pkgadd -d pkgutil_i386.pkg
The following packages are available:
1 CSWpkgutil pkgutil - Installs Solaris packages easily
(i386) VERSION=1.8.0,REV=2010.03.08_rev=bw
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
处理软件包范例来自
pkgutil - Installs Solaris packages easily(i386) VERSION=1.8.0,REV=2010.03.08_rev=bw
+-----------------------------------------------------------------------+
| |
| GNU GENERAL PUBLIC LICENSE |
| Version 2, June 1991 |
| |
| Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
| 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| Everyone is permitted to copy and distribute verbatim copies |
| of this license document, but changing it is not allowed. |
| |
| see /opt/csw/share/doc/pkgutil/license for entire verbatim license. |
| |
+-----------------------------------------------------------------------+
使用>作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。
在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.
要继续安装 [y,n,?] y
安装pkgutil - Installs Solaris packages easily成为
##正在安装1部分- 1.
/opt/csw/bin/bldcat
/opt/csw/bin/chkcat
/opt/csw/bin/pkgutil
/opt/csw/libexec/pkgutil/md5
/opt/csw/libexec/pkgutil/wget
/opt/csw/share/doc/pkgutil/admin.pkgutil
/opt/csw/share/doc/pkgutil/license
/opt/csw/share/doc/pkgutil/pkgutil.conf
/opt/csw/share/doc/pkgutil/readme
/opt/csw/share/man/man1/bldcat.1
/opt/csw/share/man/man1/chkcat.1
/opt/csw/share/man/man1/pkgutil.1
[ 确认类别 ]
## 执行预安装正文
WARNING : /etc/opt/csw/pkgutil.conf could not be found
: A default conf file will be created for you.
INFO : A sample configuration file has been placed
: into /etc/opt/csw/pkgutil.conf
WARNING : A software package admin file was not found
: at /var/opt/csw/pkgutil/admin
: A default admin file will be created for you.
NOTICE : If your mirror was set to http://blastwave.network.com we have
: changed it to point at http://download.blastwave.org to ensure
: your continued operation in the event we need to change the
: primary mirror.
INFO : The pkgutil software has been installed at/opt/csw/bin/pkgutil
: Please verify that you have a pkgutil.conf file at /etc/opt/csw
: and a storage area for software catalogs and downloaded files
: at /var/opt/csw/pkgutil and /var/opt/csw/pkgutil/packages.
: +-----------------------------------------------------+
: | The FIRST Action to take once you verify that you |
: | have a pkgutil.conf file setup is to fetch the most |
: | recent software catalog thus |
: | |
: | /opt/csw/bin/pkgutil --catalog |
: | |
: | Be sure to read the HOWTO documents at |
: | |
: | http://www.blastwave.org/ |
: | |
: | Also please join the user forums at |
: | |
: | http://wiki.blastwave.org/forum/index.php |
: +-----------------------------------------------------+
安装成功
帮助
输入以下命令就可以查看帮助文本:
-bash-3.00# /opt/csw/bin/pkgutil
Pkgutil 1.8.0bw, install Solaris packages the easy way.
Usage: pkgutil [option]... [package](-[version])...
-i, --install Install package
-u, --upgrade Upgrade package
-r, --remove Remove package (experimental)
-d, --download Download only
-U, --catalog Update catalog
-a, --available Show available packages
-c, --compare Compare installed packages to current
-C Same as -c but only show different versions
-e, --email=address Send e-mail with available updates
-t, --temp=site Temporarily use this site as primary for download
-s, --stream Build a package stream
-T, --target=arch:rel Specify architecture and OS release for stream
-o, --output=file File name for package stream (used with -s)
-x, --exclude=package Package to exclude
-W, --workdir=path Path to use for downloads
--config=file Use this configuration file
-y, --yes Answer yes on all prompts
-n, --nomod No modifications are made to the system
-D, --debug Debug mode
--trace Set trace mode (-v) for pkgadd/pkgrm
-h, --help Show this help
-v, --version Show version
-V, --syscheck System check
Example: pkgutil -i CSWwget (install wget and its dependencies)
Written and maintained by Peter Bonivart.
设置路径:
PATH=/opt/csw/bin:$PATH export PATH
export PATH
初始化catalog :
-bash-3.00# /opt/csw/bin/pkgutil --catalog
Fetching new catalog ftp://ftp.cs.pu.edu.tw/pub/Sun/opencsw/current/i386/5.10 if available...
--2010-11-19 09:31:04-- ftp://ftp.cs.pu.edu.tw/pub/Sun/opencsw/current/i386/5.10/catalog
=> `/var/opt/csw/pkgutil/catalog.ftp.cs.pu.edu.tw_pub_Sun_opencsw_current_i386_5.10'
Resolving ftp.cs.pu.edu.tw... 140.128.9.18
Connecting to ftp.cs.pu.edu.tw|140.128.9.18|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/Sun/opencsw/current/i386/5.10 ... done.
==> SIZE catalog ... 507496
==> PASV ... done. ==> RETR catalog ... done.
[ <=> ] 507,496 108K/s in 5.2s
2010-11-19 09:31:12 (96.0 KB/s) - `/var/opt/csw/pkgutil/catalog.ftp.cs.pu.edu.tw_pub_Sun_opencsw_current_i386_5.10' saved [507496]
如果觉得原有网站升级速度慢,可以在/etc/opt/csw/pkgutil.conf文件加入以下网址:
mirror=ftp://ftp.cs.pu.edu.tw/pub/Sun/opencsw/current/
下面是几个常用的指令:
- 更新套件清单
/opt/csw/bin/pkgutil -U - 可用套件清单
/opt/csw/bin/pkgutil -a - 安裝套件
/opt/csw/bin/pkgutil -i [name] - 升級套件
/opt/csw/bin/pkgutil -u [name] - 检查套件是否有新版
/opt/csw/bin/pkgutil -c
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8183550/viewspace-678532/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8183550/viewspace-678532/