ssd*_*der 4 server updates apt
我在登录时在我的服务器上看到,有一些更新可用。
如何在不启动更新的情况下查看将在我的服务器上更新哪些软件包?
使用--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).
Run Code Online (Sandbox Code Playgroud)
如此轻松地查看命令:
apt-get upgrade --dry-run
Run Code Online (Sandbox Code Playgroud)
或者
apt-get upgrade -s
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
167 次 |
| 最近记录: |