- 论坛徽章:
- 0
|
第四章:软件包管理
所有Solaris系统的软件都以包的形式出现。 \r\n软件包包含: \r\n软件包的描述文件 \r\n系统需求的描述文件 \r\n需要安装的文件 \r\n安装前以及安装后需要运行的脚本 \r\n\r\nThe pkgadd command \r\n用于安叭砑??nbsp; \r\npkgadd [ -d [device | pathname ]] pkg_name \r\n\r\n# pkgadd -d /cdrom/cdrom0/s0/Solaris_2.7/Product SUNWaudio \r\nProcessing package instance from \r\n\r\nAudio applications \r\n(sparc) 3.6.4,REV=1.98.08.13 \r\nCopyright 1998 Sun Microsystems, Inc. All rights reserved. \r\nUsing as the package base directory. \r\n## Processing package information. \r\n## Processing system information. \r\n2 package pathnames are already properly installed. \r\n## Verifying package dependencies. \r\n## Verifying disk space requirements. \r\n## Checking for conflicts with packages already installed. \r\n## Checking for setuid/setgid programs. \r\nThis package contains scripts which will be executed with super-user \r\npermission during the process of installing this package. \r\nDo you want to continue with the installation of [y,n,?] y \r\nInstalling Audio applications as \r\n## Installing part 1 of 1. \r\nInstallation of was successful. \r\n\r\n\r\n\r\nThe pkginfo command \r\n\r\n不加任何参数用于查看系统已经安装的软件包 \r\n# pkginfo | more \r\n\r\napplication SUNWAxg Solaris XGL 3.3 AnswerBook \r\napplication SUNWaadm Solaris 7 System Administrator Collection \r\nsystem SUNWab2m Solaris Documentation Server Lookup \r\nsystem SUNWab2r Solaris Documentation Server \r\nsystem SUNWab2s Solaris Documentation Server \r\nsystem SUNWab2u Solaris Documentation Server \r\napplication SUNWabda Sun Ultra 5/10 Hardware AnswerBook \r\napplication SUNWabe Solaris 7 User Collection \r\napplication SUNWabsdk Solaris 7 Software Developer Collection \r\n\r\nThe pkginfo Command \r\n后面可跟一些参数,显示特定某个软件包的信息 \r\nCommand Format \r\npkginfo [ -d [ device | pathname ] ] [ -l ] pkg_name \r\n参数 \r\n-d device 指定软件所在的位置,可以是目录、磁带机、软盘等等 \r\n-l 显示详细信息 \r\npkg_name 软件包名 \r\n\r\n输出列 \r\nCATEGORY 软件包的类型,是“应用软件”和是“系统软件” \r\nPKGINST 软件包名,如果是SUNW打头,则是SUN的产品 \r\nNAME 软件的简要描述 \r\n\r\n# pkginfo -d /cdrom/cdrom0/s0/Solaris_2.7/Product -l SUNWaudio \r\nPKGINST: SUNWaudio \r\nNAME: Audio applications \r\nCATEGORY: system \r\nARCH: sparc \r\nVERSION: 3.6.4,REV=1.98.08.13 \r\nBASEDIR: / \r\nVENDOR: Sun Microsystems, Inc. \r\nDESC: Audio binaries \r\nPSTAMP: dtbuild37s19980813171753 \r\nHOTLINE: Please contact your local service provider \r\nSTATUS: spooled \r\nFILES: 9 spooled pathnames \r\n2 directories \r\n3 executables \r\n4 package information files \r\n700 blocks used (approx) \r\n\r\nThe pkgrm Command \r\nCommand Format \r\npkgrm package_name \r\n用于删除软件包 \r\n# pkgrm SUNWaudio \r\nThe following package is currently installed: \r\nSUNWaudio Audio applications \r\n(sparc) 3.6.4,REV=1.98.08.13 \r\nDo you want to remove this package? y \r\n## Removing installed package instance \r\n## Verifying package dependencies. \r\nWARNING: \r\nThe package depends on the package \r\ncurrently being removed. \r\nWARNING: \r\nThe package depends on the package \r\ncurrently being removed. \r\nWARNING: \r\nThe package depends on the package \r\ncurrently being removed. \r\nWARNING: \r\nThe package depends on the package \r\ncurrently being removed. \r\nDependency checking failed. \r\nDo you want to continue with the removal of this package [y,n,?,q] \r\n如果某个文件被多个包共享,则当最后一个包被删除时才被删除。 \r\n\r\nThe pkgchk Command \r\n用于检查已安装的软件包 \r\nCommand Format \r\npkgchk [ -p path1 [ path2...] ] \r\n# pkgchk SUNWaudio \r\n# \r\n# pkgchk -p /etc/group \r\nERROR: /etc/group \r\nfile size <278> expected <282> actual \r\nfile cksum <23586> expected <24038> actual \r\npkgchk命令校验包的属性和内容是否与系统记录的一致。 \r\n这个命令能检测整个包或是某个文件。没有输出表示包已经安装,但未发现不一致。 \r\n\r\nadmintool图形管理工具 \r\nadmintool是solaris图形管理工具,包括管理软件包、主机名、主机地址、打印机、串口、用户、用户组等。 |
|