Yum groupinstall may save your hours!

Today I have purchased another new VPS to play with nginx web server. After getting the login info, I tried to compile the nginx source. But I found that no development libraries were installed. So I started to install one by one:

yum install gcc

yum install glibc

yum install make

and so on. [Note: these can be run as yum install gcc glibc make this way]

anyway, each time I run the configure script, I find something is missing. Later, groupinstall splashed in my mind. Though I know about its functionalities, I have never used it before. But I failed trying like:

yum groupinstall development

or

yum groupinstall development-tools

etc.

Later I found the trick to know the groups name.

yum grouplist will show all available groups name. After hit the return key you will get a list like the following:

Administration Tools
Compatibility Arch Support
Editors
Development Tools
GNOME Desktop Environment
GNOME Software Development
Games and Entertainment
Graphical Internet
Graphics
Mail Server

…..

You should see them in two categories. “Installed” and “Available”. You know what they mean.

Now we know the all available groups name. So its time to execute. I needed the development libraries. So I run

yum groupinstall “Development Tools”

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.