English Chinese (Simplified)
You can also see the RPM changelog by adding the `-c` option like so: `rpm-ostree db diff -c` 你也可以通过添加 `-c` 参数查看 RPM 的变更日志:`rpm-ostree db diff -c`
If you want to see which packages were updated between two specific commits: 如果你需要查看两个特定提交之间哪些软件包被升级了:
find out which two commits you want to compare by issuing: 找到你需要比较的两个提交:
$ ostree log <ref>
$ ostree log <ref>
you can now compare the two commits by issuing: 接下来就可以进行对比了:
$ rpm-ostree db diff <commit x> <commit y>
$ rpm-ostree db diff <commit x> <commit y>
How can I check the version number of an installed package? 如何查看已安装软件包的版本号?
You can simply use: 只需要执行:
$ rpm -q <package>
$ rpm -q <package>
How can I check if an `rpm` software package is available in the repository? 我怎样知道软件源里面是否有我需要的包?
At this point in time, there is no `rpm` package search function built into `rpm-ostree`. However, you can use `toolbox` with the following command: 目前 `rpm-ostree` 并没有内建 RPM 软件包搜索功能。然而你可以使用 `toolbox` 完成搜索:
$ toolbox run dnf search <package>
$ toolbox run dnf search <package>
The assumption is that you have already created a toolbox matching the version of your Fedora Silverblue installation. 当然这样做的前提是你的 Fedora Silverblue 系统中已经安装了 Toolbox。
How can I downgrade my system's kernel? 如何降级系统内核?
If, for whatever reason, you need to downgrade the kernel, you can do so by following these steps: 无论是因为什么原因,如果你希望降级内核:
For the version you need to downgrade, download `<kernel>`, `<kernel-core>`, `<kernel-modules>` and `<kernel-modules-extra>` from https://koji.fedoraproject.org/koji/packageinfo?packageID=8[Koji]. 从 https://koji.fedoraproject.org/koji/packageinfo?packageID=8[Koji] 找到目标内核版本对应的 `<kernel>`、`<kernel-core>`、`<kernel-modules>` 以及 `<kernel-modules-extra>`。
Install the packages downloaded on the previous step by issuing: 安装上一步中下载下来的软件包:
$ rpm-ostree override replace <kernel> <kernel-core> <kernel-modules> <kernel-modules-extra>
$ rpm-ostree override replace <kernel> <kernel-core> <kernel-modules> <kernel-modules-extra>
Reboot the system to apply the changes. 重启系统使改动生效。
How can I upgrade my system to the next major version (for instance: rawhide or an upcoming Fedora release branch), while keeping my current deployment? 如何在保留当前部署的同时,将我的系统升级到下一个主要版本(例如下一个 Fedora 稳定分支或 Rawhide)?