如何使用 Rolling-Rhino 設置 Ubuntu Rolling Release

在本教程中,我們將看到如何將您的日常 Ubuntu Linux 安裝更改為滾動發行版。 這意味著,您無需等待新的發行版發布,只要有最新的軟件包更新即可獲得。

Ubuntu 桌面首席開發人員 Martin Wimpress 創建了一個名為 滾犀牛. 它的目標是通過選擇並跟踪開發系列的更改/包,將 Ubuntu 每日構建映像轉換為“滾動發布”發行版。

使用此工具時需要記住一些事項,例如它無法檢測 PPA 或桌面元包並且沒有 GUI。

在本教程中,我們將使用名為 Ubuntu 20.10 (Groovy Gorilla) Daily Build 的 Ubuntu 桌面的最新每日版本。 您可以使用任何其他日常構建來使其滾動發布,其中包含我們稍後將使用的步驟。

什麼是滾動發布分發?

在軟件開發中,滾動發布、滾動更新或持續交付是頻繁向應用程序交付更新的概念。 這與使用軟件版本的標准或點發布開發模型形成對比,該模型使用必須在先前版本上重新安裝的軟件版本。 一個 example 這種不同之處在於 Ubuntu Linux 的多個版本與 Arch Linux 的單一、不斷更新的版本。

這個工具是為誰準備的?

Rolling Rhino 適用於 Ubuntu 開發人員和有經驗的 Ubuntu 用戶,他們希望安裝一次 Ubuntu 並通過自動跟踪後續系列來跟踪所有開發更新。

安裝 Daily Ubuntu Linux Build

首先,我們必須安裝每日 Ubuntu 映像。 安裝與任何其他 Ubuntu 版本相同。

我們可以從以下風格中選擇圖像:

Ubuntu 桌面每日構建
Kubuntu 每日構建
Lubuntu 每日構建
Ubuntu Budgie 每日構建
優麒麟每日構建
Ubuntu MATE 每日構建
Ubuntu Studio 每日構建
Xubuntu每日構建

下載 Rolling-Rhino

一旦 Ubuntu 每日鏡像安裝完成,我們將把 rollback-rhino git 存儲庫克隆到我們的​​本地目錄。 我們可以在我們喜歡的任何目錄中執行此操作,但為此 example,我們將自己定位在 /home 目錄中。

但在此之前,我們需要使用以下命令安裝 git:

$ sudo apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 362 not upgraded.
Need to get 5764 kB of archives.
After this operation, 41,2 MB of additional disk space will be used.
Do you want to continue? [Y/n]

安裝完成後,進入您的主目錄並鍵入以下命令:

$ git clone https://github.com/wimpysworld/rolling-rhino
Cloning into 'rolling-rhino'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 161 (delta 2), reused 4 (delta 0), pack-reused 155
Receiving objects: 100% (161/161), 249.96 KiB | 901.00 KiB/s, done.
Resolving deltas: 100% (85/85), done.

如我們所見,存儲庫的克隆成功。 我們還可以通過使用 ls 列出文件來檢查文件:

$ cd rolling-rhino/
$ ls
LICENSE logo.txt README.md rolling-rhino snap

我們可以看到下載的文件在rolling-rhino目錄下。 我們現在可以繼續進行滾動犀牛設置。

設置 Rolling-Rhino

現在我們位於 /home 中的滾動犀牛克隆目錄中。 設置rolling-rhino 剩下的唯一事情就是執行以下腳本:

$ sudo ./rolling-rhino
Rolling Rhino ?
[+] INFO: lsb_release detected.
[+] INFO: Ubuntu detected.
[+] INFO: Ubuntu Groovy Gorilla (development branch) detected.
[+] INFO: Detected ubuntu-desktop.
[+] INFO: No PPAs detected, this is good.
[+] INFO: All checks passed.
Are you sure you want to start tracking the devel series? [y/N]

我們需要等待腳本完成(這將需要一些時間……)然後,我們將收到成功消息和一個漂亮的 ASCI 藝術作品:

0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 253 kB disk space will be freed.
(Reading database ... 144631 files and directories currently installed.)
Removing libfprint-2-tod1:amd64 (1:1.90.2+tod1-0ubuntu1) ...
Removing libsane:amd64 (1.0.30-1~experimental2ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu10) ...
[+] INFO: Your Rolling Rhino is ready.

輸出rolling-rhino

結論

我們已成功將每日 Ubuntu Linux 構建映像轉換為滾動發布。 您可以使用任何其他 Ubuntu 每日構建映像執行此操作。