Profile picture

[Linux] Ubuntu 서버에 설치된 패키지 조회

JaehyoJJAng2023년 06월 04일

개요

  • OS : Ubuntu 20.04 / 22.04

현재 서버에 설치된 패키지 목록 조회하기


apt

현재 시스템에 설치된 패키지 목록 조회

$ sudo apt list --installed

sshd 설치됐는지 조회

$ sudo apt list --installed | grep -i 'ssh'
libssh-4/jammy-updates,jammy-security,now 0.9.6-2ubuntu0.22.04.1 amd64 [installed,automatic]
libssh-gcrypt-4/jammy-updates,jammy-security,now 0.9.6-2ubuntu0.22.04.1 amd64 [installed,automatic]
openssh-client/jammy-updates,now 1:8.9p1-3ubuntu0.4 amd64 [installed,automatic]
openssh-server/jammy-updates,now 1:8.9p1-3ubuntu0.4 amd64 [installed]
openssh-sftp-server/jammy-updates,now 1:8.9p1-3ubuntu0.4 amd64 [installed,automatic]
ssh-import-id/jammy,jammy,now 5.11-0ubuntu1 all [installed,automatic]

dpkg

dpkg 패키지 관리 시스템에서 설치된 모든 패키지 목록 출력

$ dpkg -l | head -n 10
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                       Version                                 Architecture Description
+++-==========================================-=======================================-============-================================================================================
ii  accountsservice                            22.07.5-2ubuntu1.4                      amd64        query and manipulate user account information
ii  acl                                        2.3.1-1                                 amd64        access control list - utilities
ii  acpi-support                               0.144                                   amd64        scripts for handling many ACPI events
ii  acpid                                      1:2.0.33-1ubuntu1                       amd64        Advanced Configuration and Power Interface event daemon
ii  adduser                                    3.118ubuntu5                            all          add and remove users and groups

snap

이 명령어는 Snap 패키지 관리자를 통해 설치된 패키지 목록을 출력한다.

$ snap list
Name                       Version           Rev    Tracking         Publisher    Notes
bare                       1.0               5      latest/stable    canonical**  base
core18                     20230901          2796   latest/stable    canonical**  base
core22                     20230801          864    latest/stable    canonical**  base
firefox                    119.0.1-1         3358   latest/stable    mozilla**    -
gnome-3-34-1804            0+git.3556cb3     93     latest/stable/…  canonical**  -
gnome-42-2204              0+git.ff35a85     141    latest/stable    canonical**  -
gtk-common-themes          0.1-81-g442e511   1535   latest/stable/…  canonical**  -
snap-store                 41.3-71-g709398e  959    latest/stable/…  canonical**  -
snapd                      2.60.4            20290  latest/stable    canonical**  snapd
snapd-desktop-integration  0.9               83     latest/stable/…  canonical**  -

Loading script...