Silverblue: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 1: Line 1:
Fedora Silverblue's immutable design.
Fedora Silverblue's immutable design.
=ostree=
==Remotes==
Add a remote
ostree remote add <REMOTE> <URL>
Remove a remote
ostree remote delete <REMOTE>
List configured remotes
ostree remote list
List remote contents
ostree remote refs <REMOTE>
==Basic Commands==
Update to latest
rpm-ostree upgrade
Get system status
rpm-ostree status
Find available updates
rpm-ostree upgrade --check
Switch to a different OS
rpm-ostree rebase <REMOTE>:<BRANCH>
Replace
rpm-ostree override remove nfs-utils-coreos --install nfs-utils
==pull secret==
oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' | jq .
==Layered Packages==
Uninstall a layered package
rpm-ostree uninstall <PACKAGE>
Install a layered package
rpm-ostree install <PACKAGE>
==Debugging and Rollback==
Remove the previous deployment
rpm-ostree cleanup --rollback
Download older commits
ostree pull --commit-metadata-only --depth=<n> <REMOTE> <BRANCH>
Make the previous deployment the default boot entry
rpm-ostree rollback
List downloaded commits
ostree log <REMOTE>:<BRANCH>
=make rpm available strait away=
=make rpm available strait away=
  rpm-ostree install --apply-live <rpm>
  rpm-ostree install --apply-live <rpm>
=remove rpm=
=remove rpm=
  rpm-ostree uninstall <rpm>
  rpm-ostree uninstall <rpm>

Revision as of 11:11, 3 May 2023

Fedora Silverblue's immutable design.

ostree

Remotes

Add a remote

ostree remote add <REMOTE> <URL>

Remove a remote

ostree remote delete <REMOTE>

List configured remotes

ostree remote list

List remote contents

ostree remote refs <REMOTE>

Basic Commands

Update to latest

rpm-ostree upgrade

Get system status

rpm-ostree status

Find available updates

rpm-ostree upgrade --check

Switch to a different OS

rpm-ostree rebase <REMOTE>:<BRANCH>

Replace

rpm-ostree override remove nfs-utils-coreos --install nfs-utils

pull secret

oc get secret/pull-secret -n openshift-config --template='Template:Index .data ".dockerconfigjson"' | jq .

Layered Packages

Uninstall a layered package

rpm-ostree uninstall <PACKAGE>

Install a layered package

rpm-ostree install <PACKAGE>

Debugging and Rollback

Remove the previous deployment

rpm-ostree cleanup --rollback

Download older commits

ostree pull --commit-metadata-only --depth=<n> <REMOTE> <BRANCH>

Make the previous deployment the default boot entry

rpm-ostree rollback

List downloaded commits

ostree log <REMOTE>:<BRANCH>


make rpm available strait away

rpm-ostree install --apply-live <rpm>

remove rpm

rpm-ostree uninstall <rpm>

Replace rpm

rpm-ostree override replace <path to package>

ostree-remote - Control remote repository configuration

Find suitable repository.

ostree remote refs fedora | grep silverblue | grep x86_64

Set repository. Switch os.

rpm-ostree rebase fedora:fedora/rawhide/x86_64/silverblue

Display the status of the currently running deployment

Installed rpm:s are defined as LayeredPackages

rpm-ostree status

pin a deployment so that you do not lose it

ostree admin pin 0

Unpin

ostree admin pin --unpin 0