我可以讓 dist-upgrade 列出它將安裝的軟體包嗎?

我可以讓 dist-upgrade 列出它將安裝的軟體包嗎?

我正在考慮將我的 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.

相關內容