Aptitude は自動的にインストールされたパッケージを削除しません。

Aptitude は自動的にインストールされたパッケージを削除しません。

aptitudeは、他の(手動でインストールされた)パッケージがそれを提案した場合、そのパッケージに依存しない自動的にインストールされたパッケージを削除しないようです。

root@host:/# aptitude install unattended-upgrades 
The following NEW packages will be installed:
  iso-codes{a} lsb-release{a} python-apt{a} python-apt-common{a} python2.6{a} python2.6-minimal{a} unattended-upgrades 
...

root@host:/# aptitude remove unattended-upgrades 
The following packages will be REMOVED:  
  unattended-upgrades 

...

root@host:/# aptitude why python-apt
i   apt Suggests python-apt

これがなぜ望ましいのか(どのくらい)理解できますが、これを無視する方法はありますか?

ベストアンサー1

この動作はオプションによって制御されますApt::AutoRemove::SuggestsImportant

オプション: Apt::AutoRemove::提案重要

デフォルト:true

説明: このオプションが true の場合、aptitude はインストールされたパッケージでの使用を提案した場合、そのパッケージを未使用と見なすことはありません (したがって自動的には削除されません)。詳細については、「自動インストールされたパッケージの管理」セクションを参照してください。

http://aptitude.alioth.debian.org/doc/en/ch02s05s05.html#configApt-AutoRemove-Suggests重要

aptitudeの設定ファイルでこのオプションをfalseに設定すると、aptitudeに他のパッケージでのみ提案されているパッケージを自動的に削除することができます。たとえば、/etc/apt/apt.conf を編集または作成し、次の行を追加します。

Apt::AutoRemove::SuggestsImportant false;

おすすめ記事