dpkg -s
은 파일이나 프로그램이 아닌 패키지 이름을 인수로 취합니다. (대부분의 경우, 프로그램을 제공하는 패키지와 같은 이름을 갖게됩니다.)
예를 들어, 내 우분투 시스템, dpkg -s gcc
인쇄 켜짐 : CentOS는 시스템에서
Package: gcc
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 64
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Source: gcc-defaults (1.98ubuntu3)
Version: 4:4.5.2-1ubuntu3
Provides: c-compiler
Depends: cpp (>= 4:4.5.2-1ubuntu3), gcc-4.5 (>= 4.5.2-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Description: The GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
.
This is a dependency package providing the default GNU C compiler.
Original-Maintainer: Debian GCC Maintainers <[email protected]>
, rpm -q gcc
인쇄 :
gcc-4.1.2-50.el5
많은 정보는 인쇄되지 않지만 패키지를 설치했는지 확인하는 것이 좋습니다. 더 많은 정보 나 기타 옵션이 필요하면 man rpm
; 다른 쿼리를 사용할 수 있습니다.
rpm -q snmpd
이 package snmpd is not installed
인 경우 필요한 정보 일뿐입니다.
dpkg -s
과 rpm -q
모두 종료 상태를 설정하므로 패키지가 설치되지 않은 경우 오류가보고됩니다.