90-updates-availableでパッケージを一覧表示するには?

90-updates-availableでパッケージを一覧表示するには?

このスクリプトは、/etc/update-motd.d/90-updates-available次のシステム更新の概要を提供します。

/etc/update-motd.d/90-updates-available  
281 packages can be updated.
209 updates are security updates.

これらの209セキュリティアップデートを一覧表示する方法はありますか?

明らかに、このスクリプトは/usr/lib/update-notifier/update-motd-updates-availableどこから来たのかについての手がかりを見つけることができません。

コマンドからリストを取得できると思いますが、apt list --upgradable「security」という単語を使用すると、パッケージ数の間に重なる部分はありません。grep

apt list --upgradable | grep security | wc -l
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
184

ベストアンサー1

おすすめ記事