Upgrading to r4.3
With the first release candidate out for QubesOS r4.3, I’ve built a template RPM to test Alpine Linux on this new version. You can already upgrade to this release.
In-place upgrade
- Upgrade your QubesOS to r4.3
- From within template, change release of repo in
/etc/apk/repositories from qubes-r4.2 to qubes-r4.3
apk update
apk upgrade -a
Note: the template should boot-up fine even without upgrading to r4.3 packages.
From scratch
You can reinstall from scratch by using the Alpine template RPM built for QubesOS r4.3.
First, we need to transfer to dom0 the template key. It is the same key as r4.2.
Within VM, download template key:
curl -JO https://ayakael.net/api/packages/forge/rpm/repository.key
On dom0, transfer and copy key to key store:
qvm-run -p <curl-vm> 'cat </path/to/downloaded/key ' > repository.key
sudo mv repository.key /etc/qubes/repo-templates/keys/RPM-GPG-KEY-ayakael-forge
For installation, you have two options.
Using qvm-template
1) Create repository definition
On dom0, create and/or edit /etc/qubes/repo-templates/ayakael-templates.repo to match the following (note change of r4.3 instead of r4.2 in baseurl if file already exists).
[ayakael-templates]
name=Ayakael templates
baseurl=https://ayakael.net/api/packages/forge/rpm/qubes/r4.3
enabled=1
gpgcheck=1
gpgkey = file:////etc/qubes/repo-templates/keys/RPM-GPG-KEY-ayakael-forge
2) Install template
qvm-template install alpine322
Manually
1) Download and transfer template RPM
On VM, download desired template RPM available in Packages section of the qubes-builder-alpine repo.
curl -JO https:<url/rpm>
On dom0, transfer RPM
qvm-run -p <curl-vm> 'cat </path/to/downloaded/rpm ' > qubes-template-alpine.rpm
2) Install template
qvm-template --keyring /etc/qubes/repo-templates/keys/RPM-GPG-KEY-forge-ayakael install $(pwd)/qubes-template-alpine.rpm