[vagrant@localhost ~]$ yum -v grouplist kde\*Config time: 0.009
Yum Version: 3.2.29
Setting up Group Process
rpmdb time: 0.001
group time: 0.159
Available Groups:
KDE Desktop (kde-desktop)# KDE Desktop 组的id 就是(kde-desktop)Done
yum info package_name 等同于rpm -q --info package_name
vagrant@localhost ~]$ yum info vim-common
Installed Packages
Name : vim-common
Arch : x86_64
Epoch : 2
Version : 7.2.411
Release : 1.8.el6
Size : 17 M
Repo : installed
From repo : base
Summary : The common files needed by any version of the VIM editor
URL : http://www.vim.org/
License : Vim and GPLv2+ and BSD and LGPLv2+ and Open Publication
Description : VIM (VIsual editor iMproved) is an updated and improved version of the
: vi editor. Vi was the first real screen-based editor for UNIX, and is........
可以看到package相关的所有信息,
罗列packages信息:
1
yum list [available|installed|extras|updates|obsoletes|all|recent][pkgspec]
1234567891011121314151617
yum list available 列出当前enable的repo中所有可用package
yum list installed 列出当前系统中已经安装的package
yum list extras 列出已安装的package中不在enable的repo中的package
yum list updates 列出当前enable的repo中可以提供更新的package
yum list obsoletes 列出enable的repo中或者已安装的package中被淘汰的package
yum list all 列出所有enable的repo中的package
yum list recent 列出所有enable的repo中最近一周添加的package
yum list installed "krb?-*" 以上所有的list命令都支持通配符,罗列相关的package信息
yum list package spec 为特定的package列出相关信息,比如列出glibc的信息
[vagrant@localhost yum.repos.d]$ yum list glibc
Installed Packages
glibc.x86_64 2.12-1.107.el6 @anaconda-CentOS-201303020151.x86_64/6.4
Available Packages
glibc.i686 2.12-1.107.el6_4.2 updates
glibc.x86_64 2.12-1.107.el6_4.2 updates
yum list \*.i686 #glob expression
vagrant@localhost yum.repos.d]$ yum search vim=================================================================================== Matched: vim====================================================================================vim-X11.x86_64 : The VIM version of the vi editor for the X Window System
vim-common.x86_64 : The common files needed by any version of the VIM editor
vim-enhanced.x86_64 : A version of the VIM editor which includes recent enhancements
vim-minimal.x86_64 : A minimal version of the VIM editor
[vagrant@localhost yum.repos.d]$ yum search "vi editor"#只需要描述软件提供的功能,便可以查找出提供该功能的软件包============================================================================== N/S Matched: vi editor===============================================================================vim-X11.x86_64 : The VIM version of the vi editor for the X Window System