linux程序的安装以及rpm、yum的使用(3)
baseurl=ftp://instructor.example.com/pub/Server
gpgcheck=0
yum的常用功能:
软件包安装 yum install PROGRAMNAME1 PROGRAMNAME2 PROGRAMNAME3…
软件包升级 yum update PROGRAMNAME
软件包安装情况查询
yum list {installed|available|PROGRAMNAME|all}
installed 查询已经安装过的软件包
available 查询在软件库中可安装尚未安装的的软件包
PROGRAM 按具体名称查询安装过的软件包
all 显示有所有安装过的、未安装过的软件包
软件包卸载 yum remove PROGRAMNAME
清除软件列表缓存
yum clean all
#查询信息从软件库同步到本地缓存,此命令用于清除
查看文件关联的软件包
yum provides FILENAME
#FILENAME需要提供文件的绝对路径
eg:
[root@server28 myscript]# yum provides /boot/grub
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Importing additional filelist information
grub-0.97-13.5.i386 : GRUB - the Grand Unified Boot Loader.
Repo : base
Matched from:
Filename : /boot/grub
grub-0.97-13.5.i386 : GRUB - the Grand Unified Boot Loader.
Repo : installed
Matched from:
Other : Provides-match: /boot/grub
查看软件包信息:
yum info PROGRAMNAME
eg:
[root@server28 myscript]# yum info grub
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
相关新闻>>
- 发表评论
-
- 最新评论 更多>>