translated

This commit is contained in:
geekpi 2017-12-28 08:48:51 +08:00
parent 002d0ada16
commit 26e4e914a8
2 changed files with 109 additions and 111 deletions

View File

@ -1,111 +0,0 @@
translating---geekpi
Easily Upgrade Ubuntu to a Newer Version with This Single Command
======
[zzupdate][1] is an open source command line utility that makes the task of upgrading Ubuntu Desktop and Server to newer versions a tad bit easier by combining several update commands into one single command.
Upgrading an Ubuntu system to a newer release is not a herculean task. Either with the GUI or with a couple of commands, you can easily upgrade your system to the latest release.
On the other hand, zzupdate written by Gianluigi 'Zane' Zanettini handles clean, update, autoremove, version upgrade and composer self-update for your Ubuntu system with just a single command.
It cleans up the local cache, updates available package information, and then perform a distribution upgrade. In the next step, it updates the Composer and removes the unused packages.
The script must run as root user.
### Installing zzupdate to upgrade Ubuntu to a newer version
![Upgrade Ubuntu to a newer version with a single command][2]
![Upgrade Ubuntu to a newer version with a single command][3]
To install zzupdate, execute the below command in a Terminal.
```
curl -s https://raw.githubusercontent.com/TurboLabIt/zzupdate/master/setup.sh | sudo sh
```
And then copy the provided sample configuration file to zzupdate.conf and set your preferences.
```
sudo cp /usr/local/turbolab.it/zzupdate/zzupdate.default.conf /etc/turbolab.it/zzupdate.conf
```
Once you have everything, just use the following command and it will start upgrading your Ubuntu system to a newer version (if there is any).
`sudo zzupdate`
Note that zzupdate upgrades the system to the next available version in case of a normal release. However, when you are running Ubuntu 16.04 LTS, it tries to search for the next long-term support version only and not the latest version available.
If you want to move out of the LTS release and upgrade to the latest release, you will have change some options.
For Ubuntu desktop, open **Software & Updates** and under **Updates** tab and change Notify me of a new Ubuntu version to " **For any new version** ".
![Software Updater in Ubuntu][2]
![Software Updater in Ubuntu][4]
For Ubuntu server, edit the release-upgrades file.
```
vi /etc/update-manager/release-upgrades
Prompt=normal
```
### Configuring zzupdate [optional]
zzupdate options to configure
```
REBOOT=1
```
If this value is 1, a system restart is performed after an upgrade.
```
REBOOT_TIMEOUT=15
```
This sets up the reboot timeout to 900 seconds as some hardware takes much longer to reboot than others.
```
VERSION_UPGRADE=1
```
Executes version progression if an upgrade is available.
```
VERSION_UPGRADE_SILENT=0
```
Version progression occurs automatically.
```
COMPOSER_UPGRADE=1
```
Value '1' will automatically upgrade the composer.
```
SWITCH_PROMPT_TO_NORMAL=0
```
This features switches the Ubuntu Version updated to normal i.e. if you have an LTS release running, zzupdate won't upgrade it to Ubuntu 17.10 if its set to 0. It will search for an LTS version only. In contrast, value 1 searches for the latest release whether you are running an LTS or a normal release.
Once done, all you have to do is run in console to run a complete update of your Ubuntu system
```
sudo zzupdate
```
### Final Words
Though the upgrade process for Ubuntu is in itself an easy one, zzupdate reduces it to mere one command. No coding knowledge is necessary and the process is complete config file driven. I personally found itself a good tool to update several Ubuntu systems without the need of taking care of different things separately.
Are you willing to give it a try?
--------------------------------------------------------------------------------
via: https://itsfoss.com/zzupdate-upgrade-ubuntu/
作者:[Ambarish Kumar;Abhishek Prakash][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://itsfoss.com
[1]:https://github.com/TurboLabIt/zzupdate
[2]:data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=
[3]:https://itsfoss.com/wp-content/uploads/2017/11/upgrade-ubuntu-single-command-featured-800x450.jpg
[4]:https://itsfoss.com/wp-content/uploads/2017/11/software-update-any-new-version-800x378.jpeg

View File

@ -0,0 +1,109 @@
使用一个命令轻松升级 Ubuntu 到较新的版本
======
[zzupdate][1] 是一个开源的命令行程序,通过将几个更新命令组合到一个命令中,使得将 Ubuntu 桌面和服务器版本升级到更新版本的任务变得容易一些。
将 Ubuntu 系统升级到更新的版本并不是一项艰巨的任务。无论是使用 GUI 还是使用几个命令,都可以轻松地将系统升级到最新版本。
另一方面Gianluigi Zane Zanettini 写的 zzupdate 只需一个命令就可以在 Ubuntu 中清理、更新、自动删除、版本升级、自我更新 composer。
它清理本地缓存,更新可用的软件包信息,然后执行发行版升级。在下一步中,它会更新 Composer 并删除未使用的软件包。
脚本必须以root用户身份运行。
### 安装 zzupdate 将 Ubuntu 升级到更新的版本
![Upgrade Ubuntu to a newer version with a single command][2]
![Upgrade Ubuntu to a newer version with a single command][3]
要安装 zzupdate请在终端中执行以下命令。
```
curl -s https://raw.githubusercontent.com/TurboLabIt/zzupdate/master/setup.sh | sudo sh
```
然后将提供的示例配置文件复制到 zzupdate.conf 并设置你的首选项。
```
sudo cp /usr/local/turbolab.it/zzupdate/zzupdate.default.conf /etc/turbolab.it/zzupdate.conf
```
完成后,只要使用下面的命令,它就会开始升级你的 Ubuntu 系统到一个更新的版本(如果有的话)。
`sudo zzupdate`
请注意在普通版本下zzupdate 会将系统升级到下一个可用的版本。但是,当你运行 Ubuntu 16.04 LTS 时,它将尝试仅搜索下一个长期支持版本,而不是可用的最新版本。
如果你想退出 LTS 版本并升级到最新版本,你将需要更改一些选项。
对于 Ubuntu 桌面,打开 **软件和更新** 和下面 **更新** 选项卡,并更改通知我新的 Ubuntu 版本选项为 “**对于任何新版本**”。
![Software Updater in Ubuntu][2]
![Software Updater in Ubuntu][4]
对于 Ubuntu 服务版,编辑版本升级文件。
```
vi /etc/update-manager/release-upgrades
Prompt=normal
```
### 配置 zzupdate [可选]
zzupdate 要配置的选项
```
REBOOT=1
```
如果值为 1升级后系统将重启。
```
REBOOT_TIMEOUT=15
```
将重启超时设置为 900 秒,因为某些硬件比其他硬件重启需要更长的时间。
```
VERSION_UPGRADE=1
```
如果升级可用,则执行版本升级。
```
VERSION_UPGRADE_SILENT=0
```
自动显示版本进度
```
COMPOSER_UPGRADE=1
```
值为 “1” 会自动升级 composer。
```
SWITCH_PROMPT_TO_NORMAL=0
```
此功能将 Ubuntu 版本更新为普通版本,即如果你运行着 LTS 发行版zzupdate 将不会将其升级到 Ubuntu 17.10(如果其设置为 0。它将仅搜索 LTS 版本。相比之下,无论你运行着 LTS 或者普通版“1” 都将搜索最新版本。
完成后,你要做的就是在控制台中运行一个完整的 Ubuntu 系统更新。
```
sudo zzupdate
```
### 最后的话
尽管 Ubuntu 的升级过程本身就很简单,但是 zzupdate 将它简化为一个命令。不需要编码知识,这个过程完全是配置文件驱动。我个人发现这是一个很好的更新几个 Ubuntu 系统的工具,而无需单独关心不同的事情。
你愿意试试吗?
--------------------------------------------------------------------------------
via: https://itsfoss.com/zzupdate-upgrade-ubuntu/
作者:[Ambarish Kumar;Abhishek Prakash][a]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://itsfoss.com
[1]:https://github.com/TurboLabIt/zzupdate
[2]:data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=
[3]:https://itsfoss.com/wp-content/uploads/2017/11/upgrade-ubuntu-single-command-featured-800x450.jpg
[4]:https://itsfoss.com/wp-content/uploads/2017/11/software-update-any-new-version-800x378.jpeg