2009.04.22 02:56
yum 명령으로 사용할 수 있는 패키지 그룹 옵션은 아래와 같다.
* groupinstall group1 [group2] [...]
* groupupdate group1 [group2] [...]
* grouplist [hidden]
* groupremove group1 [group2] [...]
* groupinfo group1 [...]
yum으로 패키지를 관리 하기 위해서는 yum grouplist 로 설치된 패키지 그룹과, 설치 가능한 패키지 그룹을 확인하여, 따옴표(" ") 사이에 띄어쓰기를 포함한 패키지 그룹명을 정확하게 입력해야 한다.
따옴표로 묶어주지 않으면, 각각을 다른 패키지 그룹으로 인식하여 에러가 발생할 수 있다.
1. 서버에 설치된 패키지 그룹과, 설치 가능한 패키지 그룹 확인
[root@localhost /]# yum grouplist
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* updates: centos.mirror.cdnetworks.com
* addons: ftp.daum.net
* extras: ftp.daum.net
Installed Groups:
Administration Tools
Authoring and Publishing
DNS Name Server
Development Libraries
Dialup Networking Support
Editors
FTP Server
Graphics
Legacy Network Server
Legacy Software Development
Legacy Software Support
Mail Server
MySQL Database
Network Servers
PostgreSQL Database
Ruby
Server Configuration Tools
System Tools
Text-based Internet
Web Server
Windows File Server
Yum Utilities
Available Groups:
Base
Beagle
Cluster Storage
Clustering
Development Tools
Emacs
Engineering and Scientific
FreeNX and NX
GNOME Desktop Environment
GNOME Software Development
Games and Entertainment
Graphical Internet
Horde
Java
Java Development
KDE (K Desktop Environment)
KDE Software Development
Mono
News Server
Office/Productivity
OpenFabrics Enterprise Distribution
Printing Support
Sound and Video
Tomboy
Virtualization
X Software Development
X Window System
XFCE-4.4
Done
2. 특정 패키지 그룹 정보 확인
[root@localhost /]# yum groupinfo "MySQL Database"
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* updates: centos.mirror.cdnetworks.com
* addons: ftp.daum.net
* extras: ftp.daum.net
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
3. 패키지 그룹 업데이트
[root@localhost /]# yum groupupdate "MySQL Database"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* updates: centos.mirror.cdnetworks.com
* addons: ftp.daum.net
* extras: ftp.daum.net
Setting up Group Process
Checking for new repos for mirrors
Package mysql-5.0.45-7.el5.i386 already installed and latest version
Package unixODBC-2.2.11-7.1.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package MySQL-python.i386 0:1.2.1-1 set to be updated
---> Package mysql-connector-odbc.i386 0:3.51.12-2.2 set to be updated
--> Processing Dependency: libltdl.so.3 for package: mysql-connector-odbc
---> Package mysql-server.i386 0:5.0.45-7.el5 set to be updated
---> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated
---> Package libdbi-dbd-mysql.i386 0:0.8.1a-1.2.2 set to be updated
--> Processing Dependency: libdbi-drivers = 0.8.1a-1.2.2 for package: libdbi-dbd-mysql
--> Running transaction check
---> Package libtool-ltdl.i386 0:1.5.22-6.1 set to be updated
---> Package libdbi-drivers.i386 0:0.8.1a-1.2.2 set to be updated
--> Processing Dependency: libdbi >= 0.8 for package: libdbi-drivers
--> Running transaction check
---> Package libdbi.i386 0:0.8.1-2.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
MySQL-python i386 1.2.1-1 base 82 k
libdbi-dbd-mysql i386 0.8.1a-1.2.2 base 17 k
mysql-connector-odbc i386 3.51.12-2.2 base 142 k
mysql-server i386 5.0.45-7.el5 base 9.7 M
perl-DBD-MySQL i386 3.0007-2.el5 base 148 k
Installing for dependencies:
libdbi i386 0.8.1-2.1 base 35 k
libdbi-drivers i386 0.8.1a-1.2.2 base 14 k
libtool-ltdl i386 1.5.22-6.1 base 37 k
Transaction Summary
======================================================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 10 M
Is this ok [y/N]:
4. 패키지 그룹 설치
[root@localhost /]# yum groupinstall "JAVA"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* updates: centos.mirror.cdnetworks.com
* addons: ftp.daum.net
* extras: ftp.daum.net
Setting up Group Process
Checking for new repos for mirrors
Package libgcj-4.1.2-44.el5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be updated
--> Processing Dependency: jpackage-utils >= 1.6.6-1jpp_1rh for package: java-1.4.2-gcj-compat
--> Processing Dependency: jpackage-utils >= 1.6.6-1jpp_1rh for package: java-1.4.2-gcj-compat
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: gjdoc for package: java-1.4.2-gcj-compat
--> Running transaction check
---> Package jpackage-utils.noarch 0:1.7.3-1jpp.2.el5 set to be updated
---> Package gjdoc.i386 0:0.7.7-12.el5 set to be updated
--> Processing Dependency: antlr for package: gjdoc
--> Running transaction check
---> Package antlr.i386 0:2.7.6-4jpp.2 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================
Package Arch Version Repository Size
=========================================================================
Installing:
java-1.4.2-gcj-compat i386 1.4.2.0-40jpp.115 base 29 k
Installing for dependencies:
antlr i386 2.7.6-4jpp.2 base 978 k
gjdoc i386 0.7.7-12.el5 base 793 k
jpackage-utils noarch 1.7.3-1jpp.2.el5 base 61 k
Transaction Summary
=========================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386.rpm | 29 kB 00:00
(2/4): jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm | 61 kB 00:00
(3/4): gjdoc-0.7.7-12.el5.i386.rpm | 793 kB 00:00
(4/4): antlr-2.7.6-4jpp.2.i386.rpm | 978 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.0 MB/s | 1.8 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : jpackage-utils [1/4]
Installing : java-1.4.2-gcj-compat [2/4]
Installing : gjdoc [3/4]
Installing : antlr [4/4]
Installed: java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115
Dependency Installed: antlr.i386 0:2.7.6-4jpp.2 gjdoc.i386 0:0.7.7-12.el5 jpackage-utils.noarch 0:1.7.3-1jpp.2.el5
Complete!
5. 패키지 그룹 삭제
[root@localhost /]# yum groupremove "JAVA"
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* updates: centos.mirror.cdnetworks.com
* addons: ftp.daum.net
* extras: ftp.daum.net
Resolving Dependencies
--> Running transaction check
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be erased
--> Processing Dependency: java-gcj-compat for package: antlr
--> Processing Dependency: java-gcj-compat for package: antlr
--> Processing Dependency: java-gcj-compat >= 1.0.64 for package: gjdoc
--> Processing Dependency: java-gcj-compat >= 1.0.64 for package: gjdoc
---> Package libgcj.i386 0:4.1.2-44.el5 set to be erased
--> Processing Dependency: libgcj.so.7rh for package: frysk
--> Processing Dependency: libgcj.so.7rh for package: libgtk-java
--> Processing Dependency: libgcj.so.7rh for package: glib-java
--> Processing Dependency: libgcj.so.7rh for package: libgconf-java
--> Processing Dependency: libgcj.so.7rh for package: cairo-java
--> Running transaction check
---> Package antlr.i386 0:2.7.6-4jpp.2 set to be erased
---> Package frysk.i686 0:0.0.1.2008.03.19.rh1-1.el5 set to be erased
---> Package glib-java.i386 0:0.2.6-3.fc6 set to be erased
---> Package gjdoc.i386 0:0.7.7-12.el5 set to be erased
---> Package cairo-java.i386 0:1.0.5-3.fc6 set to be erased
---> Package libgtk-java.i386 0:2.8.7-3.el5 set to be erased
---> Package libgconf-java.i386 0:2.12.4-6.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================
Package Arch Version Repository Size
=====================================================================
Removing:
java-1.4.2-gcj-compat i386 1.4.2.0-40jpp.115 installed 441
libgcj i386 4.1.2-44.el5 installed 40 M
Removing for dependencies:
antlr i386 2.7.6-4jpp.2 installed 2.5 M
cairo-java i386 1.0.5-3.fc6 installed 1.0 M
frysk i686 0.0.1.2008.03.19.rh1-1.el5 installed 155 M
gjdoc i386 0.7.7-12.el5 installed 1.7 M
glib-java i386 0.2.6-3.fc6 installed 210 k
libgconf-java i386 2.12.4-6.el5 installed 180 k
libgtk-java i386 2.8.7-3.el5 installed 6.0 M
Transaction Summary
====================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 9 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : frysk [1/9]
Erasing : libgcj [2/9]
warning: /usr/lib/security/classpath.security saved as /usr/lib/security/classpath.security.rpmsave
Erasing : glib-java [3/9]
Erasing : antlr [4/9]
/usr/bin/rebuild-gcj-db: line 6: /usr/bin/gcj-dbtool: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
mkdir: missing operand
Try `mkdir --help' for more information.
/usr/bin/rebuild-gcj-db: line 13: /usr/bin/gcj-dbtool: No such file or directory
xargs: /usr/bin/gcj-dbtool: No such file or directory
/usr/bin/rebuild-gcj-db: line 6: /usr/bin/gcj-dbtool: No such file or directory
Erasing : libgtk-java [5/9]
Erasing : java-1.4.2-gcj-compat [6/9]
/var/tmp/rpm-tmp.69978: line 7: gij: command not found
/usr/share/java/libgcj-.jar has not been configured as an alternative for jaxp_parser_impl
Erasing : libgconf-java [7/9]
Erasing : cairo-java [8/9]
Erasing : gjdoc [9/9]
Removed: java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 libgcj.i386 0:4.1.2-44.el5
Dependency Removed: antlr.i386 0:2.7.6-4jpp.2 cairo-java.i386 0:1.0.5-3.fc6 frysk.i686 0:0.0.1.2008.03.19.rh1-1.el5 gjdoc.i386 0:0.7.7-12.el5 glib-java.i386 0:0.2.6-3.fc6 libgconf-java.i386 0:2.12.4-6.el5 libgtk-java.i386 0:2.8.7-3.el5
Complete!
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
66 | 리눅스에서 mii-tool 사용 방법 | 호스트웨이 | 2012.03.08 | 23228 |
65 | vsftpd 시간이 맞지 않을때 | sylee | 2010.04.07 | 20289 |
64 | 반복적인 수행 crontab - 기본편 | Namlyong | 2010.04.02 | 24985 |
63 | hdparm 옵션 알아보기 | sylee | 2010.02.04 | 24389 |
62 | 도메인 / IP 정보 조회 방법 및 사이트 | Namlyong | 2010.01.13 | 33014 |
61 | dmidecode 명령 | jook | 2009.10.30 | 32251 |
60 | samba 설정후, 한글 파일이 깨질때.. | jook | 2009.10.08 | 24005 |
59 | vsftpd.conf 설정 | jook | 2009.06.03 | 28944 |
58 | mrtg를 이용한 시스템자원 모니터링(debian 5.0) | jook | 2009.06.02 | 26074 |
57 | mrtg를 이용한 트래픽 모니터링(debian 5.0) | jook | 2009.06.02 | 29047 |
56 | rsync를 사용하여 데이터 백업 하기 | jook | 2009.04.25 | 25274 |
» | yum 으로 패키지그룹 관리하기 | jook | 2009.04.22 | 32733 |
54 | 리눅스에서 NTFS 읽고 쓰기 | 호스트웨이 | 2009.04.18 | 32487 |
53 | debian .vimrc 활용 | HOSTWAY | 2009.04.15 | 24589 |
52 | FreeBSD 커널 빌드 | sylee | 2009.04.14 | 23483 |
51 | 폴더에 다수의 파일을 삭제하기 | HOSTWAY | 2009.02.19 | 29617 |
50 | 비프음 콘트롤 | 호스트웨이 | 2009.02.12 | 25048 |
49 | php-5.2.x 설치 옵션 | 호스트웨이 | 2009.02.05 | 24671 |
48 | apt-get 간단 사용 방법 | jook | 2008.12.11 | 35469 |
47 | openssl 간단 사용법 | 호스트웨이 | 2008.12.10 | 41279 |