
ログイン時にサーバー上でいくつかのアップデートが利用可能であることがわかります。
更新を開始せずに、サーバー上でどのパッケージが更新されるかを確認するにはどうすればよいですか?
答え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