SOLARIS下的Package安裝(包括直接網上安裝,類似linux的YUM)
今天安裝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程式。
在這個軟體包中包含了正文程式,只有具有超級-使用者的許可權才能在這個軟體包
的安裝過程中執行它們.
要繼續安裝
安裝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程式。
在這個軟體包中包含了正文程式,只有具有超級-使用者的許可權才能在這個軟體包
的安裝過程中執行它們.
要繼續安裝
安裝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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOs下 SVN版本控制的安裝(包括yum與非yum)CentOS
- mysql 5.1.25 for Solaris 9 sprc的package安裝MySqlPackage
- Linux下安裝java及配置(yum安裝)LinuxJava
- solaris下的gcc安裝GC
- linux下yum安裝mongoLinuxGo
- linux 安裝yum 安裝phpLinuxPHP
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- Linux 安裝 yumLinux
- solaris下安裝oracleOracle
- Solaris下安裝VNCVNC
- Linux上yum安裝mysql5.6LinuxMySql
- Centos下yum安裝Nginx報錯 No package nginx available.CentOSNginxPackageAI
- 伺服器上的下Jdon不能直接安裝伺服器
- linux下yum無法安裝lrzszLinux
- Redhat 5 上安裝yumRedhat
- mysql安裝 (yum 安裝)MySql
- 【Linux】yum 安裝nginxLinuxNginx
- CentOS下yum安裝MySQLCentOSMySql
- AIX的yum安裝AI
- 在硬碟上安裝windows,linux,solaris的組合(轉)硬碟WindowsLinux
- 網路安裝solaris(轉)
- solaris mysql 安裝 解除安裝MySql
- Maven的安裝/2.2 Linux下的安裝MavenLinux
- linux配置本地yum安裝--FTP yumLinuxFTP
- yum安裝
- Windows下的Memcache安裝 linux下的Memcache安裝WindowsLinux
- hive的安裝(包括mysql)HiveMySql
- Linux安裝MySQL(使用yum)LinuxMySql
- linux系統安裝yumLinux
- RedHat Linux安裝CentOS YUMRedhatLinuxCentOS
- Redhat linux 6.5 yum安裝RedhatLinux
- solaris下安裝應用包~~
- Solaris下安裝Oracle817Oracle
- Solaris 下解除安裝程式 pkgrm
- vnc在solaris的安裝VNC
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- YUM安裝最新的MYSQLMySql
- yum的安裝與配置