yum실무11편: yum으로 특정 패키지 그룹 삭제하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,398 조회
- 0 추천
- 목록
본문
yum실무11편: yum으로 특정 패키지 그룹 삭제하기
이미 시스템에 설치된 특정 패키지그룹을 yum을 이용하여 삭제하는 방법에 대해서 알아보자. 특정 패키지를 삭제하는 것보다 특정 패키지그룹을 삭제하는 것은 좀 생각해야 할 부분이 있다.
즉 패키지그룹은 여러개의 패키지들로 구성되어있고, 하나의 패키지는 또한 여러개의 파일들로 구성되어있다.
이런 상황에서 하나의 패키지그룹을 삭제한다는 것은 심각한 의존성문제를 야기할 수 있기 때문이다.
하지만 다행스럽게도 yum은 이런 의존성문제를 모두 해결해 준다.
즉 의존성문제를 해결하기 위하여 필요한 패키지들도 함께 삭제해 주거나 꼭 필요할 경우에 삭제대상 패키지그룹에 속한 패키지라도 삭제되지 않도록 한다.
사용형식 : yum groupremove 패키지그룹명
다음 예는 “Printing Support”라는 패키지그룹이 불필요 할 것 같아서 삭제하려고 한다.
그래서 “yum groupremove “Printing Support””를 실행하였다.
다음 결과를 잘 보기 바란다.
[root@sulinux Packages]# yum groupremove "Printing Support" Loaded plugins: refresh-packagekit Setting up Group Process Resolving Dependencies --> Running transaction check ---> Package samba-client.i386 0:3.2.4-0.22.fc10 set to be erased ---> Package a2ps.i386 0:4.14-6.fc10 set to be erased … 중략 --> Finished Dependency Resolution
Dependencies Resolved
======================================================================================== Package Arch Version Repository Size ======================================================================================== Removing: a2ps i386 4.14-6.fc10 installed 3.9 M bluez-cups i386 4.17-2.fc10 installed 5.2 k cups i386 1:1.3.9-2.fc10 installed 10 M … 중략 libgnomeprintui22 i386 2.18.3-1.fc10 installed 1.1 M libgnomeprintui22-devel i386 2.18.3-1.fc10 installed 243 k libspectre i386 0.2.1-1.fc10 installed 78 k planner i386 0.14.3-6.fc10 installed 5.9 M tex-preview noarch 11.85-7.fc9 installed 123 k texlive-latex i386 2007-35.fc10 installed 96 k texlive-texmf-latex noarch 2007-26.fc10 installed 26 M texlive-utils i386 2007-35.fc10 installed 447 k tomboy i386 0.12.0-5.fc10 installed 7.6 M
Transaction Summary ======================================================================================== Install 0 Package(s) Update 0 Package(s) Remove 34 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 : gnome-games 1/34 Erasing : tex-preview 2/34 Erasing : gnome-games-help 3/34 Erasing : bluez-cups 4/34 Erasing : hplip 5/34 Erasing : mpage 6/34 Erasing : hal-cups-utils 7/34 Erasing : html2ps 8/34 Erasing : samba-client 9/34 Erasing : cups 10/34 Erasing : planner 11/34 Erasing : libgnomeprint22-devel 12/34 Erasing : ImageMagick-perl 13/34 Erasing : ImageMagick 14/34 Erasing : gnome-python2-gnomeprint 15/34 Erasing : texlive-texmf-latex 16/34 Erasing : libgnomeprintui22 17/34 Erasing : a2ps 18/34 Erasing : texlive-latex 19/34 Erasing : texlive-utils 20/34 Erasing : system-config-printer 21/34 Erasing : enscript 22/34 Erasing : tomboy 23/34 Erasing : evince-djvu 24/34 Erasing : hpijs 25/34 Erasing : libspectre 26/34 Erasing : ghostscript 27/34 Erasing : libgnomeprint22 28/34 Erasing : gutenprint 29/34 Erasing : libgnomeprintui22-devel 30/34 Erasing : evince-dvi 31/34 Erasing : gutenprint-foomatic 32/34 Erasing : evince 33/34 Erasing : libgnomecups 34/34
Removed: a2ps.i386 0:4.14-6.fc10 bluez-cups.i386 0:4.17-2.fc10 cups.i386 1:1.3.9-2.fc10 enscript.i386 0:1.6.4-11.fc10 ghostscript.i386 0:8.63-4.fc10 gutenprint.i386 0:5.0.2-3.fc10 gutenprint-foomatic.i386 0:5.0.2-3.fc10 hal-cups-utils.i386 0:0.6.17-4.fc10 hpijs.i386 1:2.8.7-3.fc10 hplip.i386 0:2.8.7-3.fc10 mpage.i386 0:2.5.6-3.fc10 samba-client.i386 0:3.2.4-0.22.fc10 system-config-printer.i386 0:1.0.9-1.fc10
Dependency Removed: ImageMagick.i386 0:6.4.0.10-2.fc10 ImageMagick-perl.i386 0:6.4.0.10-2.fc10 evince.i386 0:2.24.1-3.fc10 evince-djvu.i386 0:2.24.1-3.fc10 evince-dvi.i386 0:2.24.1-3.fc10 gnome-games.i386 1:2.24.1-1.fc10 gnome-games-help.i386 1:2.24.1-1.fc10 gnome-python2-gnomeprint.i386 0:2.23.0-1.fc10 html2ps.noarch 0:1.0-0.1.b5.fc10 libgnomecups.i386 0:0.2.3-4.fc10 libgnomeprint22.i386 0:2.18.5-1.fc10 libgnomeprint22-devel.i386 0:2.18.5-1.fc10 libgnomeprintui22.i386 0:2.18.3-1.fc10 libgnomeprintui22-devel.i386 0:2.18.3-1.fc10 libspectre.i386 0:0.2.1-1.fc10 planner.i386 0:0.14.3-6.fc10 tex-preview.noarch 0:11.85-7.fc9 texlive-latex.i386 0:2007-35.fc10 texlive-texmf-latex.noarch 0:2007-26.fc10 texlive-utils.i386 0:2007-35.fc10 tomboy.i386 0:0.12.0-5.fc10
Complete! [root@sulinux Packages]# |
이렇게 삭제하려고 하면 yum은 먼저 의존성검사를 수행한다.
그리고 삭제대상 패키지그룹에 속한 패키지들을 확인하고 몇 개의 패키지를 삭제해야 하는가를 결정한다.
그런 다음 사용자에게 삭제확인(y)을 받고서 삭제를 수행한다.
삭제수행 내용을 잘 보면 “Removed”항목이있고, “Dependency Removed”항목에 속한 패키지들이 각각 존재한다.
물론, 모두 삭제된 패키지들이지만 “Dependency Removed”항목에 속한 패키지들은 의존성문제로 삭제되는 패키지들임을 확인하기 바란다.
관련자료
-
이전
-
다음