How To Install schroot on Fedora 34
Introduction
In this tutorial we learn how to install schroot
on Fedora 34.
What is schroot
schroot allows users to execute commands or interactive shells in different chroots. Any number of named chroots may be created, and access permissions given to each, including root access for normal users, on a per-user or per-group basis. Additionally, schroot can switch to a different user in the chroot, using PAM for authentication and authorisation. All operations are logged for security. Several different types of chroot are supported, including normal directories in the filesystem, and also block devices. Sessions, persistent chroots created on the fly from files (tar with optional compression and zip) and LVM snapshots are also supported. schroot supports kernel personalities, allowing the programs run inside the chroot to have a different personality. For example, running 32-bit chroots on 64-bit systems, or even running binaries from alternative operating systems such as SVR4 or Xenix. schroot also integrates with sbuild, to allow building packages with all supported chroot types, including session-managed chroot types such as LVM snapshots. schroot shares most of its options with dchroot, but offers vastly more functionality.
We can use yum
or dnf
to install schroot
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install schroot.
Install schroot on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install schroot
using dnf
by running the following command:
sudo dnf -y install schroot
Install schroot on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install schroot
using yum
by running the following command:
sudo yum -y install schroot
How To Uninstall schroot on Fedora 34
To uninstall only the schroot
package we can use the following command:
sudo dnf remove schroot
schroot Package Contents on Fedora 34
/etc/default/schroot
/etc/pam.d/schroot
/etc/schroot
/etc/schroot/buildd
/etc/schroot/buildd/copyfiles
/etc/schroot/buildd/fstab
/etc/schroot/buildd/nssdatabases
/etc/schroot/chroot.d
/etc/schroot/default/copyfiles
/etc/schroot/default/fstab
/etc/schroot/default/nssdatabases
/etc/schroot/desktop/copyfiles
/etc/schroot/desktop/fstab
/etc/schroot/desktop/nssdatabases
/etc/schroot/minimal/copyfiles
/etc/schroot/minimal/fstab
/etc/schroot/minimal/nssdatabases
/etc/schroot/sbuild
/etc/schroot/sbuild/copyfiles
/etc/schroot/sbuild/fstab
/etc/schroot/sbuild/nssdatabases
/etc/schroot/schroot.conf
/etc/schroot/setup.d
/etc/schroot/setup.d/00check
/etc/schroot/setup.d/05btrfs
/etc/schroot/setup.d/05file
/etc/schroot/setup.d/05lvm
/etc/schroot/setup.d/05union
/etc/schroot/setup.d/05zfs
/etc/schroot/setup.d/10mount
/etc/schroot/setup.d/15binfmt
/etc/schroot/setup.d/15killprocs
/etc/schroot/setup.d/20copyfiles
/etc/schroot/setup.d/20nssdatabases
/etc/schroot/setup.d/50chrootname
/etc/schroot/setup.d/70services
/etc/schroot/setup.d/99check
/usr/bin/schroot
/usr/lib/.build-id
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/82e2e8c2735a6ca333e7be7aa0321026079d25
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/b1e21ce57cd00af272ce1e6ff3b1fc64a04339
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/5bb4d237382b6f3ef6538f68767c3dd1261de4
/usr/lib/systemd/system/schroot.service
/usr/libexec/schroot
/usr/libexec/schroot/schroot-listmounts
/usr/libexec/schroot/schroot-mount
/usr/share/bash-completion/completions/schroot
/usr/share/doc/schroot
/usr/share/doc/schroot/AUTHORS
/usr/share/doc/schroot/ChangeLog
/usr/share/doc/schroot/HACKING
/usr/share/doc/schroot/NEWS
/usr/share/doc/schroot/README
/usr/share/doc/schroot/THANKS
/usr/share/doc/schroot/TODO
/usr/share/licenses/schroot
/usr/share/licenses/schroot/COPYING
/usr/share/locale/cs/LC_MESSAGES/schroot.mo
/usr/share/locale/da/LC_MESSAGES/schroot.mo
/usr/share/locale/de/LC_MESSAGES/schroot.mo
/usr/share/locale/en/LC_MESSAGES/schroot.mo
/usr/share/locale/eu/LC_MESSAGES/schroot.mo
/usr/share/locale/fr/LC_MESSAGES/schroot.mo
/usr/share/locale/it/LC_MESSAGES/schroot.mo
/usr/share/locale/pt/LC_MESSAGES/schroot.mo
/usr/share/locale/sv/LC_MESSAGES/schroot.mo
/usr/share/locale/vi/LC_MESSAGES/schroot.mo
/usr/share/locale/zh_CN/LC_MESSAGES/schroot.mo
/usr/share/man/de/man1/schroot.1.gz
/usr/share/man/de/man5/schroot-script-config.5.gz
/usr/share/man/de/man5/schroot-setup.5.gz
/usr/share/man/de/man5/schroot.conf.5.gz
/usr/share/man/de/man7/schroot-faq.7.gz
/usr/share/man/fr/man1/schroot.1.gz
/usr/share/man/fr/man5/schroot-script-config.5.gz
/usr/share/man/fr/man5/schroot-setup.5.gz
/usr/share/man/fr/man5/schroot.conf.5.gz
/usr/share/man/fr/man7/schroot-faq.7.gz
/usr/share/man/man1/schroot.1.gz
/usr/share/man/man5/schroot-script-config.5.gz
/usr/share/man/man5/schroot-setup.5.gz
/usr/share/man/man5/schroot.conf.5.gz
/usr/share/man/man7/schroot-faq.7.gz
/usr/share/schroot/setup/common-config
/usr/share/schroot/setup/common-data
/usr/share/schroot/setup/common-functions
/var/lib/schroot
/var/lib/schroot/session
References
Summary
In this tutorial we learn how to install schroot
on Fedora 34 using yum and dnf.