수요일, 8월 23, 2006

RPM 사용법

rpm 패키지 정보 및 패키지에 속한 파일 리스트 보기
# rpm -qpil kernel-2.6.17-1.2174_FC5.src.rpm
Name : kernel Relocations: (not relocatable)
Version : 2.6.17 Vendor: Red Hat, Inc.
Release : 1.2174_FC5 Build Date:
Install Date: (not installed) Build Host: hs20-bc2-3.build.redhat.com
Group : System Environment/Kernel Source RPM: (none)
Size : 47729179 License: GPLv2
Signature : DSA/SHA1, 2006년 08월 10일 (목) 오후 11시 25분 05초, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc.
Summary : Linux 커널 (Linux 운영 체제의 핵심)
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc.
COPYING.modules
Config.mk
genkey
kernel-2.6.17-i586-smp.config
kernel-2.6.17-i586.config
kernel-2.6.17-i686-kdump.config
kernel-2.6.17-i686-smp.config
kernel-2.6.17-i686-xen.config
kernel-2.6.17-i686-xen0.config
kernel-2.6.17-i686-xenU.config
kernel-2.6.17-i686.config
kernel-2.6.17-ia64.config
kernel-2.6.17-ppc-smp.config
---생략---

-q와 함께 사용하는 옵션

<패키지명> :

<패키지명> 에 대한 질문을 수행한다.

-a :

모든 패키지에 대하여 질문을 수행한다.

-f <파일> :

<파일> 을 포함하는 패키지에 대한 질문을 한다.

-p <패키지 파일> :

패키지 파일에 대한 질문을 한다.

-i :

패키지에 대한 정보를 출력한다.

-l :
패키지에 속한 파일들을 보여준다.