How To Install systemd-container on Fedora 36

In this tutorial we learn how to install systemd-container in Fedora 36. systemd-container is Tools for containers and VMs

Introduction

In this tutorial we learn how to install systemd-container on Fedora 36.

What is systemd-container

Systemd tools to spawn and manage containers and virtual machines. This package contains systemd-nspawn, machinectl, systemd-machined, and systemd-importd.

We can use yum or dnf to install systemd-container on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install systemd-container.

Install systemd-container 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 systemd-container using dnf by running the following command:

sudo dnf -y install systemd-container

Install systemd-container 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 systemd-container using yum by running the following command:

sudo yum -y install systemd-container

How To Uninstall systemd-container on Fedora 36

To uninstall only the systemd-container package we can use the following command:

sudo dnf remove systemd-container

systemd-container Package Contents on Fedora 36

/usr/bin/machinectl
/usr/bin/systemd-nspawn
/usr/lib/.build-id
/usr/lib/.build-id/22/81b623de8cd24f126c42092e627ef3a84a2e9e
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/ee7d67a60a83ff62604aa86c60fcff3c759e83
/usr/lib/.build-id/6e/4e756b226c355ce927e7839afe1afdf4be235d
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/196216923ca209f57b7368ef04b07b022df1d0
/usr/lib/.build-id/74
/usr/lib/.build-id/74/11e3ca26c3cdb7549ef86cc3cba8992e4f7c6e
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/dcef54651f1e0dd5d7c044088bc3540783d02e
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/7833ea05e7f9a559c1de5c619cac13255bec07
/usr/lib/.build-id/f9/c5c3ad3a6bdcfda4d023dff58242f744b1aa45
/usr/lib/libnss_mymachines.so.2
/usr/lib/systemd/import-pubring.gpg
/usr/lib/systemd/system/dbus-org.freedesktop.import1.service
/usr/lib/systemd/system/dbus-org.freedesktop.machine1.service
/usr/lib/systemd/system/machine.slice
/usr/lib/systemd/system/machines.target
/usr/lib/systemd/system/machines.target.wants
/usr/lib/systemd/system/machines.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/remote-fs.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/systemd-importd.service
/usr/lib/systemd/system/systemd-machined.service
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/var-lib-machines.mount
/usr/lib/systemd/systemd-import
/usr/lib/systemd/systemd-import-fs
/usr/lib/systemd/systemd-importd
/usr/lib/systemd/systemd-machined
/usr/lib/systemd/systemd-pull
/usr/lib/tmpfiles.d/systemd-nspawn.conf
/usr/share/bash-completion/completions/machinectl
/usr/share/bash-completion/completions/systemd-nspawn
/usr/share/dbus-1/interfaces/org.freedesktop.import1.Manager.xml
/usr/share/dbus-1/interfaces/org.freedesktop.import1.Transfer.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Image.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Machine.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Manager.xml
/usr/share/dbus-1/system-services/org.freedesktop.import1.service
/usr/share/dbus-1/system-services/org.freedesktop.machine1.service
/usr/share/dbus-1/system.d/org.freedesktop.import1.conf
/usr/share/dbus-1/system.d/org.freedesktop.machine1.conf
/usr/share/man/man1/machinectl.1.gz
/usr/share/man/man1/systemd-nspawn.1.gz
/usr/share/man/man5/org.freedesktop.import1.5.gz
/usr/share/man/man5/org.freedesktop.machine1.5.gz
/usr/share/man/man8/libnss_mymachines.so.2.8.gz
/usr/share/man/man8/nss-mymachines.8.gz
/usr/share/man/man8/systemd-importd.8.gz
/usr/share/man/man8/systemd-importd.service.8.gz
/usr/share/man/man8/systemd-machined.8.gz
/usr/share/man/man8/systemd-machined.service.8.gz
/usr/share/polkit-1/actions/org.freedesktop.import1.policy
/usr/share/polkit-1/actions/org.freedesktop.machine1.policy
/usr/share/zsh/site-functions/_machinectl
/usr/share/zsh/site-functions/_systemd-nspawn
/var/lib/machines

References

Summary

In this tutorial we learn how to install systemd-container on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install systemd-container on Fedora 36” linkTitle: “systemd-container” type: “docs” description: “In this tutorial we learn how to install systemd-container in Fedora 36. systemd-container is Tools for containers and VMs” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/systemd-container-featured.png

Introduction

In this tutorial we learn how to install systemd-container on Fedora 36.

What is systemd-container

Systemd tools to spawn and manage containers and virtual machines. This package contains systemd-nspawn, machinectl, systemd-machined, and systemd-importd.

We can use yum or dnf to install systemd-container on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install systemd-container.

Install systemd-container 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 systemd-container using dnf by running the following command:

sudo dnf -y install systemd-container

Install systemd-container 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 systemd-container using yum by running the following command:

sudo yum -y install systemd-container

How To Uninstall systemd-container on Fedora 36

To uninstall only the systemd-container package we can use the following command:

sudo dnf remove systemd-container

systemd-container Package Contents on Fedora 36

/usr/bin/machinectl
/usr/bin/systemd-nspawn
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/c60fd9a3da456795ad0620ed3f5ef6957825c8
/usr/lib/.build-id/25/0b0f0f7304f96ecc1cd397852ac6af236fffdc
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/3dfc02bf58b39abb666c5add8616c8dffd0325
/usr/lib/.build-id/7d/878260c9ecc2374263b57b01bf521fa6f1d182
/usr/lib/.build-id/82
/usr/lib/.build-id/82/0482f95ed0c59a425db3ea40464ef1e2d5876d
/usr/lib/.build-id/87
/usr/lib/.build-id/87/74d6f24beec1e475ceae2e0aac8c1d77a78561
/usr/lib/.build-id/8b/8a1e7b8e4154de09cb2fe1250c668213919f03
/usr/lib/.build-id/e1/c4f2dd2b8726725793ddf1730526c18e4c2bdf
/usr/lib/systemd/import-pubring.gpg
/usr/lib/systemd/system/dbus-org.freedesktop.import1.service
/usr/lib/systemd/system/dbus-org.freedesktop.machine1.service
/usr/lib/systemd/system/machine.slice
/usr/lib/systemd/system/machines.target
/usr/lib/systemd/system/machines.target.wants
/usr/lib/systemd/system/machines.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/remote-fs.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/systemd-importd.service
/usr/lib/systemd/system/systemd-machined.service
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/var-lib-machines.mount
/usr/lib/systemd/systemd-import
/usr/lib/systemd/systemd-import-fs
/usr/lib/systemd/systemd-importd
/usr/lib/systemd/systemd-machined
/usr/lib/systemd/systemd-pull
/usr/lib/tmpfiles.d/systemd-nspawn.conf
/usr/lib64/libnss_mymachines.so.2
/usr/share/bash-completion/completions/machinectl
/usr/share/bash-completion/completions/systemd-nspawn
/usr/share/dbus-1/interfaces/org.freedesktop.import1.Manager.xml
/usr/share/dbus-1/interfaces/org.freedesktop.import1.Transfer.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Image.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Machine.xml
/usr/share/dbus-1/interfaces/org.freedesktop.machine1.Manager.xml
/usr/share/dbus-1/system-services/org.freedesktop.import1.service
/usr/share/dbus-1/system-services/org.freedesktop.machine1.service
/usr/share/dbus-1/system.d/org.freedesktop.import1.conf
/usr/share/dbus-1/system.d/org.freedesktop.machine1.conf
/usr/share/man/man1/machinectl.1.gz
/usr/share/man/man1/systemd-nspawn.1.gz
/usr/share/man/man5/org.freedesktop.import1.5.gz
/usr/share/man/man5/org.freedesktop.machine1.5.gz
/usr/share/man/man8/libnss_mymachines.so.2.8.gz
/usr/share/man/man8/nss-mymachines.8.gz
/usr/share/man/man8/systemd-importd.8.gz
/usr/share/man/man8/systemd-importd.service.8.gz
/usr/share/man/man8/systemd-machined.8.gz
/usr/share/man/man8/systemd-machined.service.8.gz
/usr/share/polkit-1/actions/org.freedesktop.import1.policy
/usr/share/polkit-1/actions/org.freedesktop.machine1.policy
/usr/share/zsh/site-functions/_machinectl
/usr/share/zsh/site-functions/_systemd-nspawn
/var/lib/machines

References

Summary

In this tutorial we learn how to install systemd-container on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).