当前位置: 首页 > 学习 > 电脑学习 > 操作系统 > Solaris > 入门技巧 > 正文

Solaris系统管理培训(第四章:软件包管理)

http://www.zk168.com.cn  招考学习网 2006-3-18 10:38:02
-----------------------------------------------------------[交流]-[打印]-[发送]-[收藏]--
所有Solaris系统的软件都以包的形式出现。
软件包包含:
软件包的描述文件
系统需求的描述文件
需要安装的文件
安装前以及安装后需要运行的脚本

The pkgadd command
用于安叭砑?nbsp;
pkgadd [ -d [device | pathname ]] pkg_name

# pkgadd -d /cdrom/cdrom0/s0/Solaris_2.7/Product SUNWaudio
Processing package instance from

Audio applications
(sparc) 3.6.4,REV=1.98.08.13
Copyright 1998 Sun Microsystems, Inc. All rights reserved.
Using as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## 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 Audio applications as
## Installing part 1 of 1.
Installation of was successful.



The pkginfo command

不加任何参数用于查看系统已经安装的软件包
# pkginfo | more

application SUNWAxg Solaris XGL 3.3 AnswerBook
application SUNWaadm Solaris 7 System Administrator Collection
system SUNWab2m Solaris Documentation Server Lookup
system SUNWab2r Solaris Documentation Server
system SUNWab2s Solaris Documentation Server
system SUNWab2u Solaris Documentation Server
application SUNWabda Sun Ultra 5/10 Hardware AnswerBook
application SUNWabe Solaris 7 User Collection
application SUNWabsdk Solaris 7 Software Developer Collection

The pkginfo Command
后面可跟一些参数,显示特定某个软件包的信息
Command Format
pkginfo [ -d [ device | pathname ] ] [ -l ] pkg_name
参数
-d device 指定软件所在的位置,可以是目录、磁带机、软盘等等
-l 显示详细信息
pkg_name 软件包名

输出列
CATEGORY 软件包的类型,是“应用软件”和是“系统软件”
PKGINST 软件包名,如果是SUNW打头,则是SUN的产品
NAME 软件的简要描述

# pkginfo -d /cdrom/cdrom0/s0/Solaris_2.7/Product -l SUNWaudio
PKGINST: SUNWaudio
NAME: Audio applications
CATEGORY: system
ARCH: sparc
VERSION: 3.6.4,REV=1.98.08.13
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Audio binaries
PSTAMP: dtbuild37s19980813171753
HOTLINE: Please contact your local service provider
STATUS: spooled
FILES: 9 spooled pathnames
2 directories
3 executables
4 package information files
700 blocks used (approx)

The pkgrm Command
Command Format
pkgrm package_name
用于删除软件包
# pkgrm SUNWaudio
The following package is currently installed:
SUNWaudio Audio applications
(sparc) 3.6.4,REV=1.98.08.13
Do you want to remove this package? y
## Removing installed package instance
## Verifying package dependencies.
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.
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]
如果某个文件被多个包共享,则当最后一个包被删除时才被删除。

The pkgchk Command
用于检查已安装的软件包
Command Format
pkgchk [ -p path1 [ path2...] ]
# pkgchk SUNWaudio
#
# pkgchk -p /etc/group
ERROR: /etc/group
file size <278> expected <282> actual
file cksum <23586> expected <24038> actual
pkgchk命令校验包的属性和内容是否与系统记录的一致。
这个命令能检测整个包或是某个文件。没有输出表示包已经安装,但未发现不一致。

admintool图形管理工具
admintool是solaris图形管理工具,包括管理软件包、主机名、主机地址、打印机、串口、用户、用户组等。
-----------------------------------------------------------[交流]-[打印]-[发送]-[收藏]--
最新入库:
 
·实质、过程及意义——阿多尔诺“否定的辩证法”探微
·从Ontology的译名之争看哲学术语的翻译原则
·论马克思主义哲学经典的解释——解释学方法及其在马克
·中国哲学当前的核心与周边问题
·和合学与21世纪文化价值和科技
·中国文化的和合精神与21世纪
·宗教之间理当相互宽容
·上半个世纪的自由主义
·殷周至春秋时期神人关系之演进
·大学之道:构建以“三纲八目”为核心的道德修养体系
相关内容:
 
·人力资源管理:从后台走向前台
·美日人力资源管理模式比较及对中国乡镇企业的启示
·绩效管理与绩效考核的区别
·人力资源管理要为企业增值服务
·人本管理:一个需要澄清的理念
·环保企业人力资源开发与管理的实证研究————巨龙公
·美日人力资源管理模式的比较及对中国乡镇企业的启示
·构建基于“80/20效率法则”的组织人力资本管理制度
·打造人力资源管理新模式——来自国企的案例分析
·信息经济时代企业知识型员工的管理
网友点评:
 
会员名称:
密码:匿名 ·注册·忘记密码?
评论内容:
(最多300个字符)
  查看评论
友情提醒:
 1.库中的资料大都来自互联网、网友上传、各类书籍,在录入的过程中难免会出现错误,恳请网
 友来信指正!
 2.如果网友在本库中未能找到所需要的材料,请登陆到我们的论坛《招考学习网》版块!
 3.考友想加入招考学习网的编辑部,请发信到XueXiWang#Gmail.com(#改为@)附带个人简历
 4.如需转载请注明出处及作者,谢谢合作!
 5.如果您有更好的建议或意见请EMAIL:XueXiWang#Gmail.com (#改为@)
 6.凡标题中有注有“[NO]”字样均不含答案且答案整理中.
 7.如本库中转载文章涉及版权等问题,请相关网站或作者在两周内发邮件通知(EMAIL:  XueXiWang#Gmail.com (#改为@))我们,我们接到通知后立即删除该文章及链接!
你问我答 更多>>