Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

How to use groupinstall for yum in FC3

by Thomas Chung on Nov 16, 2004

groupinstall option in yum is very useful in FC3 when you want to install a group of packages which you haven not installed during the initial installation from CD-ROM or DVD-ROM.
To see the list of available group packages, use grouplist as following:

[tchung@tchung-fc3 ~]$ sudo yum grouplist
Setting up Group Process
Setting up Repo:  base
repomd.xml                100% |=========================| 1.1 kB    00:00
Setting up Repo:  updates-released
repomd.xml                100% |=========================|  951 B    00:00
comps.xml                 100% |=========================| 591 kB    00:01
Installed Groups:
   Administration Tools
   Compatibility Arch Support
   Editors
   GNOME Desktop Environment
   GNOME Software Development
   Games and Entertainment
   Graphical Internet
   Graphics
   Mail Server
   Network Servers
   Office/Productivity
   Printing Support
   Server Configuration Tools
   Sound and Video
   System Tools
   Text-based Internet
   X Software Development
   X Window System
   x86 Compatibility Arch Development Support
Available Groups:
   Authoring and Publishing
   Compatibility Arch Development Support
   DNS Name Server
   Development Tools
   Engineering and Scientific
   FTP Server
   KDE (K Desktop Environment)
   KDE Software Development
   Legacy Network Server
   Legacy Software Development
   MySQL Database
   News Server
   PostgreSQL Database
   Web Server
   Windows File Server
   XFCE
   XFCE Software Development
Done
[tchung@tchung-fc3 ~]$

Suppose you have not installed "Web Server" packages yet.
Here is how you can install them using groupinstall option via yum in FC3.

[tchung@tchung-fc3 ~]$ sudo yum groupinstall "Web Server"
Setting up Group Process
Setting up Repo:  base
repomd.xml                100% |=========================| 1.1 kB    00:00
Setting up Repo:  updates-released
repomd.xml                100% |=========================|  951 B    00:00
Reading repository metadata in from local files
base      : ################################################## 2622/2622
updates-re: ################################################## 173/173
Passing package list to Install Process
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tux to pack into transaction set.
tux-3.2.18-2.i386.rpm     100% |=========================|  13 kB    00:00
---> Package tux.i386 0:3.2.18-2 set to be installed
---> Downloading header for httpd to pack into transaction set.
httpd-2.0.52-3.1.i386.rpm 100% |=========================|  58 kB    00:00
---> Package httpd.i386 0:2.0.52-3.1 set to be installed
---> Downloading header for mod_python to pack into transaction set.
mod_python-3.1.3-5.i386.r 100% |=========================|  22 kB    00:00
---> Package mod_python.i386 0:3.1.3-5 set to be installed
---> Downloading header for mod_ssl to pack into transaction set.
mod_ssl-2.0.52-3.1.i386.r 100% |=========================|  20 kB    00:00
---> Package mod_ssl.i386 1:2.0.52-3.1 set to be installed
---> Downloading header for distcache to pack into transaction set.
distcache-1.4.5-6.i386.rp 100% |=========================| 7.2 kB    00:00
---> Package distcache.i386 0:1.4.5-6 set to be installed
---> Downloading header for webalizer to pack into transaction set.
webalizer-2.01_10-25.i386 100% |=========================| 9.4 kB    00:00
---> Package webalizer.i386 0:2.01_10-25 set to be installed
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-4.3.9-3.i386.rpm 100% |=========================|  15 kB    00:00
---> Package php-ldap.i386 0:4.3.9-3 set to be installed
---> Downloading header for squid to pack into transaction set.
squid-2.5.STABLE6-3.i386. 100% |=========================| 119 kB    00:00
---> Package squid.i386 7:2.5.STABLE6-3 set to be installed
---> Downloading header for mod_perl to pack into transaction set.
mod_perl-1.99_16-3.i386.r 100% |=========================|  67 kB    00:00
---> Package mod_perl.i386 0:1.99_16-3 set to be installed
---> Downloading header for crypto-utils to pack into transaction set.
crypto-utils-2.1-4.i386.r 100% |=========================| 5.9 kB    00:00
---> Package crypto-utils.i386 0:2.1-4 set to be installed
---> Downloading header for httpd-manual to pack into transaction set.
httpd-manual-2.0.52-3.1.i 100% |=========================|  83 kB    00:00
---> Package httpd-manual.i386 0:2.0.52-3.1 set to be installed
---> Downloading header for php to pack into transaction set.
php-4.3.9-3.i386.rpm      100% |=========================|  20 kB    00:00
---> Package php.i386 0:4.3.9-3 set to be installed
--> Running transaction check
--> Processing Dependency: newt-perl for package: crypto-utils
--> Processing Dependency: httpd-suexec for package: httpd
--> Processing Dependency: php-pear for package: php
--> Processing Dependency: libaprutil-0.so.0 for package: httpd
--> Processing Dependency: libaprutil-0.so.0 for package: mod_perl
--> Processing Dependency: libapr-0.so.0 for package: httpd
--> Processing Dependency: libapr-0.so.0 for package: mod_perl
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for newt-perl to pack into transaction set.
newt-perl-1.08-7.i386.rpm 100% |=========================| 8.6 kB    00:00
---> Package newt-perl.i386 0:1.08-7 set to be installed
---> Downloading header for httpd-suexec to pack into transaction set.
httpd-suexec-2.0.52-3.1.i 100% |=========================|  18 kB    00:00
---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be installed
---> Downloading header for php-pear to pack into transaction set.
php-pear-4.3.9-3.i386.rpm 100% |=========================|  30 kB    00:00
---> Package php-pear.i386 0:4.3.9-3 set to be installed
---> Downloading header for apr-util to pack into transaction set.
apr-util-0.9.4-17.i386.rp 100% |=========================| 5.1 kB    00:00
---> Package apr-util.i386 0:0.9.4-17 set to be installed
---> Downloading header for apr to pack into transaction set.
apr-0.9.4-23.i386.rpm     100% |=========================| 6.9 kB    00:00
---> Package apr.i386 0:0.9.4-23 set to be installed
--> Running transaction check
 
Dependencies Resolved
Transaction Listing:
  Install: crypto-utils.i386 0:2.1-4
  Install: distcache.i386 0:1.4.5-6
  Install: httpd.i386 0:2.0.52-3.1
  Install: httpd-manual.i386 0:2.0.52-3.1
  Install: mod_perl.i386 0:1.99_16-3
  Install: mod_python.i386 0:3.1.3-5
  Install: mod_ssl.i386 1:2.0.52-3.1
  Install: php.i386 0:4.3.9-3
  Install: php-ldap.i386 0:4.3.9-3
  Install: squid.i386 7:2.5.STABLE6-3
  Install: tux.i386 0:3.2.18-2
  Install: webalizer.i386 0:2.01_10-25
 
Performing the following to resolve dependencies:
  Install: apr.i386 0:0.9.4-23
  Install: apr-util.i386 0:0.9.4-17
  Install: httpd-suexec.i386 0:2.0.52-3.1
  Install: newt-perl.i386 0:1.08-7
  Install: php-pear.i386 0:4.3.9-3
Is this ok [y/N]: y
Downloading Packages:
tux-3.2.18-2.i386.rpm     100% |=========================|  81 kB    00:00
httpd-2.0.52-3.1.i386.rpm 100% |=========================| 881 kB    00:01
mod_python-3.1.3-5.i386.r 100% |=========================| 568 kB    00:01
mod_ssl-2.0.52-3.1.i386.r 100% |=========================|  89 kB    00:00
distcache-1.4.5-6.i386.rp 100% |=========================| 111 kB    00:00
webalizer-2.01_10-25.i386 100% |=========================| 101 kB    00:00
php-ldap-4.3.9-3.i386.rpm 100% |=========================|  31 kB    00:00
squid-2.5.STABLE6-3.i386. 100% |=========================| 1.1 MB    00:02
mod_perl-1.99_16-3.i386.r 100% |=========================| 1.4 MB    00:03
crypto-utils-2.1-4.i386.r 100% |=========================|  33 kB    00:00
httpd-manual-2.0.52-3.1.i 100% |=========================| 1.5 MB    00:03
php-4.3.9-3.i386.rpm      100% |=========================| 1.3 MB    00:02
newt-perl-1.08-7.i386.rpm 100% |=========================|  78 kB    00:00
httpd-suexec-2.0.52-3.1.i 100% |=========================|  24 kB    00:00
php-pear-4.3.9-3.i386.rpm 100% |=========================| 263 kB    00:00
apr-util-0.9.4-17.i386.rp 100% |=========================|  51 kB    00:00
apr-0.9.4-23.i386.rpm     100% |=========================|  87 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: apr 100 % done 1/17
Installing: apr-util 100 % done 2/17
Installing: newt-perl 100 % done 3/17
Installing: distcache 100 % done 4/17
Installing: squid 100 % done 5/17
Installing: tux 100 % done 6/17
Installing: httpd 100 % done 7/17
Installing: mod_perl 100 % done 8/17
Installing: httpd-suexec 100 % done 9/17
Installing: crypto-utils 100 % done 10/17
Installing: mod_python 100 % done 11/17
Installing: mod_ssl 100 % done 12/17
Installing: webalizer 100 % done 13/17
Installing: httpd-manual 100 % done 14/17
Installing: php 100 % done 15/17
Installing: php-ldap 100 % done 16/17
Installing: php-pear 100 % done 17/17
 
Installed: crypto-utils.i386 0:2.1-4 distcache.i386 0:1.4.5-6 httpd.i386 0:2.0.52-3.1 
httpd-manual.i386 0:2.0.52-3.1 mod_perl.i386 0:1.99_16-3 mod_python.i386 0:3.1.3-5 
mod_ssl.i386 1:2.0.52-3.1 php.i386 0:4.3.9-3 php-ldap.i386 0:4.3.9-3 squid.i386 7:2.5.STABLE6-3 
tux.i386 0:3.2.18-2 webalizer.i386 0:2.01_10-25

Dependency Installed: apr.i386 0:0.9.4-23 apr-util.i386 0:0.9.4-17 httpd-suexec.i386 
0:2.0.52-3.1 newt-perl.i386 0:1.08-7 php-pear.i386 0:4.3.9-3

Complete!
[tchung@tchung-fc3 ~]$