![我可以让 dist-upgrade 列出它将安装的软件包吗?](https://linux22.com/image/1213926/%E6%88%91%E5%8F%AF%E4%BB%A5%E8%AE%A9%20dist-upgrade%20%E5%88%97%E5%87%BA%E5%AE%83%E5%B0%86%E5%AE%89%E8%A3%85%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%90%97%EF%BC%9F.png)
我正在考虑将我的 Intrepid Ibex Ubuntu 安装升级到 Jaunty Jackalope,但我想知道它安装的任何新软件包是否会与我已安装的许多库发生冲突。有没有办法让它列出要安装的软件包,而无需实际安装任何东西?谢谢。
答案1
据我所知,你应该能够使用标准选项apt-get dist-upgrade模拟运行此命令而不实际执行升级。
-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).
-u, --show-upgraded
Show upgraded packages; Print out a list of all packages that are to be upgraded. Configuration
Item: APT::Get::Show-Upgraded.