Ubuntuでインストール済みのパッケージ一覧を出力する方法をご紹介します。
aptコマンドのlistを「–installed」オプションとともに使用します。
1 |
apt list --installed |
一部を表示してみます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
root@kamo:~# apt list --installed |head WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Listing... accountsservice/focal-updates,focal-security,now 0.6.55-0ubuntu12~20.04.4 armhf [installed,automatic] adduser/focal,now 3.118ubuntu2 all [installed,automatic] alsa-topology-conf/focal,now 1.2.2-1 all [installed,automatic] alsa-ucm-conf/now 1.2.2-1ubuntu0.1 all [installed,upgradable to: 1.2.2-1ubuntu0.6] apparmor/focal-updates,now 2.13.3-7ubuntu5.1 armhf [installed,automatic] apport-symptoms/focal,now 0.23 all [installed,automatic] apport/focal-updates,focal-security,now 2.20.11-0ubuntu27.16 all [installed,automatic] apt-transport-https/focal-updates,now 2.0.5 all [installed] apt-utils/focal-security,now 2.0.2ubuntu0.2 armhf [installed,upgradable to: 2.0.5] root@kamo:~# |