Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

yum의 개념과 사용법

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • yum의 개념과 사용법

Resolution

1.yum의 개념
Yum은 Yellow dog Update라고도 하고 Duke University에서 RPM 설치를 개선하기 위해 개발한 패키지 관리자입니다.

Yum은 패키지 저장소를 수요되는 패키지를 검색하고 다운로드 하여 설치까지 처리하면서 패키지들의 의존성을 고려하여 설치할때 패키지 의존성에 대한 error를 줄일 수 있습니다. Red Hat Enterprise Linux 5에서는 Yum으로 패키지를 설치합니다.

Yum은 /etc/yum.conf라는 설정파일을 사용합니다. 자세한 내용은 yum(8) man page를 참조해주시길 바랍니다.

패키지 repository를 설정하는 여러가지 방법이 있습니다.
• 이미존재한 repository를 추가하여 패키지를 얻는 방법
• 새로운 repository를 설정하여 ISO에서 패키지를 얻는 방법
• RHN에 등록하여 패키지를 얻는 방법
새로운 repository를 설정하는 방법은 아래의 문서를 참조해주시길 바랍니다.
How can I add a new yum repository as a source to install software?(https://access.redhat.com/knowledge/node/9954)

Repository를 설정하여 DVD ISO에서 패키지를 얻는 방법은 아래의 문서를 참조해주시길 바랍니다.
How do I setup a yum or up2date repository to use a locally mounted DVD with Red Hat Enterprise Linux 4 and 5?(https://access.redhat.com/knowledge/node/9743)

System을 RHN에 register하는 방법은 아래의 문서를 참조해주시길 바랍니다.
How do I access Red Hat Network (RHN) to download software, updates, and security errata?(https://access.redhat.com/knowledge/node/5023)

Red Hat Network (RHN)의 repository를 접근하려면 반드시 RHN에 등록하여야 합니다. 자세한 부분은 RHN FAQ list(https://access.redhat.com/knowledge/node/15979)를 참조해주시길 바랍니다.

  1. 사용법
    아래는 몇 가지 유용한 명령어입니다.

1) 패키지 설치:
yum install package
Example:
yum install httpd
2) 패키지 삭제:
yum remove package
Example:
yum remove httpd
3) 패키지 업데이트:
yum update package
Example:
yum update httpd
4) 패키지 검색:
yum search package
Example:
yum search httpd
5) 패키지 정보:
yum info package
Example:
yum info httpd
6) 특정단어가 포함 된 패키지 리스트:
yum list term
Example:
yum list httpd
7) 특정 파일을 제공한 패키지 검색:
yum whatprovides filename
Example:
yum whatprovides httpd.conf
8) 커널 패키지에 설치된 모든 패키지를 업데이트:
yum -y update
Example:
yum -y update

  • Component
  • yum

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments