![apt からどのパッケージが更新されるかを確認するにはどうすればよいですか?](https://rvso.com/image/1126790/apt%20%E3%81%8B%E3%82%89%E3%81%A9%E3%81%AE%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%8C%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%82%8B%E3%81%8B%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
ログイン時にサーバー上でいくつかのアップデートが利用可能であることがわかります。
更新を開始せずに、サーバー上でどのパッケージが更新されるかを確認するにはどうすればよいですか?
答え1
--dry-run
、、、、、引数を使用すると、実際には何も実行されず、何が行われるかが示されるだけ-s
です--simulate
。--just-print
--recon
--no-act
apt-getのマニュアルページより
-s, --simulate, --just-print, --dry-run, --recon, --no-act
No action; perform a simulation of events that would occur but do
not actually change the system. Configuration Item:
APT::Get::Simulate.
Simulate prints out a series of lines each one representing a dpkg
operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square
brackets indicate broken packages with and empty set of square
brackets meaning breaks that are of no consequence (rare).
簡単にコマンドを見てみましょう:
apt-get upgrade --dry-run
または
apt-get upgrade -s