要怎么理解 update 和 upgrade 这两个词的区别

2021-02-07 10:50:07 +08:00
 DinoStray

好像大多软件升级 update 就是更新下数据, upgrade 是更新软件

11725 次点击
所在节点    程序员
69 条回复
Leonard
2021-02-07 10:51:22 +08:00
字面意思理解,update 是更新,upgrade 是升级
yazoox
2021-02-07 10:55:00 +08:00
@Leonard
更新 vs 升级 有啥区别?
小更新,大升级?还是 大更新,小升级,貌似都可以呢......
chenyu8674
2021-02-07 10:58:24 +08:00
新学期了,你蹲班了 -> 你 update 但没 upgrade
felixcode
2021-02-07 10:58:38 +08:00
update 可以只同步最新的版本信息,或者杀毒软件的病毒库这样的数据更新。
upgrade 进行升级替换。
bugDev
2021-02-07 10:58:41 +08:00
字面意思看 update 是更新到最新的时间 ( date)
upgrade 是更新一个等级 (grade)
eason1874
2021-02-07 10:59:19 +08:00
我的理解:

upgrade 升级,范围小一些,特指功能性升级,版本级别的更新,可能会变更 API 。

update 更新,范围比较大,可以代替 upgrade,如果一起用 update 就特指除 upgrade 以外的更新,比如打补丁、安全性更新、细节调整等。
whusnoopy
2021-02-07 11:00:29 +08:00
用过 apt 或 brew 没?如果用过的话就比较好理解

update 是更新包管理器的数据,知道目前不同包提供哪些版本
upgrade 是用包管理器更新不同包到指定版本(一般是最新版)

某些软件的更新就是你说的那样,update 是更新 data (数据),upgrade 是更新 code (本体)
haimall
2021-02-07 11:01:00 +08:00
update =你多看了几本书
upgrade = 升级当爸爸了
Leonard
2021-02-07 11:03:16 +08:00
@yazoox #2 举个例子,你的 iPhone 从 Xs 换到了 SE2,就是手机更新了,但是没有升级
Mithril
2021-02-07 11:04:10 +08:00
update 就是 up to date,保持最新状态
upgrade 是升级。
windows update 就是更新一下系统,upgrade 就是升级到更高版本,比如 home 升级到 pro 这类的。
但实际使用中这俩经常混着用。。。
hello2060
2021-02-07 11:16:40 +08:00
字面看更新是一个动作,
升级是更新导致的结果嘛

升级肯定是更新导致,但更新不一定导致升级是不是
CEBBCAT
2021-02-07 11:24:22 +08:00
如果按照 apt 来理解:
update -> git fetch
upgrade -> git pull
cmdOptionKana
2021-02-07 11:25:30 +08:00
在 upgrade 之前,必须先 update 。

update 通常是指数据同步到最新状态,但 update 可以只获取数据,却不使用这些数据。

而 upgrade 则是使用新数据执行一些操作,使系统发生实质性的变化。

举个例子:iPhone 升级系统前必须先下载,这一步是 update, 但仅下载你可以不升级,而当你真的执行升级时就是 upgrade 了。

使用 debian 或 ubuntu 的人对这点非常熟悉。
cmdOptionKana
2021-02-07 11:27:25 +08:00
还要注意的是,语言毕竟是很灵活的东西,在某些语境下 update 可以等同于 upgrade, 不需要太钻牛角尖。
DrakeXiang
2021-02-07 11:34:53 +08:00
update 一般指小的更新,对应到 semver 后两位。upgrade 一般就比较大,你可以看到从免费版升级到专业版都是用 upgrade
preach
2021-02-07 11:39:00 +08:00
up to date 更新版本

up to grade 替换升级
Xymmh
2021-02-07 11:39:00 +08:00
——update [ʌp'deit, 'ʌpdeit]
n.
news that updates your information
v.
modernize or bring up to date
"We updated the kitchen in the old house"
bring up to date; supply with recent information
bring to the latest state of technology

——upgrade ['ʌpɡreid, ʌp'ɡreid]
n.
an upward slope or grade (as in a road)
同义词: ascent | acclivity | rise | raise | climb
software that provides better performance than an earlier version did
a reservation that is improved
"I got an upgrade to first class when coach class was full"
the property possessed by a slope or surface that rises
同义词: rise | rising slope
hardware that provides better performance than an earlier version did
the act of improving something (especially machinery) by raising it to a higher grade (as by adding or replacing components)
"the power plant received a new upgrade"
v.
rate higher; raise in value or esteem
to improve what was old or outdated
"I've upgraded my computer so I can run better software" , "The company upgraded their personnel"
give a promotion to or assign to a higher position
同义词: promote | advance | kick upstairs | raise | elevate
get better travel conditions
"I upgraded to First Class when Coach Class was overbooked"
give better travel conditions to
"The airline upgraded me when I arrived late and Coach Class was full"


注意 update 中的“bring to the latest state of technology“,表明 update 是一种‘往新的’时间状态;
而 upgrade 释义中的”software that provides better performance than an earlier version did“,表明 upgrade 是一种‘更好的’代际状态。
Darkside
2021-02-07 11:40:00 +08:00
Stack Exchange 上已经有人讨论过了,https://english.stackexchange.com/questions/13353/are-there-any-differences-between-update-and-upgrade

很大程度上取决于上下文
ethanlu
2021-02-07 11:48:51 +08:00
你的电脑 upgrade 到了最 update 的配置
caixiaomao
2021-02-07 11:53:14 +08:00
更新 升级

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/751983

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX