블로그

우분투 리눅스에서 설치된 패키지 확인

우분투 리눅스에서 현재 설치되어 있는 패키지들을 확인하는 방법입니다.

# dpkg --list
희망상태=알수없음(U)/설치(I)/지우기(R)/깨끗이(P)/고정(H)
| 상태=아님(N)/설치(I)/설정(C)/풀림(U)/절반설정(F)/일부설치(H)/트리거대기(W)/
| /    트리거밀림(T)
|/ 오류?=(없음)/다시설치필요(R) (상태, 오류가 대문자=불량)
||/ 이름                                버전                   Architecture           설명
+++-===================================-======================-======================-============================================================================
ii  accountsservice                     0.6.40-2ubuntu11.1     amd64                  query and manipulate user account information
ii  acl                                 2.2.52-3               amd64                  Access control list utilities
ii  acpid                               1:2.0.26-1ubuntu2      amd64                  Advanced Configuration and Power Interface event daemon
ii  adduser                             3.113+nmu3ubuntu4      all                    add and remove users and groups
ii  anacron                             2.3-23                 amd64                  cron-like program that doesn't go by time
ii  apache2                             2.4.18-2ubuntu3.5      amd64                  Apache HTTP Server
ii  apache2-bin                         2.4.18-2ubuntu3.5      amd64                  Apache HTTP Server (modules and other binary files)
ii  apache2-data                        2.4.18-2ubuntu3.5      all                    Apache HTTP Server (common files)
ii  apache2-utils                       2.4.18-2ubuntu3.5      amd64                  Apache HTTP Server (utility programs for web servers)
ii  apparmor                            2.10.95-0ubuntu2.2     amd64                  user-space parser utility for AppArmor
ii  apt                                 1.2.12~ubuntu16.04.1   amd64                  commandline package manager
ii  apt-transport-https                 1.2.12~ubuntu16.04.1   amd64                  https download transport for APT
ii  apt-utils                           1.2.12~ubuntu16.04.1   amd64                  package management related utility programs
rc  apt-xapian-index                    0.47ubuntu8            all                    maintenance and search tools for a Xapian index of Debian packages
rc  aptitude                            0.6.8.2-1ubuntu4       amd64                  terminal-based package manager
ii  at                                  3.1.18-2ubuntu1        amd64                  Delayed job execution and batch processing
ii  avahi-daemon                        0.6.32~rc+dfsg-1ubuntu amd64                  Avahi mDNS/DNS-SD daemon
ii  base-files                          9.4ubuntu4.2           amd64                  Debian base system miscellaneous files
ii  base-passwd                         3.5.39                 amd64                  Debian base system master password and group files
ii  bash                                4.3-14ubuntu1.1        amd64                  GNU Bourne Again SHell
ii  bash-completion                     1:2.1-4.2ubuntu1.1     all                    programmable completion for the bash shell

특정 패키지를 확인할 때는 파이프와 grep 을 이용합니다.

# dpkg --list | grep apache
ii  apache2                            2.4.18-2ubuntu3.5               amd64        Apache HTTP Server
ii  apache2-bin                        2.4.18-2ubuntu3.5               amd64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                       2.4.18-2ubuntu3.5               all          Apache HTTP Server (common files)
ii  apache2-utils                      2.4.18-2ubuntu3.5               amd64        Apache HTTP Server (utility programs for web servers)