如何更新你的Ubuntu服务器包

57 阅读1分钟

我有几个基于Ubuntu的VPS,我在日历上有一个提醒,让我不时地登录并更新软件包,跟上安全修复的步伐。

以下是我使用的顺序(这主要是为下次我忘记时给自己的一个提示)

以root身份连接到服务器,然后你运行。

```` apt-get update

to get the packages index updates.

Then run:

apt-get升级

to actually update the packages.

Then, if needed (depends on the kind of packages that needed an update), reboot the system:

重新启动``````。