Install yum
from AUR
$ yaourt -Sy yum
Add bootstrap repos to /etc/yum.d/boot.repo
[fedora]
name=fedora
baseurl=https://archives.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/
enabled=1
[updates]
name=updates
baseurl=https://archives.fedoraproject.org/pub/fedora/linux/updates/23/x86_64/
enabled=1
Optionally if using btrfs
:
# btrfs subvolume create /var/lib/machines/fedora
Bootstrap:
# yum --installroot=/var/lib/machines/fedora install systemd passwd dnf fedora-release NetworkManager
Set root password:
# systemd-nspawn -M fedora
# passwd
...
C-]]]
Start and login into the container:
# machinectl start fedora
# machinectl login fedora
# dnf update
...
I first tried it with
dnf
, which is in AUR, instead ofyum
, but for some reason, when bootstrapping it can't finddnf
andfedora-release
packages.