通过命令行安装软件包,原来如此简单

2010年12月16日 Linux基础 评论 2 条 阅读 15,630 views 次

RHEL/CentOS系统的yum我相信很多人用了都说好,但还有一个更好的功能,大家不一定都知道,下面给大家来介绍个功能不错的参数group(不准备的定义,但可以这么理解)。
我相信你用了会感觉玩Linux命令行,也是如此轻松。哈哈,费话不多话,请看演示。
本文基于RHLE6来,不同的版本,显示的内容不一样。
下面介绍我们今天的主角,yum中的group参数(不准备的定义,但可以这么理解)的使用。我这里只简单的来介绍,更多的内容,请用man来查询。
我们先来运行下面的命令
[root@yufei ~]#yum grouplist

Installed Groups:
   Additional Development
   Base
   Chinese Support
   Desktop
   Desktop Debugging and Performance Tools
   Development tools
   Dial-up Networking Support
   E-mail server
   Fonts 
   General Purpose Desktop
   Graphical Administration Tools
   Hardware monitoring utilities
   Input Methods
   Internet Browser
   Japanese Support
   Java Platform
   Korean Support
   Legacy UNIX compatibility
   Legacy X Window System compatibility
   MySQL Database client
   Network Infrastructure Server
   Network file system client
   Networking Tools
   Performance Tools
   Perl Support
   PostgreSQL Database client
   Security Tools
   Server Platform
   Web Server
   X Window System
Available Groups:
   Afrikaans Support
   Albanian Support
   Amazigh Support
   Arabic Support
   Armenian Support
   Assamese Support
   Azerbaijani Support
   Backup Client
   Backup Server
   Basque Support
   Belarusian Support
   Bengali Support
   Bhutanese Support
   Brazilian Portuguese Support
   Breton Support
   Bulgarian Support
   CIFS file server
   Catalan Support
   Chhattisgarhi Support
   Chichewa Support
   Compatibility libraries
   Console internet tools
   Coptic Support
   Croatian Support
   Czech Support
   Danish Support
   Debugging Tools
   Desktop Platform
   Desktop Platform Development
   Directory Client
   Directory Server
   Dutch Support
   Eclipse
   Emacs
   English (UK) Support
   Esperanto Support
   Estonian Support
   Ethiopic Support
   FCoE Storage Client
   FTP server
   Faroese Support
   Fijian Support
   Filipino Support
   Finnish Support
   French Support
   Frisian Support
   Friulian Support
   Gaelic Support
   Galician Support
   Georgian Support
   German Support
   Graphics Creation Tools
   Greek Support
   Gujarati Support
   Hebrew Support
   Hiligaynon Support
   Hindi Support
   Hungarian Support
   Icelandic Support
   Indonesian Support
   Infiniband Support
   Interlingua Support
   Inuktitut Support
   Irish Support
   Italian Support
   KDE Desktop
   Kannada Support
   Kashmiri Support
   Kashubian Support
   Kazakh Support
   Khmer Support
   Kinyarwanda Support
   Konkani Support
   Kurdish Support
   Lao Support
   Large Systems Performance
   Latin Support
   Latvian Support
   Lithuanian Support
   Low Saxon Support
   Luxembourgish Support
   Macedonian Support
   Mainframe Access
   Maithili Support
   Malagasy Support
   Malay Support
   Malayalam Support
   Maltese Support
   Manx Support
   Maori Support
   Marathi Support
   Messaging Client Support
   Messaging Server Support
   Mongolian Support
   MySQL Database server
   Myanmar (Burmese) Support
   NFS file server
   Nepali Support
   Network Storage Server
   Northern Sotho Support
   Norwegian Support
   Occitan Support
   Oriya Support
   PHP Support
   Persian Support
   Polish Support
   Portuguese Support
   PostgreSQL Database server
   Print Server
   Printing client
   Punjabi Support
   Remote Desktop Clients
   Romanian Support
   Russian Support
   SNMP Support
   Sanskrit Support
   Sardinian Support
   Scientific support
   Serbian Support
   Server Platform Development
   Sindhi Support
   Sinhala Support
   Slovak Support
   Slovenian Support
   Smart card support
   Somali Support
   Southern Ndebele Support
   Southern Sotho Support
   Spanish Support
   Storage Availability Tools
   Swahili Support
   Swati Support
   Swedish Support
   System Management
   System administration tools
   Tagalog Support
   Tajik Support
   Tamil Support
   TeX support
   Technical Writing
   Telugu Support
   Tetum Support
   Thai Support
   Tibetan Support
   Tsonga Support
   Tswana Support
   TurboGears application framework
   Turkish Support
   Turkmen Support
   Ukrainian Support
   Upper Sorbian Support
   Urdu Support
   Uzbek Support
   Venda Support
   Vietnamese Support
   Virtualization
   Virtualization Client
   Virtualization Platform
   Virtualization Tools
   Walloon Support
   Web Servlet Engine
   Web-Based Enterprise Management
   Welsh Support
   Xhosa Support
   Zulu Support
   iSCSI Storage Client

看到上面的内容,大家是不是觉得似曾相识,哈哈,正确,这就是我们的今天的主角,安装软件组,就如同在X上安装软件一样方便。
如果想查看某个软件组里面的内容,可以用yum groupinfo "软件组" 命令来查看。如:
[root@yufei ~]# yum groupinfo "Development tools"

Group: Development tools
Description: A basic development environment.
Mandatory Packages:
   autoconf
   automake
   binutils
   bison
   flex
   gcc
   gcc-c++
   gettext
   libtool
   make
   patch
   pkgconfig
   redhat-rpm-config
   rpm-build
Default Packages:
   byacc
   cscope
   ctags
   cvs
   diffstat
   doxygen
   elfutils
   gcc-gfortran
   git
   indent
   intltool
   patchutils
   rcs
   subversion
   swig
   systemtap
Optional Packages:
   ElectricFence
   ant
   babel
   bzr
   chrpath
   cmake
   compat-gcc-34
   compat-gcc-34-c++
   compat-gcc-34-g77
   dejagnu
   expect
   gcc-gnat
   gcc-java
   gcc-objc
   gcc-objc++
   imake
   jpackage-utils
   libstdc++-docs
   mercurial
   mod_dav_svn
   nasm
   perltidy
   python-docs
   rpmdevtools
   rpmlint
   systemtap-sdt-devel
   systemtap-server

如果有兴趣的话,你可以针对上面列出来的内容,一个个查看,这里不做一一介绍。

下面送几个常用的命令   
yum -y groupinstall "X Window System"
安装X Window System

yum -y groupinstall "Development tools"
安装开发工具

yum -y groupinstall "Chinese Support"
安装中文支持

通过上面的三个命令,是不是觉得通过命令行安装软件也能实现X环境同样的功能。赞一个!!!

注:RHEL6已经设置了本地源,如果不会设置,参考http://www.opsers.org/2010_12_1377.html

本文关键字:yum,grouplist,groupinstall,groupinfo,命令行,安装X Window System,安装开发工具,安装中文支持

2 条留言  访客:1 条  博主:0 条   引用: 1 条

  1. 学习了,呵呵

来自外部的引用: 1 条

  • SELECT * FROM ROOT WHERE JOB=IT » Blog Archive » Redhat命令行下安装Gnome

给我留言

Copyright © 羽飞博客 保留所有权利.   Ality主题 皖ICP备14013844号-1

用户登录