How To Install mkosi on Fedora 36
Introduction
In this tutorial we learn how to install mkosi on Fedora 36.
What is mkosi
A fancy wrapper around “dnf –installroot”, “debootstrap” and “pacstrap”, that may generate disk images with a number of bells and whistles. Generated images are tailed to the purose. This means GPT disk labels are used by default, though MBR disk labels are supported, and only systemd based images may be generated.
We can use yum or dnf to install mkosi on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mkosi.
Install mkosi on Fedora 36 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install mkosi using dnf by running the following command:
sudo dnf -y install mkosi
Install mkosi on Fedora 36 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install mkosi using yum by running the following command:
sudo yum -y install mkosi
How To Uninstall mkosi on Fedora 36
To uninstall only the mkosi package we can use the following command:
sudo dnf remove mkosi
mkosi Package Contents on Fedora 36
/usr/bin/mkosi
/usr/lib/python3.10/site-packages/mkosi
/usr/lib/python3.10/site-packages/mkosi-12-py3.10.egg-info
/usr/lib/python3.10/site-packages/mkosi-12-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/mkosi-12-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/mkosi-12-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/mkosi-12-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/mkosi/__init__.py
/usr/lib/python3.10/site-packages/mkosi/__main__.py
/usr/lib/python3.10/site-packages/mkosi/__pycache__
/usr/lib/python3.10/site-packages/mkosi/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/backend.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/backend.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/gentoo.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/gentoo.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/manifest.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/__pycache__/manifest.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/backend.py
/usr/lib/python3.10/site-packages/mkosi/gentoo.py
/usr/lib/python3.10/site-packages/mkosi/manifest.py
/usr/lib/python3.10/site-packages/mkosi/resources
/usr/lib/python3.10/site-packages/mkosi/resources/__init__.py
/usr/lib/python3.10/site-packages/mkosi/resources/__pycache__
/usr/lib/python3.10/site-packages/mkosi/resources/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/resources/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/resources/arch
/usr/lib/python3.10/site-packages/mkosi/resources/arch/60_kernel_remove.hook
/usr/lib/python3.10/site-packages/mkosi/resources/arch/60_vmlinuz_remove.hook
/usr/lib/python3.10/site-packages/mkosi/resources/arch/90_kernel_add.hook
/usr/lib/python3.10/site-packages/mkosi/resources/arch/90_vmlinuz_add.hook
/usr/lib/python3.10/site-packages/mkosi/resources/arch/91_bootctl_update.hook
/usr/lib/python3.10/site-packages/mkosi/resources/arch/__init__.py
/usr/lib/python3.10/site-packages/mkosi/resources/arch/__pycache__
/usr/lib/python3.10/site-packages/mkosi/resources/arch/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/mkosi/resources/arch/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/mkosi/resources/arch/kernel_add.sh
/usr/lib/python3.10/site-packages/mkosi/resources/arch/kernel_remove.sh
/usr/lib/python3.10/site-packages/mkosi/resources/console_getty_autologin.conf
/usr/lib/python3.10/site-packages/mkosi/resources/dracut_unified_kernel_install.sh
/usr/lib/python3.10/site-packages/mkosi/resources/getty_autologin.conf
/usr/lib/python3.10/site-packages/mkosi/resources/serial_getty_autologin.conf
/usr/share/doc/mkosi
/usr/share/doc/mkosi/README.md
/usr/share/licenses/mkosi
/usr/share/licenses/mkosi/LICENSE
/usr/share/man/man1/mkosi.1.gz
References
Summary
In this tutorial we learn how to install mkosi on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).