请教:update和upgrade的区别?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
pedant
帖子: 1093
注册时间: 2005-12-23 0:29

请教:update和upgrade的区别?

#1

帖子 pedant » 2008-02-21 17:43

请教:update和upgrade的区别?
笼统说都是升级换代。不知道有什么区别

加上dist呢?
发行版本:Ubuntu 11.04
桌面环境:GNOME 2.32.1
文件系统:ext4
内核:Linux 2.6.38-9-generic
平台:i686
CPU:Intel(R) Celeron(R) CPU 550 @ 2.00GHz
内存:993.2 MB
显卡芯片:Intel(R) GM965
电脑型号:DELL 500笔记本
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2008-02-21 17:47

man apt-get
update
update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated packages is available. An update should always be performed before an
upgrade or dist-upgrade. Please be aware that the overall progress meter will be incorrect as the size of the package files cannot be
known in advance.

upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are
currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed
packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update
must be performed first so that apt-get knows that new versions of packages are available.

dist-upgrade
dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of
packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of
less important ones if necessary. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding the general settings for individual packages.
关注我的blog: ε==3
头像
wavydoom
帖子: 1081
注册时间: 2008-02-15 0:08

#3

帖子 wavydoom » 2008-02-21 18:45

我是这么理解的:

update 是升级你当前源的软件列表(并非实质升级)
dist-upgrade 是升级软件或者系统
头像
carbont
帖子: 3406
注册时间: 2007-11-22 10:20
来自: 北京

#4

帖子 carbont » 2008-04-07 21:08

wavydoom 写了:我是这么理解的:

update 是升级你当前源的软件列表(并非实质升级)
dist-upgrade 是升级软件或者系统
LZ和ls都看错了吧……

应该是upgrade和dist-upgrade吧!
update是不是更新什么东西的,只是刷新了一下源而已。刷新后,有新版本的东西就会出现了。

一般我就是update后再upgrade或者dist-upgrade--不一样的好像就是加dist会更新内核。
lenovo Thinkpad R60i 0657 LHC
windowsXP……准备换回ubuntu了。

Twitter: @carbont
tlinuxx
帖子: 130
注册时间: 2009-04-17 16:52

Re: 请教:update和upgrade的区别?

#5

帖子 tlinuxx » 2009-05-17 2:07

依次是更新源的源,更新源的软件,智能更新
回复