mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-10-01 01:25:40 -04:00
2b53548fea
Initial version
45 lines
1.5 KiB
Markdown
45 lines
1.5 KiB
Markdown
---
|
||
layout: wiki
|
||
title: FedoraTemplateUpgrade
|
||
permalink: /wiki/FedoraTemplateUpgrade/
|
||
---
|
||
|
||
Upgrade of Fedora template
|
||
==========================
|
||
|
||
This instruction in simplified version of [official Fedora instruction](https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum). Note that only "yum" method will work in Qubes template VM (if you are curious why: mostly because template VM does not have own bootloader).
|
||
|
||
Upgrading Fedora 18 to Fedora 20
|
||
--------------------------------
|
||
|
||
Commands to run in dom0 console (you can do the same from Qubes Manager):
|
||
|
||
``` {.wiki}
|
||
qvm-clone fedora-18-x64 fedora-20-x64
|
||
qvm-run -a fedora-20-x64
|
||
```
|
||
|
||
Commands to run in new fedora-20-x64 template:
|
||
|
||
``` {.wiki}
|
||
sudo yum --releasever=20 distro-sync
|
||
poweroff
|
||
```
|
||
|
||
If you have installed a lot of software in your template, it may happen that you don't have enough disk space for upgrade. Yum will tell you this just after confirming the operation (before it change anything to your system). In that case you need to provide some "external" place for yum cache (uses about 2GB during upgrade). For example attach virtual disk stored in some file. Prepare the file in dom0:
|
||
|
||
``` {.wiki}
|
||
truncate -s 5GB /var/tmp/template-upgrade-cache.img
|
||
qvm-block -A fedora-20-x64 dom0:/var/tmp/template-upgrade-cache.img
|
||
```
|
||
|
||
Then use it in template:
|
||
|
||
``` {.wiki}
|
||
sudo mkfs.ext4 /dev/xvdi
|
||
sudo mount /dev/xvdi /mnt/removable
|
||
sudo yum --releasever=20 --setopt=cachedir=/mnt/removable distro-sync
|
||
```
|
||
|
||
After upgrade is finished, you can remove /var/tmp/template-upgrade-cache.img file.
|