补装分组软件包
分组安装在需要补装如桌面系统,开发工具的时候,显得犹为方便快捷。
首先,查看 yum 源中的分组列表。
[root@localhost root]# yum grouplist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
dvd/group
| 1.0 MB 00:00
Installed Groups:
Administration Tools
Editors
GNOME Desktop Environment
...
Available Groups:
Authoring and Publishing
DNS Name Server
Development Libraries
...
Done
然后,通过 yum groupinstall 来补装软件包。yum 会自动解析出分组所包含的 RPM 软件包,并处理好它们的依赖关系。同样,mysql-server 很快被安装到系统中。
[root@localhost root] # yum groupinstall "MySQL Database"
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Resolving Dependencies
...
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
MySQL-python i386 1.2.1-1 dvd 82 k
libdbi-dbd-mysql i386 0.8.1a-1.2.2 dvd 17 k
...
Installing for dependencies:
libdbi i386 0.8.1-2.1 dvd 35 k
libdbi-drivers i386 0.8.1a-1.2.2 dvd 14 k
...
Transaction Summary
============================================
Install 12 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
---------------------------------------------------------------------------
Total 1.3 GB/s | 17 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBI 1/12
Installing : mysql 2/12
...
Installing : libdbi-dbd-mysql 12/12
Installed:
MySQL-python.i386 0:1.2.1-1
libdbi-dbd-mysql.i386 0:0.8.1a-1.2.2
...
Dependency Installed:
libdbi.i386 0:0.8.1-2.1 libdbi-drivers.i386 0:0.8.1a-1.2.2
...
Complete!