Linux ETC

yum 으로 패키지그룹 관리하기

2009.04.22 02:56

jook 조회 수:30815

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!

 

번호 제목 글쓴이 날짜 조회 수
346 Block 단위 파일 복사를 위한 dd 사용 호스트웨이 2015.09.18 1858
345 scp, ssh, rsync를 사용할 때 SSH 암호 묻는 것 피하는 법 호스트웨이 2015.09.13 1867
344 Linux -(하이픈)으로 시작하는 파일 지우기 호스트웨이 2015.09.20 1869
343 CPU 사용률 제한 호스트웨이 2015.09.18 1881
342 free -m 에서 free (남는 메모리 양) 최소량 제한하기 호스트웨이 2012.12.21 1926
341 ispell 명령어를 통한 철자 검사 및 수정하기 file 호스트웨이 2012.10.12 1932
340 INIT: no more processes left in this runlevel 메세지 발생시 호스트웨이 2012.11.15 1951
339 df 쉽게 보기 호스트웨이 2012.12.20 1957
338 읽기 전용 파티션 읽고 쓸수 있게 재마운트하는 방법 호스트웨이 2015.09.13 1975
337 프로그램의 사용 메모리 확인 호스트웨이 2015.09.23 2002
336 리눅스 상에서 메모리 사용 현황 확인하기 호스트웨이 2015.09.23 2013
335 dumpe2fs - 파일시스템 상세 정보 확인 호스트웨이 2015.09.18 2036
334 사용하지 않는 데몬 끄기 호스트웨이 2015.09.23 2038
333 쉘 프롬프트 설정하기 file 호스트웨이 2012.11.08 2078
332 TCp syn Flooding 공격시 대처방법 TIP 호스트웨이 2012.10.26 2085
331 리눅스 터미널 기반 모니터링 툴 "glances" 호스트웨이 2015.09.23 2089
330 Linux 설치된 OS 커널의 Bit확인 호스트웨이 2015.09.26 2089
329 랜카드 본딩(bond0) 설정 호스트웨이 2012.11.16 2124
328 bios 타이머 및 시간 설정 호스트웨이 2015.09.18 2128
327 SNMPD LOG 안남게 하기 호스트웨이 2015.09.10 2170