アンインストール時に予期しないパッケージが表示される

アンインストール時に予期しないパッケージが表示される

ここ数週間、私はシングルサーバー設定からマルチサーバー設定に切り替えました。それでは削除します。暗号化しよう/証明書ロボットソースサーバーから。 (私は持っていますSSL終了設定高可用性エージェント.)

私は努力したapt remove --purge letsencrypt。しかし、これはまだ必要なパッケージを示しています。

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 dh-python libapache2-mod-php7.3 libasan5 libbind9-161 libbison-dev libboost-iostreams1.67.0 libboost-system1.67.0 libc-dev-bin libcwidget3v5 libdns1104 libdns1110 libevent-2.1-6 libf2fs-format4 libf2fs5 libgfortran5
  libicu63 libip6tc0 libiptc0 libirs161 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19 liblinear3 libllvm7 liblua5.2-0 liblwres161 libmemcachedutil2 libmpdec2 libperl5.28 libprocps7 libpython3.7 libpython3.7-minimal
  libpython3.7-stdlib linux-libc-dev ncal perl-modules-5.28 php-symfony-debug php7.3 php7.3-bcmath php7.3-fpm php7.3-mysql php7.3-pgsql php7.3-soap php8.0-memcached python3-asn1crypto python3-future python3-mock python3-pbr python3.7
  python3.7-minimal usb.ids
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  letsencrypt*
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 30.7 kB disk space will be freed.
Do you want to continue? [Y/n]

私はPHP7.3の最後の段階にあり、それを使用するスクリプトは1つだけ残っています。私はPythonにあまり慣れていません。コンピュータに不要になったパッケージのリストを決定するロジックを説明できる人はいますか?

ベストアンサー1

apt明示的な要求によってインストールされたのか、依存関係として自動的に導入されたのかに関係なく、すべてのパッケージを追跡します。サイレントインストールが必要なすべてのパッケージが自動的に削除されると、サイレントインストールされたパッケージはサイレントアンインストールの対象になります。

特定の状況でパッケージが自動的に削除可能になった理由を確認するには、システム履歴に関する知識が必要です。ここで説明する情報は十分ではありません。

しかし、慌てる理由はありません。aptこれは、そのパッケージが自動削除の対象であることを示すものではなく、削除するわけではありません。aptこれらのパッケージは、削除を要求した場合apt autoremoveにのみ削除されます(例:)。実際には、質問のコマンドを確認しなければletsencrypt削除されません。

将来的には、これを防ぐことができます。手動インストールとしてマーク、例えば

sudo apt-mark manual bsdmainutils

おすすめ記事