曲径通幽论坛

 找回密码
 立即注册
搜索
查看: 3976|回复: 0
打印 上一主题 下一主题

yum grouplist/ yum groupinstall / yum groupinfo

[复制链接]

4918

主题

5880

帖子

3万

积分

GROAD

曲径通幽,安觅芳踪。

Rank: 6Rank: 6

积分
34387
跳转到指定楼层
楼主
发表于 2012-5-4 14:51:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有时在安装完一个系统后,系统里只有基本的运行环境,比如你作为一个开发人员,gcc, glibc, make 这些工具和库是必须的,但是默认情况下系统里并没有安装,那是不是要一个个的 yum install gcc , yum install glibc 呢?这么做有可能在使用的过程中可能会发现有时不是少了这个包就是那个工具。下面介绍两个 yum  命令的有用选项,它们可以帮你一次性将相关的东西都装上,可谓是一劳永逸。

groulist 选项
运行下面的命令:
# yum grouplist
Loaded plugins: fastestmirror, priorities
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* extras: centos.aol.com
* rpmforge: mirror.us.leaseweb.net
* updates: centos.aol.com
Installed Groups:
   Dialup Networking Support
   Editors
   Mail Server
   Network Servers
   System Tools
   Yum Utilities
Available Groups:
   Administration Tools
   Authoring and Publishing
   Base
   Beagle
   Cluster Storage
   Clustering
   DNS Name Server
   Development Libraries
   Development Tools
   Eclipse
   Engineering and Scientific
   FTP Server
   FreeNX and NX
   GNOME Desktop Environment
   GNOME Software Development
   Games and Entertainment
   Graphical Internet
   Graphics
   Horde
   Java Development
   KDE (K Desktop Environment)
   KDE Software Development
   Legacy Network Server
   Legacy Software Development
   Legacy Software Support
   Mono
   MySQL Database
   News Server
   Office/Productivity
   OpenFabrics Enterprise Distribution
   PostgreSQL Database
   Printing Support
   Server Configuration Tools
   Sound and Video
   Text-based Internet
   Tomboy
   Web Server
   Windows File Server
   X Software Development
   X Window System
   XFCE-4.4
   Xen
Done
groulist 选项列出了已经安装的或未安装的“软件包组”,比如 GNOME Desktop Environment 这个软件包组包含了 GNOME 桌面系统所需要的所有软件包,因此如果我们的系统还没有安装有 GNOME 桌面,那么可以使用下面的命令安装上 GNOME 桌面:
[Plain Text] 纯文本查看 复制代码
yum groupinstall "GNOME Desktop Environment"

软件包组的名字要用双引号括起来。像上面安装后,就不会出现安装桌面错误的情形了,不然得一个个的去寻找相应的包,而且还可能产生依赖问题,这样费力费时得不偿失。同样,要安装软件开发工具集和开发库,那么可以:
[Plain Text] 纯文本查看 复制代码
yum groupinstall Development Tools
yum groupinstall Development Libraries


如果还想进一步关心 Development Libraries 中都包含了哪些库,那么就用 groupinfo 这个选项,比如:
# yum groupinfo "Development Libraries"
Loaded plugins: fastestmirror, priorities
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* extras: mirror.cogentco.com
* rpmforge: mirror.us.leaseweb.net
* updates: centos.aol.com

Group: Development Libraries
Description: The packages in this group are core libraries needed to develop applications.
Mandatory Packages:
   bzip2-devel
   glibc-devel
   libtermcap-devel
   log4cpp
   ncurses-devel
   pam-devel
   readline-devel
   zlib-devel
Default Packages:
   boost-devel
   coolkey-devel
   curl-devel
   cyrus-sasl-devel
   db4-devel
   dbus-devel
   expat-devel
   gdbm-devel
   gmp-devel
   gpm-devel
   hesiod-devel
   krb5-devel
   kudzu-devel
   libacl-devel
   libattr-devel
   libcap-devel
   libogg-devel
   libselinux-devel
   libusb-devel
   libuser-devel
   libvorbis-devel
   libxml2-devel
   lockdev-devel
   newt-devel
   newt-perl
   openldap-devel
   openssl-devel
   pciutils-devel
   pcsc-lite-devel
   python-devel
   rpm-devel
   slang-devel
   sysfsutils
   xmlsec1
   xmlsec1-devel
   xulrunner-devel
Optional Packages:
   fipscheck-devel
   fuse-devel
   gsl
   libassuan-devel
   libhbaapi-devel
   libksba
   libksba-devel
   libpciaccess-devel
   libstdc++44-devel
   log4cpp-devel
   perl-Archive-Zip
   perl-Convert-ASN1
   perl-Crypt-SSLeay
   perl-DateManip
   perl-LDAP
   perl-Mozilla-LDAP
   perl-TimeDate
   perl-XML-Dumper
   perl-XML-Grove
   perl-XML-NamespaceSupport
   perl-XML-SAX
   perl-XML-Twig
   perl-libxml-perl
   pth
   pth-devel
   python-dmidecode
   python-imaging
   python-suds
   sblim-cmpi-dhcp-devel
   systemtap-sdt-devel
   tog-pegasus-devel
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )

GMT+8, 2024-6-18 01:56 , Processed in 0.064499 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表