请教 update 和 upgrade的区别

200 views
Skip to first unread message

Zhenbo Li

unread,
Feb 22, 2013, 7:26:42 PM2/22/13
to gz...@googlegroups.com
大家好

词典上解释,
update 更新
upgrade 升级

之前用 Ubuntu,是先 apt-get update 更新软件仓库,然后 apt-get upgrade 更新软件
而现在用 Fedora,直接 yum update

然后,我就不明白这两个词的区别了。
请问,有人能解释一下吗?

谢谢大家。另祝周末愉快。

--
Together we’ll cry happy tears
See the nations turn their swords into plowshares
--<Heal the world>

Liutos

unread,
Feb 22, 2013, 8:34:27 PM2/22/13
to gz...@googlegroups.com
个人理解:update是多了点东西,upgrade是有较大的改变→_→


--
您收到此邮件是因为您订阅了 Google 网上论坛的“广州 GNU/Linux 用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 gzlug+un...@googlegroups.com
要向此网上论坛发帖,请发送电子邮件至 gz...@googlegroups.com
通过以下网址访问此论坛:http://groups.google.com/group/gzlug?hl=zh-CN
要查看更多选项,请访问 https://groups.google.com/groups/opt_out





--
Liutos Love Linux LaTeX Lisp Ling

我的GitHub主页:https://github.com/Liutos

pow...@gmail.com

unread,
Feb 22, 2013, 9:05:24 PM2/22/13
to gz...@googlegroups.com
我现在用gentoo 的sudo emerge --deep --update --newuse world
发送自我的 BlackBerry® 智能手机
www.blackberry.com

From: Liutos <mat.l...@gmail.com>
Date: Sat, 23 Feb 2013 09:34:27 +0800
Subject: Re: [gzlug] 请教 update 和 upgrade的区别

Aten Zhang

unread,
Feb 22, 2013, 9:54:57 PM2/22/13
to GZLUG

按我的使用理解,update是更新数据库,然后根据新的数据库信息upgrade升级相应的资料

Robin Lee

unread,
Feb 23, 2013, 1:02:53 AM2/23/13
to gz...@googlegroups.com
简单 update 与 upgrade 主要区别于是否允许包的的替换

比如 a 即将要替换(淘汰) b,yum update 的话会略过这次升级,使得你的 b 包被保留。upgrade 的话就是会真的将 a 替换掉 b


2013/2/23 Aten Zhang <ate...@gmail.com>

tong hui

unread,
Feb 23, 2013, 1:21:25 AM2/23/13
to gz...@googlegroups.com
从语言学上说,基本没区别。发行版的特定而已

Ubuntu/Debian等deb包管理的用apt-get update表示只更新包列表缓存,只是完成这一步。而apt-get upgrade则真正进行包升级安装操作,但如果单独运行upgrade而没有update的话,依然使用的是没有更新以后的包缓存列表,也就是说每次升级都要update && upgrade,类似upgrade的还有一个dist-upgrade,表示发行版升级,一般是发行版升级的时候用的,平时如果发现有内核升级提示,也要用这个dist-upgrade

而Fedora/OpenSUSE等rpm包管理的yum update或者zypper up的时候把update+upgrade两步都一起执行了,有好处也有坏处。看应用场合了。


2013/2/23 Robin Lee <robinl...@gmail.com>



--
/***
 * @brief 启智开源 编码自由
 * @brief Open Source,  Coding for free!
 * @note English Name changed to Tony Hui
 * @param author 佟辉 Tony Hui
 * @param email tong...@gmail.com
 * @param web http://tonghuix.tk
 */

freegih

unread,
Feb 23, 2013, 2:24:57 AM2/23/13
to gz...@googlegroups.com
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.
这样的问题也折腾,还用干活吗?
你可以写一个工具:
fuck-get fuck 做 apt-get update做的事
fuck-get fuckfuck 做 apt-get upgrade做的事
….

Qian Hong

unread,
Feb 23, 2013, 4:09:13 AM2/23/13
to gz...@googlegroups.com
2013/2/23 freegih <fre...@gmail.com>:
> 这样的问题也折腾,还用干活吗?

freegih兄弟估计误会了了Zhenbo问这个问题的本意了,他最近在帮几个开源项目做一些中文化的工作,为了避免翻译不准确误导新手,自然要先问清楚.


--
Regards,
Qian Hong

-
http://www.winehq.org

BOYPT

unread,
Feb 23, 2013, 4:27:56 AM2/23/13
to gz...@googlegroups.com

主要是lz没搞清楚两个动作的宾语,呵呵…

Zhenbo Li

unread,
Feb 23, 2013, 5:59:11 AM2/23/13
to gz...@googlegroups.com
可能我的原邮件说的不是很明确吧。


在 2013年2月23日下午2:21,tong hui <tong...@gmail.com> 写道:
> 从语言学上说,基本没区别。发行版的特定而已
>
问题就在这里。在 Ubuntu 下,这两个概念是有必要辨析的。而在 Fedora 下,你甚至不需要懂得 upgrade 如何拼写(可能夸张了)。

现在,一句话里同时出现了这两个词,如果不是在 Debian系的语境下,那怎么判断,这是作者故意切换用词来辨析概念的*细微*区别,还是随手换了个词?

在口语中,我觉得这两个词多数情况下可以通用。但是如果要用来表示精准的概念的话,问题就出现了。

tpu01yzx

unread,
Feb 23, 2013, 8:57:04 AM2/23/13
to gzlug
update强调“新”,upgrade强调“升”。比如一般会说更新补丁,而不会说升级补丁;一般会说更新数据,而不会说升级数据;一般会说升级版本,而不会说更新版本(但可以说更新新版本)。在有些的情况下,中文里的“更新软件”似乎包含update和upgrade两个意思。
 
我的理解是update有点F5的意思。upgrade有点Ctrl+-->的意思。
 

可能我的原邮件说的不是很明确吧。
在 2013年2月23日下午2:21,tong hui <tong...@gmail.com> 写道:
> 从语言学上说,基本没区别。发行版的特定而已
>
问题就在这里。在 Ubuntu 下,这两个概念是有必要辨析的。而在 Fedora 下,你甚至不需要懂得 upgrade 如何拼写(可能夸张了)。
现在,一句话里同时出现了这两个词,如果不是在 Debian系的语境下,那怎么判断,这是作者故意切换用词来辨析概念的*细微*区别,还是随手换了个词?
在口语中,我觉得这两个词多数情况下可以通用。但是如果要用来表示精准的概念的话,问题就出现了。

Ma Xiaojun

unread,
Feb 23, 2013, 9:32:37 AM2/23/13
to gz...@googlegroups.com
不知道大家还记不记得怎么用Windows

反正用Windows XP自带的Windows Update是无法把系统升级成Windows Vista的。但是可以装个SP3啥的。

Liutos

unread,
Feb 23, 2013, 10:13:01 AM2/23/13
to gz...@googlegroups.com
和我的理解很接近啊XD

update重在修改,upgrade重在更换。


在 2013年2月23日下午10:32,Ma Xiaojun <damag...@gmail.com>写道:
不知道大家还记不记得怎么用Windows

反正用Windows XP自带的Windows Update是无法把系统升级成Windows Vista的。但是可以装个SP3啥的。
--
您收到此邮件是因为您订阅了 Google 网上论坛的“广州 GNU/Linux 用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 gzlug+un...@googlegroups.com
要向此网上论坛发帖,请发送电子邮件至 gz...@googlegroups.com
通过以下网址访问此论坛:http://groups.google.com/group/gzlug?hl=zh-CN
要查看更多选项,请访问 https://groups.google.com/groups/opt_out


贾和斌

unread,
Feb 23, 2013, 8:50:15 AM2/23/13
to gz...@googlegroups.com
对 ubuntu 或其他 debian 类系统而言:
apt-get update 是更新软件包列表,只是单纯的更新列表(Packages文件)而已,不会安装软件;
apt-get upgrade 是更新软件包到最新的,会安装软件包。可能会升级内核。

xkx

unread,
Feb 24, 2013, 3:29:34 AM2/24/13
to gz...@googlegroups.com
通常语境的话,
应该一个是"up-to-date",另一个是"level-up"吧

2013/2/23 贾和斌 <jhb...@yeah.net>:

JunLe Li

unread,
Feb 25, 2013, 1:34:36 AM2/25/13
to GZLUG
2013/2/23 Ma Xiaojun <damag...@gmail.com>:
> 不知道大家还记不记得怎么用Windows
>
> 反正用Windows XP自带的Windows Update是无法把系统升级成Windows Vista的。但是可以装个SP3啥的。
>

看到这个例子,我笑了。XDDDDD
另,OS X 下面有没有类似的?

Zhenbo Li

unread,
Feb 25, 2013, 4:18:36 AM2/25/13
to gz...@googlegroups.com
在 2013年2月24日下午4:29,xkx <xkx...@gmail.com> 写道:
> 通常语境的话,
> 应该一个是"up-to-date",另一个是"level-up"吧
>
我觉得这么理解是比较合理的。但汉语找到一个对应词貌似就是不可能的任务了。

Bill Chen (CHEN, Zhechuan)

unread,
Feb 25, 2013, 8:02:28 AM2/25/13
to gz...@googlegroups.com
2013/2/25 Zhenbo Li <liti...@gmail.com>
在 2013年2月24日下午4:29,xkx <xkx...@gmail.com> 写道:
> 通常语境的话,
> 应该一个是"up-to-date",另一个是"level-up"吧
>
我觉得这么理解是比较合理的。但汉语找到一个对应词貌似就是不可能的任务了。

 更新  && 升级

Best Regards,
Bill Chen (CHEN, Zhechuan)

ScMarxX

unread,
Feb 25, 2013, 8:34:16 AM2/25/13
to gzlug
update :更新本地安装源数据库
upgrade:升级系统与软件。
 

ScMarxX
 
发送时间: 2013-02-25 21:02
收件人: gzlug
主题: Re: Re: [gzlug] 请教 update 和 upgrade的区别
--

BOYPT

unread,
Feb 25, 2013, 9:02:09 PM2/25/13
to gz...@googlegroups.com
apt-get: 
    update : 更新软件包数据库
    upgrade : (根据数据库)升级系统软件包

yum:
    update : 更新系统软件包


2013/2/25 ScMarxX <scm...@gmail.com>



--
Preston M.
Linuxer uses Arch/Ubuntu, Pythoner
--> Blog: http://apt-blog.net Github: https://github.com/pentie

Ma Xiaojun

unread,
Feb 26, 2013, 9:45:48 AM2/26/13
to gz...@googlegroups.com
前面有人问:OSX下不花钱只能用Software Update……花钱才能跨版本升级,如Lion升级到ML……

mother

unread,
Feb 28, 2013, 9:05:55 PM2/28/13
to gz...@googlegroups.com

搭个顺风车 

最近准备把工作平台完整的切到 ubuntu ,要用到kdevelop ,小弟就先试装先用下,

apt -get 得到如下结果

apt-get install kdevelop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  kdevelop: Depends: kdevplatform1-libs (>= 1.0.1) but it is not going to be installed
            Depends: libkdecore5 (>= 4:4.5.0b) but it is not installable
            ....other depends package
            Depends: libthreadweaver4 (>= 4:4.5.0b) but it is not installable
E: Broken packages

google 上的法子
1 改源,update ,再装过
 2 用新力得,
3 apt-get autoclean
都会类似 msg
system:ubuntu 10.4
其间无意有 upgrade 过,(但是前后都有出现这样的msg)
-- 
wishes mother
330.gif

JunLe Li

unread,
Mar 1, 2013, 12:37:32 PM3/1/13
to GZLUG
既然你要用到KDE的东西,为何不装Kubuntu呢?


--
330.gif

mother

unread,
Mar 3, 2013, 12:35:48 AM3/3/13
to gz...@googlegroups.com
 这个到是无所谓,用哪里个desktop, 但是这个问题还是 对研究debian  or ubuntu 的包管理有点价值吧
 
希望有这方面经验的xd  赐教,究竟是啥限制了kdevelop 依赖的 某个版本的安装,有啥法子可以追踪否,

--
wishes mother
330.gif
Reply all
Reply to author
Forward
0 new messages