ºìÁªLinuxÃÅ»§
Linux°ïÖú

SolarisÏÂÈí¼þ°üÃüÁî

·¢²¼Ê±¼ä:2007-01-15 00:41:27À´Ô´:ºìÁª×÷Õß:Innovation
Èí¼þ°üÓÐÁ½ÖÖ¸ñʽ£¬¼´Îļþϵͳ¸ñʽºÍÊý¾ÝÁ÷¸ñʽ¡£Ç°Õßʵ¼ÊÉϾÍÊÇ°´ÕÕÒ»¶¨Ä¿Â¼½á¹¹×éÖ¯µÄÎļþ¼¯ºÏ£¬ºóÕßÔòÊǽ«ÕâЩÎļþ´ò°ü³ÉÒ»¸öÎļþÒÔ·½±ã´«Ê䡣ͨ³£SolarisÈí¼þ°üÔÚ¹âÅ̽éÖÊÖÐÒÔÎļþϵͳ¸ñʽ·¢²¼£¬¶øÔÚÒòÌØÍøÉÏÒÔÊý¾ÝÁ÷¸ñʽ·¢²¼¡£Îļþϵͳ¸ñʽµÄÈí¼þ°üͨ³£ÓÃÈí¼þ°üÃû×÷Ϊ¶¥²ãĿ¼Ãû£¬¸ÃĿ¼ÖÐÖÁÉÙÓÐpkginfoºÍpkgmapÁ½¸öÎļþ£¬ÕâÁ½¸öÎļþÃèÊöÈí¼þ°üµÄÔªÐÅÏ¢¡£ÀýÈçÔÚSolaris10µÄ¹âÅÌÖеÄSolaris_10/ProductĿ¼Ï´æ·ÅÐí¶àÒÔÎļþϵͳ¸ñʽ·¢²¼Èí¼þ°ü£¬²é¿´ÆäÖеÄSUNWcsrÈí¼þ°ü£»
-bash-3.00# cd /cdrom/cdrom0/Solaris_10/Product/
-bash-3.00# ls -ld SUNWcsr
dr-xr-xr-x 5 root root 2048 Dec 7 23:58 SUNWcsr
-bash-3.00# cd SUNWcsr
-bash-3.00# ls -l
total 78
dr-xr-xr-x 2 root root 2048 Dec 7 23:58 archive
dr-xr-xr-x 2 root root 6144 Dec 7 23:58 install
-r--r--r-- 1 root root 3342 Dec 7 23:24 pkginfo
-r--r--r-- 1 root root 26025 Dec 7 23:24 pkgmap
dr-xr-xr-x 6 root root 2048 Dec 7 23:58 reloc
Îļþϵͳ¸ñʽºÍÊý¾ÝÁ÷¸ñʽ¿ÉÒÔ»¥Ïàת»»¡£/var/sadm/install/contentsÎļþÖмǼÁËËùÓÐÈí¼þ°üµÄËùÓÐÎļþµÄ°²×°µÄλÖá¢ÊôÖ÷¡¢È¨ÏÞµÈÐÅÏ¢¡£¸ÃÎļþÊÇSolarisϵͳµÄÒÑ°²×°Èí¼þ°üÐÅÏ¢¿â¡£
-bash-3.00# more /var/sadm/install/contents
......
/usr/bin/newform f none 0555 root bin 16308 54888 1106448826 SUNWesu
/usr/bin/newgrp f none 4755 root sys 10324 56620 1106447294 SUNWcsu
/usr/bin/news f none 0555 root bin 10128 27837 1106448826 SUNWesu
/usr/bin/newsp=./mailp s none SUNWmp
/usr/bin/newtask=../../usr/lib/isaexec l none SUNWcsu
/usr/bin/nfsstat f none 0555 root bin 23936 33443 1106444303 SUNWnfscu
/usr/bin/nice f none 0555 root bin 5768 49667 1106447294 SUNWcsu
/usr/bin/nisaddcred f none 0555 root bin 31224 40868 1106444342 SUNWnisu
/usr/bin/niscat f none 0555 root bin 9964 29056 1106444342 SUNWnisu
/usr/bin/nischgrp f none 0555 root bin 14248 41511 1106444342 SUNWnisu
/usr/bin/nischmod=../../usr/bin/nischgrp l none SUNWnisu
/usr/bin/nischown=../../usr/bin/nischgrp l none SUNWnisu
......
¿É¼ûÈç¹ûÖªµÀ¾ßÌåÎļþλÖÿÉÒÔÓò鵽¸ÃÎļþËùÊôµÄÈí¼þ°üÃû³Æ¡£
ÒÔÏÂÃüÁîÕÒ³öifconfigÃüÁîËùÊôÈí¼þ°üΪSUNWcsr:
-bash-3.00# grep bin/ifconfig /var/sadm/install/contents
/sbin/ifconfig f none 0555 root bin 63956 59090 1132684929 SUNWcsr
/usr/sbin/ifconfig=../../sbin/ifconfig s none SUNWcsu
SolarisÏÂÓÐ6¸öÓÃÓÚÈí¼þ°ü¹ÜÀíµÄÃüÁîÐй¤¾ß£º
pkgadd -- ÓÃÓÚ°²×°»ò»º´æ(spool)Èí¼þ°ü
pkgrm -- ÓÃÓÚɾ³ýÈí¼þ°ü»òÇå³ýÈí¼þ°ü»º´æ(spool)
pkginfo -- ÓÃÓÚ»ñÈ¡Èí¼þ°üÐÅÏ¢
pkgchk -- ÓÃÓÚ¼ì²éÈí¼þ°üÖÐÎļþµÄÍêÕûÐÔ
pkgtrans -- ÓÃÓÚÈí¼þ°ü¸ñʽת»»
pkgask -- ÓÃÓÚ¼Öƺ¬Óн»»¥Ê½½Å±¾Èí¼þ°ü°²×°Ê±ÐèÒªµÄÓû§ÊäÈë
³ýÁËpkgask¡¢pkgrmÍ⣬ÕâЩÃüÁ½ÓÊÜÈí¼þ°üÃû×÷Ϊ¿ÉÑ¡µÄ×îºóÒ»¸ö²ÎÊý£¬Èç¹û²»Ö¸¶¨ÃüÁî»áÌáʾÓû§ÊäÈ룬Ҳ¿ÉÒÔÓÃall´ú±íËùÓС£Ö¸¶¨Èí¼þ°üµÄλÖÃÓÃ-dÑ¡Ï¶ÔÓÚÎļþϵͳ¸ñʽÈí¼þ°üÖ»ÒªÖ¸¶¨µ½°üº¬¸ÃÈí¼þ°üµÄĿ¼¼´¿É£¬¶ÔÓÚÊý¾ÝÁ÷¸ñʽµÄÈí¼þ°üÐèÒªÖ¸¶¨µ½ÎļþÃû³Æ¡£
Èí¼þ°ü¹ÜÀíµÄ³£¼ûÈÎÎñ
Èí¼þ°ü¹ÜÀíµÄ³£¼ûÈÎÎñÓУº»ñµÃÈí¼þ°üÐÅÏ¢¡¢°²×°Èí¼þ°ü¡¢É¾³ýÈí¼þ°ü¡¢Èí¼þ°ü¸ñʽת»»¡¢»º´æÈí¼þ°üµÈ¡£ÒÔÏÂÒÔʵÀý·Ö±ð½éÉÜÿ¸öÈÎÎñµÄ²Ù×÷²½Öè¡£
»ñµÃÈí¼þ°üÐÅÏ¢
»ñµÃÈí¼þ°üÐÅÏ¢µÄÃüÁîÖ÷ÒªÊÇpkginfo¡£pkgchk -vÔò¿ÉÒÔÓÃÀ´»ñµÃÈí¼þ°üÖеÄÎļþÁÐ±í¡£Èç¹ûÒª²é¿´Î´°²µÄ×°Èí¼þ°üµÄÐÅÏ¢£¬ÐèÒªÓÃ-dÑ¡ÏîÖ¸¶¨Èí¼þ°üËùÔÚµÄλÖᣲ鿴ϵͳÉÏ°²×°µÄÈí¼þ°üÔò²»ÐèҪʹÓÃ-dÑ¡Ïî¡£
pkginfoÃüÁî²»´øÈκβÎÊýÏÔʾµ±Ç°ÏµÍ³°²×°µÄËùÓÐÈí¼þ°üµÄ¸ÅÒªÐÅÏ¢£¬°üÀ¨·ÖÀà¡¢Ãû³Æ¡¢ÃèÊö¡£
-bash-3.00# pkginfo |more
system CADP160 Adaptec Ultra160 SCSI Host Adapter Driver
system HPFC Agilent Fibre Channel HBA Driver
ALE SUNW5xmft Traditional Chinese (BIG5) X Windows Platform minimum required Fonts Package
system SUNWGlib GLIB - Library of useful routines for C programming
system SUNWGtkr GTK - The GIMP Toolkit (Root)
system SUNWGtku GTK - The GIMP Toolkit (Usr)
GNOME2 SUNWPython The Python interpreter, libraries and utilities
system SUNWTk Tk - TCL GUI Toolkit
system SUNWa2psr a2ps - GNU Any to PostScript filter (root)
system SUNWa2psu a2ps - GNU Any to PostScript filter (user)
system SUNWaac Adaptec AdvanceRaid Controller SCSI HBA Driver
system SUNWad810 SUNW W1100z & W2100z Audio Drivers
system SUNWadmap System administration applications
system SUNWadmc System administration core libraries
system SUNWadmfr System & Network Administration Framework Configuration
system SUNWadmfw System & Network Administration Framework
system SUNWadmj Admin/Install Java Extension Libraries
system SUNWadmlib-sysid System and Network identification libraries
system SUNWadmr System & Network Administration Root
system SUNWadp Adaptec 29xx/39/xx/78xx Family of SCSI HBA
system SUNWadpu320 Adaptec Ultra320 Driver
......
pkginfo -lÔòÁгöÈí¼þ°üµÄÏêϸÐÅÏ¢£º
-bash-3.00# pkginfo -d . -l SMCapch22
PKGINST: SMCapch22
NAME: apache
CATEGORY: application
ARCH: sparc
VERSION: 2.2.0
BASEDIR: /usr/local/apache2
VENDOR: The Apache Group
PSTAMP: Steve Christensen
STATUS: spooled
FILES: 2198 spooled pathnames
66 directories
72 executables
2 package information files
44173 blocks used (approx)
pkgchkÃüÁîÓÃÀ´¼ì²éÈí¼þ°üÊÇ·ñ°²×°¡¢Èí¼þ°üÖеÄÎļþÊÇ·ñÓÐËù¸Ä¶¯µÈÐÅÏ¢¡£Èç¹ûÈí¼þ°ü³É¹¦°²×°²¢ÇÒûÓÐÈκÎÎļþ¸Ä¶¯¹ý£¬¸ÃÃüÁîÎÞÈκÎÊä³ö£¬·ñÔòÔÚ±ê×¼´íÎóÉÏÊä³öÏà¹ØµÄÐÅÏ¢¡£pkgchk²»´øÈκβÎÊýÔò¼ì²éµ±Ç°ÏµÍ³°²×°µÄËùÓÐÈí¼þ°ü£¬²¢Áгö¼ì²é½á¹ûµÄ¸ÅÒªÐÅÏ¢£¬Èç¹ûÒªÏêϸÐÅÏ¢¿ÉÒÔÓÃ-lÑ¡Ïî¡£Èç¹ûÒªÏÞ¶¨Ä³¸ö¾ßÌåÈí¼þ°ü£¬×îºóÒ»¸ö²ÎÊýдÉϸÃÈí¼þ°üÃû³Æ¼´¿É¡£Èç¹ûÖ»Òª¼ì²éij¸öÈí¼þ°üµÄij¸öÎļþ¿ÉÒÔÓÃ-pÑ¡Ïî¼ÓÉϸÃÎļþµÄÍêȫ·¾¶¼´¿É£¬Èç¹û²»ÖªµÀÍêȫ·¾¶¿ÉÒÔʹÓÃ-PÑ¡Ïî¼ÓÎļþµÄ²¿·Ö·¾¶¡£ÀýÈ磺
-bash-3.00# pkgchk -p /etc/shadow
ERROR: /etc/shadow
modtime <01/22/05 07:46:05 AM> expected <02/13/06 01:36:36 PM> actual
file size <296> expected <373> actual
file cksum <20180> expected <26166> actual
¼ì²é/etc/shadow×Ô°²×°ÒÔÀ´ÊÇ·ñ·¢Éú±ä»¯¡£ÓÐÊä³ö˵Ã÷Óб仯£¬Ã»ÓÐÊä³öÔò±íʾûÓб仯¡£
-bash-3.00# pkgchk -l -p /usr/bin/showrev
Pathname: /usr/bin/showrev
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: sys
Expected file size (bytes): 28148
Expected sum(1) of contents: 7605
Expected last modification: Jan 23 09:40:57 2005
Referenced by the following packages:
SUNWadmc
Current status: installed
Áгö/usr/bin/showrevÎļþÔÚÈí¼þ°üÖеÄÊôÖ÷¡¢È¨ÏÞ¡¢ËùÊôÈí¼þ°üÃû³ÆµÈÐÅÏ¢¡£
-bash-3.00# pkgchk -l -P showrev
Pathname: /usr/bin/showrev
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: sys
Expected file size (bytes): 28148
Expected sum(1) of contents: 7605
Expected last modification: Jan 23 09:40:57 2005
Referenced by the following packages:
SUNWadmc
Current status: installed
Pathname: /usr/share/man/man1m/showrev.1m
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: root
Expected file size (bytes): 3744
Expected sum(1) of contents: 56811
Expected last modification: Oct 22 08:51:42 2005
Referenced by the following packages:
SUNWman
Current status: installed
Áгöº¬ÓÐshowrevÎļþµÄÈí¼þ°üÖиÃÎļþµÄÏà¹ØÐÅÏ¢¡£¿É¼ûÈç¹ûÖªµÀij¸öÎļþµÄÍêȫ·¾¶Ãû»ò²¿·Ö·¾¶Ãû¿ÉÒÔͨ¹ýpkgchk -lp»òpkgchk -lPÃüÁî²éÕÒ³ö¸ÃÎļþËùÊôµÄÈí¼þ°ü¡£
pkgchk -v pkg_nameÓÃÀ´ÁгöÖ¸Ãû³ÆµÄÈí¼þ°üËù°üº¬µÄÎļþ¡£ÏÂÃæµÄÃüÁîÓ÷ÖÒ³ÏÔʾÁгöÈí¼þ°üSMCapch22ÖÐËù°üº¬µÄÎļþÁÐ±í£º
-bash-3.00# ls -l
total 3002
-rw-r--r-- 1 root root 75782 Feb 25 20:56 1
drwxr-xr-x 3 root root 512 Feb 25 18:09 SMCapch22
drwxr-xr-x 5 root root 512 Feb 25 17:15 SUNWcsr
-rw-r--r-- 1 root root 1216512 Feb 25 17:09 SUNWcsr.pkg
-rw-r--r-- 1 root root 220672 Feb 25 17:59 zone.pkg
-bash-3.00# pkgchk -d . -v SMCapch22 2>&1 | more
bin/ab
bin/apachectl
bin/apxs
bin/checkgid
bin/dbmmanage
bin/envvars
bin/envvars-std
bin/htcacheclean
bin/htdbm
bin/htdigest
bin/htpasswd
bin/httpd
bin/httxt2dbm
bin/logresolve
bin/rotatelogs
build/config.nice
build/config_vars.mk
build/instdso.sh
build/library.mk
build/ltlib.mk
build/mkdir.sh
build/program.mk
--More--
ҪעÒâµÄÊÇpkgchkÃüÁîÖ»Íù±ê×¼´íÎóÊä³öÎļþÁÐ±í£¬ËùÒÔʹÓùܵÀʱÐèÒªÖض¨Ïòµ½±ê×¼Êä³ö¡£
°²×°Èí¼þ°ü
°²×°Èí¼þ°üÓÃpkgaddÃüÁ¸ÃÃüÁî¿ÉÒÔ°²×°Îļþϵͳ¸÷ʽµÄÈí¼þ°ü£º
-bash-3.00# cd /cdrom/cdrom0/Solaris_10/ExtraValue/CoBundled/SunVTS_6.1/Packages
-bash-3.00# pkgadd -d . SUNWvts
Processing package instance from raValue/CoBundled/SunVTS_6.1/Packages>
SunVTS Framework(i386) 6.1,REV=2005.11.10.13.29
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Executing checkinstall script.
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of [y,n,?] y
Installing SunVTS Framework as
## Installing part 1 of 1.
5254 blocks
Installation of was successful.
Ò²¿ÉÒÔ°²×°Êý¾ÝÁ÷¸ñʽµÄ±¾µØÈí¼þ°ü£º
-bash-3.00# pkgadd -d cvs-bundle.pkg all
Processing package instance from
cvs(x86) 1.11.20
FSF
The selected base directory must exist before
installation is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing cvs as
## Installing part 1 of 1.
/usr/local/bin/cvs
/usr/local/bin/cvsbug
/usr/local/bin/rcs2log
......
/usr/local/man/man1/cvs.1
/usr/local/man/man5/cvs.5
/usr/local/man/man8/cvsbug.8
[ verifying class ]
Installation of was successful.
Processing package instance from
gzip(intel) 1.3.5
Free Software Foundation
Using as the package base directory.
## Processing package information.
## Processing system information.
5 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing gzip as
## Installing part 1 of 1.
/usr/local/bin/gzexe
/usr/local/bin/gzip
/usr/local/man/man1/gzip.1
......
[ verifying class ]
/usr/local/bin/gunzip
/usr/local/bin/zcat
/usr/local/bin/zcmp
/usr/local/bin/zegrep
/usr/local/bin/zfgrep
Installation of was successful.
×îаæµÄpkgaddÃüÁ֧³Öhttp·½Ê½°²×°Ô¶³ÌµÄÊý¾ÝÁ÷¸ñʽÈí¼þ°ü£º
-bash-3.00# pkgadd -d http://localhost/pkgs/cvs-bundle.pkg all
## Downloading...
..............25%..............50%..............75%..............100%
## Download Complete
Processing package instance from
cvs(x86) 1.11.20
FSF
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing cvs as
## Installing part 1 of 1.
/usr/local/bin/cvs
/usr/local/bin/cvsbug
......
[ verifying class ]
Installation of was successful.
Processing package instance from
gzip(intel) 1.3.5
Free Software Foundation
Using as the package base directory.
## Processing package information.
## Processing system information.
5 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing gzip as
## Installing part 1 of 1.
/usr/local/bin/gzexe
/usr/local/bin/gzip
......
Installation of was successful.
ҪעÒâµÄÊÇÓÐЩÈí¼þ°üÓÐËüËùÒÀÀµµÄÆäËüÈí¼þ°ü£¬Èç¹ûÕâЩÒÀÀµÃ»Óа²×°£¬ÄÇôpkgadd½«»á±¨´í¡£Óöµ½ÕâÖÖÇéÐÎÓ¦µ±Ê×ÏÈ°²×°ÒÀÀµµÄÈí¼þ°ü¡£´ËÍ⣬Èç¹ûÐèÒªÎÞÈËÖµÊصÄÇé¿öÏ°²×°ÄÇЩÐèÒªÓû§ÊäÈëµÄÈí¼þ°üʱ£¬¿ÉÒÔÊÂÏÈʹÓÃpkgask½«ÉèÖüǼµ½Ò»¸öÎļþÖУ¬È»ºóʹÓÃpkgaddµÄ-rÑ¡Ïî¸æËßpkgaddÃüÁîʹÓøÃÎļþµÄµÄÓû§ÊäÈë¡£
ɾ³ýÈí¼þ°ü
ɾ³ýÈí¼þ°üÓÃpkgrmÃüÁ
-bash-3.00# pkgrm SMCgzip
The following package is currently installed:
SMCgzip gzip
(intel) 1.3.5
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance
## Verifying package dependencies in global zone
## Processing package information.
## Removing pathnames in class
/usr/local/man/man1
/usr/local/man
/usr/local/info
/usr/local/doc
/usr/local/bin/zcat
/usr/local/bin/gzip
/usr/local/bin/gzexe
/usr/local/bin/gunzip
/usr/local/bin
## Updating system information.
Removal of was successful.
Èç¹ûÊÔͼɾ³ý±»ÆäËüÈí¼þ°üÒÀÀµµÄÈí¼þ°ü£¬pkgrmÃüÁî»áÌá³ö¾¯¸æ£¬²¢ÈÃÓû§Ñ¡ÔñÊÇ·ñ¼ÌÐø£¬Èç¹û¼ÌÐøÈí¼þ°ü»á±»Ç¿ÖÆɾ³ý¡£È磺
-bash-3.00# pkgrm SUNWapchr
The following package is currently installed:
SUNWapchr Apache Web Server (root)
(i386) 11.10.0,REV=2005.01.08.01.09
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance
## Verifying package dependencies in global zone
WARNING:
The package depends on the package
currently being removed.
WARNING:
The package depends on the package
currently being removed.
WARNING:
The package depends on the package
currently being removed.
Dependency checking failed.
Do you want to continue with the removal of this package [y,n,?,q]
»º´æÈí¼þ°ü
»º´æÈí¼þ°ü¼´°Ñ³£ÓõÄÈí¼þ´Ó¹âÅ̵ÈÆäËü½éÖÊ¿½±´µ½/var/spool/pkgĿ¼Ï£¬Ê¹µÃ°²×°¸üΪ·½±ã¿ì½Ý¡£»º´æÈí¼þ°üÓÃpkgaddÃüÁîµÄ-s spoolÑ¡Ïî¡£±ÈÈç°ÑÉÏÊöcvs-bundle.pkg»º´æµ½/var/spool/pkgĿ¼Ï¿ÉÒÔʹÓÃÒÔÏÂÃüÁ
-bash-3.00# pkgadd -d cvs-bundle.pkg -s spool all
Transferring package instance
Transferring package instance
-bash-3.00# ls -l /var/spool/pkg
total 4
drwxr-xr-x 3 root root 512 Feb 26 01:03 SMCcvs
drwxr-xr-x 3 root root 512 Feb 26 01:03 SMCgzip
ɾ³ý»º´æµÄÈí¼þ°üÓÃpkgrm -s spool pkg_name£¬ÀýÈ磺
-bash-3.00# pkgrm -s spool SMCcvs
The following package is currently spooled:
SMCcvs cvs
(x86) 1.11.20
Do you want to remove this package? [y,n,?,q] y
Removing spooled package instance
-bash-3.00# ls -l /var/spool/pkg/
total 2
drwxr-xr-x 3 root root 512 Feb 26 01:03 SMCgzip
°²×°ÒѾ­»º´æÁ˵ÄÈí¼þ°üÖ»ÐèÔËÐÐpkgadd pkg_name¼´¿É¡£
-bash-3.00# pkgadd SMCgzip
Processing package instance from
gzip(intel) 1.3.5
......
Èí¼þ°ü¸ñʽת»»
pkgtransÃüÁîÊÇÈí¼þ°ü¸ñʽת»»¹¤¾ß£¬ËüµÄÓ÷¨ÊÇ£º
pkgtrans file_or_dir_path file_or_dir_path [package_name ...]
Èç¹ûÊǽ«Îļþϵͳ¸ñʽת»»³ÉÊý¾ÝÁ÷¸ñʽ£¬µÚÒ»¸ö²ÎÊýÖ¸¶¨Èí¼þ°üËùÔÚµÄĿ¼£¬µÚ¶þ¸ö²ÎÊýÖ¸¶¨×ª»»ºóÊý¾ÝÁ÷¸ñʽÈí¼þ°ü´æ·ÅÎļþÃû£»Èç¹ûÊǽ«Êý¾ÝÁ÷¸ñʽת»»³ÉÎļþϵͳ¸ñʽ£¬µÚÒ»¸ö²ÎÊýÖ¸¶¨Êý¾ÝÁ÷¸ñʽÈí¼þ°üÎļþÃû£¬µÚ¶þ¸ö²ÎÊýÖ¸¶¨×ª»»ºóÎļþϵͳ¸ñʽÈí¼þ°ü´æ·ÅĿ¼¡£Èç¹û²»Ö¸¶¨Òª×ª»»µÄÈí¼þ°üÃû³Æ£¬pkgtrans½«»á¸ù¾ÝµÚÒ»¸ö²ÎÊýÖпÉÑ¡µÄÈí¼þ°üÌáʾÓû§ÊäÈëҪת»»µÄÈí¼þ°üÃû³Æ¡£
ÒÔÏÂÃüÁSolaris10°²×°¹âÅÌÖеÄSUNWzonerºÍSUNWzoneuת»»³ÉÊý¾ÝÁ÷¸ñʽµÄÈí¼þ°ü£º
-bash-3.00# cd /cdrom/cdrom0/Solaris_10/Product/
-bash-3.00# pkgtrans . /export/home/justin/pkg/zone.pkg SUNWzoner SUNWzoneu
Transferring package instance
Transferring package instance
-bash-3.00# file zone.pkg
zone.pkg: package datastream
-bash-3.00# head /export/home/justin/pkg/zone.pkg
# PaCkAgE DaTaStReAm
SUNWzoner 1 50
SUNWzoneu 1 450
# end of header
BASEDIR=/
CATEGORY=system
DESC=Solaris Zones Configuration Files
EMAIL=
HOTLINE=Please contact your local service provider
MAXINST=1000
ÒÔÏÂÃüÁÊý¾ÝÁ÷¸ñʽµÄApache2.2Èí¼þ°üת»»³ÉÎļþϵͳ¸ñʽ£º
-bash-3.00# pkgtrans apache-2.2.0-sol10-x86-local . SMCapch22
Transferring package instance
-bash-3.00# ls -ld SMCapch22
drwxr-xr-x 3 root root 512 Feb 25 18:09 SMCapch22
-bash-3.00# ls -l SMCapch22/
total 356
-rw-r--r-- 1 10 staff 186 Jan 1 16:39 pkginfo
-rw-r--r-- 1 10 staff 171631 Jan 1 16:39 pkgmap
drwxr-xr-x 14 10 staff 512 Feb 25 18:09 reloc
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ