설치된 패키지의 정보 보기
포트에 의하거나 바이너리 패키지에 의해 설치된 패키지 목록은 pkg_info 명령으로 볼 수 있다.
# pkg_info ImageMagick-5.3.1 Image processing tools (interactive optional--misc/display Mesa-3.4.1 A graphics library similar to SGI's OpenGL ORBit-0.5.7 High-performance CORBA ORB with support for the C language XFree86-4.0.3_3 X11R6.4/XFree86 core distribution (complete) XPostitPlus-2.3 PostIt (R) messages onto your X11 screen a2ps-a4-4.13 Formats an ascii file for printing on a postscript printer acroread4-4.05 View, distribute and print PDF documents apache-1.3.19_1 The extremely popular Apache http server. Very fast, very apel-emacs20-10.3 A Portable Emacs Library for emacs20
pkg_info는 한 패키지에 대한 자세한 설명을 볼 때에도 활용할 수 있다.
# pkg_info ko-hanterm-xf-19 Information for ko-hanterm-xf-19: Comment: An X11R6-based xterm hacked for managing Korean languages Description: hanterm-xf ---------- It is one of many variants of hanterm, a well-known program for managing Korean language in X11. This version supports the features such as automatic fonts detection, johab844 font support, and based on XFree86's xterm code. The scrollbar is displayed in right. -- CHOI Junho WWW: http://www.kr.FreeBSD.org/~hwang/hanterm/index.html
pkg_info는 다양한 패키지 확인 기능을 할 수 있다. 그 몇가지 예를 들어 보자. 아래 몇가지 옵션은 4.2 이후에 추가된 것이므로 4.3에서만 되는 것들도 있다.
# pkg_info -g apache-1.3.19_1
설치된 패키지와 설치 파일에 대한 체크섬을 비교해서 바뀐 파일을 찾아낸다. 임의로 변조된 설치 파일을 찾을 수 있지만 패키지 데이터베이스(/var/db/pkg)가 위조된 경우에는 안전을 보장할 수 없다.
# pkg_info -f apache-1.3.19_1
설치 파일 목록과 실행 순서를 보여준다. 설치 목록에는 설치되는 파일뿐 아니라 간단한 실행 명령도 들어 있는데, 이런 것도 같이 보여준다. 파일 목록만 보고자 한다면 -L 옵션을 쓰면 된다.
# pkg_info -R png-1.0.10
해당 패키지를 필요로 하는 다른 패키지의 목록을 표시한다.
# pkg_info -x apache
보통 패키지 이름은 정확하게 주어야 하나, -x 옵션 뒤에서는 정규식으로 주면 되므로 패키지명의 일부로도 패키지 정보를 볼 수 있다.
# pkg_info -W apachectl
# pkg_info -W /usr/local/etc/a2ps.cfg
해당 실행파일 또는 파일명이 속한 패키지를 찾는다.
설치된 패키지 데이터베이스는 보통의 디렉토리로 관리되므로, /var/db/pkg 디렉토리를 보면 설치된 패키지 목록을 볼 수 있다.