如何在 Silverblue 上变基到 Fedora Linux 37
Silverblue Fedora
![](/data/attachment/album/202211/26/095658eb3ldbbfxexfvf3v.jpg)


Fedora Silverblue 是 [基于 Fedora Linux 构建的桌面操作系统](https://docs.fedoraproject.org/en-US/fedora-silverblue/)。它非常适合日常使用、开发和基于容器的工作流程。它提供了 [众多优势](https://fedoramagazine.org/give-fedora-silverblue-a-test-drive/)，例如能够在出现任何问题时回滚。如果你想在 Fedora Silverblue 系统上更新或变基到 Fedora Linux 37（这些说明与 Fedora Kinoite 类似），本文将告诉你如何操作。它不仅向你展示了该做什么，而且还向你展示了在发生不可预见的事情时如何恢复。


在实际对 Fedora Linux 37 进行变基之前，你应该应用任何待定的更新。在终端中输入以下内容：



```
$ rpm-ostree update

```

或通过 GNOME <ruby> 软件 <rt>  Software </rt></ruby> 应用安装更新并重新启动。


### 使用 GNOME 软件应用变基


在更新页面上，GNOME <ruby> 软件 <rt>  Software </rt></ruby> 应用向你显示有新版本的 Fedora Linux 可用。


![Fedora 37 更新可用](/data/attachment/album/202211/26/095659ro8doz2lj8pp92zj.png)


你需要做的第一件事是下载新镜像，因此请点击“<ruby> 下载 <rt>  Download </rt></ruby>”按钮。这需要一些时间。完成后，你将看到更新已准备好安装。


![Fedora 37 更新准备好安装](/data/attachment/album/202211/26/095700u9kzo0mkw88x7r89.png)


点击 “<ruby> 重启并更新 <rt>  Restart &amp; Upgrade </rt></ruby>” 按钮。此步骤只需要几分钟，最后计算机将重启。重启后，你将获得全新的 Fedora Linux 37 版本。很简单，不是吗？


### 使用终端变基


如果你喜欢在终端中完成所有操作，那么本指南的这一部分适合你。


使用终端变基到 Fedora Linux 37 很容易。首先，检查 37 分支是否可用：



```
$ ostree remote refs fedora

```

你应该在输出中看到以下内容：



```
fedora:fedora/37/x86_64/silverblue

```

如果你想置顶当前部署（该部署将作为 GRUB 中的选项保留，直到你删除它），你可以通过运行以下命令来完成：



```
# 0 is entry position in rpm-ostree status
$ sudo ostree admin pin 0

```

要删除置顶部署，请使用以下命令：



```
# 2 is entry position in rpm-ostree status
$ sudo ostree admin pin --unpin 2

```

其中 2 是 rpm-ostree 状态中的位置。


接下来，将你的系统重新设置为 Fedora Linux 37 分支。



```
$ rpm-ostree rebase fedora:fedora/37/x86_64/silverblue

```

最后，要做的最后一件事是重新启动计算机并引导至 Fedora Linux 37。


### 如何回滚


如果发生任何不好的事情，例如，如果你根本无法启动到 Fedora Linux 37，这很容易回滚。在引导时选择 GRUB 菜单中的上一个条目（如果你没有看到它，请尝试在引导过程中按 `ESC`），你的系统将以切换到 Fedora Linux 37 之前的先前状态启动。要使此更改永久生效，请使用以下命令：



```
$ rpm-ostree rollback

```

就是这样。现在你知道如何将 Fedora Silverblue 变基到 Fedora Linux 37 并回滚。那么为什么不在今天做呢？




---


via: <https://fedoramagazine.org/how-to-rebase-to-fedora-linux-37-on-silverblue/>


作者：[Michal Konečný](https://fedoramagazine.org/author/zlopez/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
Fedora Silverblue is [an operating system for your desktop built](https://docs.fedoraproject.org/en-US/fedora-silverblue/)[ on Fedora Linux](https://docs.fedoraproject.org/en-US/fedora-silverblue/). It’s excellent for daily use, development, and container-based workflows. It offers [numerous advantages](https://fedoramagazine.org/give-fedora-silverblue-a-test-drive/) such as being able to roll back in case of any problems. If you want to update or rebase to Fedora Linux 37 on your Fedora Silverblue system (these instructions are similar for Fedora Kinoite), this article tells you how. It not only shows you what to do, but also how to revert things if something unforeseen happens.

Prior to actually doing the rebase to Fedora Linux 37, you should apply any pending updates. Enter the following in the terminal:

$ rpm-ostree update

or install updates through GNOME Software and reboot.

## Rebasing using GNOME Software

GNOME Software shows you that there is new version of Fedora Linux available on the Updates screen.

![](https://fedoramagazine.org/wp-content/uploads/2022/11/Screenshot-from-2022-11-15-11-11-32-1024x714.png)

First thing you need to do is download the new image, so click on the *Download* button. This will take some time. When it’s done you will see that the update is ready to install.

![](https://fedoramagazine.org/wp-content/uploads/2022/11/Screenshot-from-2022-11-15-11-12-22-1024x714.png)

Click on the *Restart & Upgrade* button. This step will take only a few moments and the computer will be restarted at the end. After restart you will end up in new and shiny release of Fedora Linux 37. Easy, isn’t it?

## Rebasing using terminal

If you prefer to do everything in a terminal, then this part of the guide is for you.

Rebasing to Fedora Linux 37 using the terminal is easy. First, check if the 37 branch is available:

$ ostree remote refs fedora

You should see the following in the output:

fedora:fedora/37/x86_64/silverblue

If you want to pin the current deployment (this deployment will stay as option in GRUB until you remove it), you can do it by running:

# 0 is entry position in rpm-ostree status $ sudo ostree admin pin 0

To remove the pinned deployment use the following command:

# 2 is entry position in rpm-ostree status $ sudo ostree admin pin --unpin 2

where 2 is the position in the `rpm-ostree status`.

Next, rebase your system to the Fedora Linux 37 branch.

$ rpm-ostree rebase fedora:fedora/37/x86_64/silverblue

Finally, the last thing to do is restart your computer and boot to Fedora Linux 37.

## How to roll back

If anything bad happens—for instance, if you can’t boot to Fedora Linux 37 at all—it’s easy to go back. Pick the previous entry in the GRUB menu at boot (if you don’t see it, try to press ESC during boot), and your system will start in its previous state before switching to Fedora Linux 37. To make this change permanent, use the following command:

$ rpm-ostree rollback

That’s it. Now you know how to rebase Fedora Silverblue to Fedora Linux 37 and roll back. So why not do it today?

## David

Great news, thank you very much.

## Ava

The caption tool is helpful in every situation. I am using for video to text transcribing. https://audext.com/

## Alex

This service is literally 100 times more expensive than renting a GPU on Runpod/Vast/LambdaLabs and running Whisper-large on there (I recently had to transcribe 120 hours of audio, it cost me $6 to do it using whisper-large on Lambda, this service would’ve cost $600 for automatic). Or infinitely times more expensive if you already have an Nvidia GPU

## Silverblue user

If you get an error about rpm fusion type “sudo rpm-ostree update –uninstall rpmfusion-free-release –uninstall rpmfusion-nonfree-release –install rpmfusion-free-release –install rpmfusion-nonfree-release” then type “sudo rpm-ostree rebase fedora:fedora/37/x86_64/silverblue” then it should work fine

## fred flintstone

Thanks. I ran into that. Unfortunately, I already gave up and went to fedora. I like the idea of silverblue, but im not really sure why i need it. I thought its more secure at first, but i read containers werent made w that in mind. BTW: The title led me to believe i could switch fedora to silverblue

## SjoerdB93

Just in case someone stumbles upon this section in the future. I just want to add that you need to restart your computer after that command before you can rebase.

Also, you only need to do that command once. Then it shouldn’t complain anymore about

anyfuture release either. So even if you’ve already upgraded it’s a good idea to do so.## Mr Grandpa Leslie Satenstein, Montreal,Que

A very nice article, thank you. I do appreciate what you produced and will be trying todo the same install/upgrade.

By the way, I have trouble with the opening phrase built-on Fedora. Is it on Fedora or onto Fedora? Or did you mean “using as a base” Fedora ?

I am a grandpa with old grammer rules that were drilled into my writing university term papers. You are probably OK with the newer English rules that are employed today.

## Gregory Bartholomew

Just my 2¢, but I think “on” is OK if Fedora Linux is being thought of as a “platform“. It’s layers upon layers. Fedora Linux runs “on” 64-bit architectures. Applications, in turn, run “on” the Fedora Linux platform. But I’d agree that “built-on” doesn’t sound quite right. That sounds as if Fedora Silverblue was “compiled” on Fedora Linux. I think they probably do mean “based on”.

## Mr Grandpa Leslie Satenstein, Montreal,Que

Hi Greg,

I am from the old school, the really old school. We distinguished between

on and onto, in and into, and strict uses of from — we could never end a sentence with from. One can choose from a or b. Rarely one has a or b, are two options to choose from.

I am well into my 80’s and back then I had to follow my public school English teacher’s rules. They seem to still make sense today.

I am not gonna continue as I suppose the old ways will die away with my generation (grin)

## Gregory Bartholomew

LOL, that “gonna” and “wanna” stuff drives me up the wall too. 🙂 “nowadays” gets me too. Sometimes I wonder if I’ve slipped into a parallel dimension. I’m sure “nowa” wasn’t a word. But I looked it up and apparently it’s been around for a while. 🤷

## Mr Grandpa Leslie Satenstein, Montreal,Que

Gregory, You could figure out my email address from my name. I presume I should do likewise for your name.

I am currently watching a Silverblue presentation on YouTube by DJ Ware.

https://www.youtube.com/watch?v=Fv9vqWBC8uI

## Duck Life

Excellent news, many thanks.