Yum groupinstall may save your hours!
Today I was creating some kind of setup, So during performing those installation steps, I have found one interesting and time saving option that is used with yum command and can make our tasks really easy. The option is groupinstall and the whole command is
"yum groupinstall <"package name">".
Though I was little aware of this But have never gone through this. So today I have just done some R&D on this and here is the result. The option "groupinstall" is used to install all the package related to particular type of software. Suppose I want to install all Mysql Database Packages, then instead of installing packages one by one you can make the use of command given below.
[root@server2 ~]#yum groupinstall "MySQL Database"
Now question may arise from where I have got string <"MySQL Database">, So answer is before running above command use following command for listing available groups. It will shows you list of installed groups along with Available groups.
[root@server2 ~]#yum grouplist
Loaded plugins: fastestmirror, priorities
Setting up Group Process
Loading mirror speeds from cached hostfile
* addons: mirror.neu.edu.cn
* base: mirror.neu.edu.cn
* epel: ftp.jaist.ac.jp
* extras: mirror.neu.edu.cn
* updates: centosv4.centos.org
Installed Groups:
Administration Tools
Authoring and Publishing
Cluster Storage
Clustering
DNS Name Server
Dialup Networking Support
Editors
Engineering and Scientific
FTP Server
GNOME Desktop Environment
GNOME Software Development
Games and Entertainment
Graphical Internet
Graphics
Java
Legacy Network Server
Legacy Software Development
Legacy Software Support
Mail Server
Network Servers
Office/Productivity
Printing Support
Server Configuration Tools
Sound and Video
System Tools
Text-based Internet
Windows File Server
X Window System
Yum Utilities
Available Groups:
Base
Beagle
Development Libraries
Development Tools
Educational Software
Electronic Lab
Emacs
Fedora Packager
FreeNX and NX
Hardware Support
Horde
Java Development
KDE (K Desktop Environment)
KDE Software Development
KVM
Mono
MySQL Database
News Server
OpenFabrics Enterprise Distribution
PostgreSQL Database
Ruby
Tomboy
Virtualization
Web Development
Web Server
Window Managers
X Software Development
XFCE-4.4
Done
[root@server2 ~]#
Now we know the all available groups name. So its time to execute.You should type the name as shown in the list including the quotation marks. It will install everything on that group.
Be careful before using it. It may install many unnecessary things. Use it where it is really necessary.
One More Case May arise that what if you want to get list of packages that is Default Packages and Optional Packages that particular group contains. In that Case use following command.
#yum groupinfo <"Group Name">
e.g.
[root@server2 ~]#yum groupinfo "MySQL Database"
Loaded plugins: fastestmirror, priorities
Setting up Group Process
Loading mirror speeds from cached hostfile
* addons: mirror.neu.edu.cn
* base: mirror.neu.edu.cn
* epel: ftp.jaist.ac.jp
* extras: mirror.neu.edu.cn
* updates: centosv4.centos.org
Group: MySQL Database
Description: This package group contains packages useful for use with MySQL.
Mandatory Packages:
mysql
Default Packages:
MySQL-python
libdbi-dbd-mysql
mysql-connector-odbc
mysql-server
perl-DBD-MySQL
unixODBC
Optional Packages:
mod_auth_mysql
mysql-bench
mysql-devel
php-mysql
qt-MySQL
[root@server2 ~]#
Hope it will be Helpfull.
!Enjoy
Kuldeep Sharma
No comments:
Post a Comment