apt-get dist-upgrade和do-release-upgrade有什么区别?


Answers:


18

apt-get dist-upgrade除非您进行修改,否则不会进行发行更新/etc/apt/sources.list

此命令更新所有已安装的软件包及其依赖关系更改。如果将运行此命令与对/etc/apt/sources.list文件的适当更改结合在一起,则可以升级Ubuntu版本。

do-release-upgrade 将执行发布更新。

因此,例如,如果要从Ubuntu 11.04迁移到11.10,则有2个选项:

  1. /etc/apt/sources.list文件中单词“ natty”的每次出现更改为“ oneiric”,然后运行命令apt-get dist-upgrade
  2. 运行do-release-upgrade命令。

2
do-release-upgrade还具有其他一些很酷的功能,例如“ --sandbox”,它可以使用aufs重新挂载文件系统,以便可以回滚升级!
合作社2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.