How To Install debootstrap on Fedora 34

debootstrap is Debian GNU/Linux bootstrapper

Introduction

In this tutorial we learn how to install debootstrap on Fedora 34.

What is debootstrap

debootstrap is used to create a Debian base system from scratch, without requiring the availability of dpkg or apt. It does this by downloading .deb files from a mirror site, and carefully unpacking them into a directory which can eventually be chrooted into. This might be often useful coupled with virtualization techniques to run Debian GNU/Linux guest system.

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

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

sudo dnf -y install debootstrap

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

sudo yum -y install debootstrap

How To Uninstall debootstrap on Fedora 34

To uninstall only the debootstrap package we can use the following command:

sudo dnf remove debootstrap

debootstrap Package Contents on Fedora 34

/usr/sbin/debootstrap
/usr/share/debootstrap
/usr/share/debootstrap/functions
/usr/share/debootstrap/scripts
/usr/share/debootstrap/scripts/aequorea
/usr/share/debootstrap/scripts/amber
/usr/share/debootstrap/scripts/artful
/usr/share/debootstrap/scripts/ascii
/usr/share/debootstrap/scripts/bartholomea
/usr/share/debootstrap/scripts/beowulf
/usr/share/debootstrap/scripts/bionic
/usr/share/debootstrap/scripts/bookworm
/usr/share/debootstrap/scripts/breezy
/usr/share/debootstrap/scripts/bullseye
/usr/share/debootstrap/scripts/buster
/usr/share/debootstrap/scripts/ceres
/usr/share/debootstrap/scripts/chromodoris
/usr/share/debootstrap/scripts/cosmic
/usr/share/debootstrap/scripts/dapper
/usr/share/debootstrap/scripts/dasyatis
/usr/share/debootstrap/scripts/debian-common
/usr/share/debootstrap/scripts/disco
/usr/share/debootstrap/scripts/edgy
/usr/share/debootstrap/scripts/eoan
/usr/share/debootstrap/scripts/etch
/usr/share/debootstrap/scripts/etch-m68k
/usr/share/debootstrap/scripts/feisty
/usr/share/debootstrap/scripts/focal
/usr/share/debootstrap/scripts/groovy
/usr/share/debootstrap/scripts/gutsy
/usr/share/debootstrap/scripts/hardy
/usr/share/debootstrap/scripts/hirsute
/usr/share/debootstrap/scripts/hoary
/usr/share/debootstrap/scripts/hoary.buildd
/usr/share/debootstrap/scripts/impish
/usr/share/debootstrap/scripts/intrepid
/usr/share/debootstrap/scripts/jaunty
/usr/share/debootstrap/scripts/jessie
/usr/share/debootstrap/scripts/jessie-kfreebsd
/usr/share/debootstrap/scripts/kali
/usr/share/debootstrap/scripts/kali-dev
/usr/share/debootstrap/scripts/kali-last-snapshot
/usr/share/debootstrap/scripts/kali-rolling
/usr/share/debootstrap/scripts/karmic
/usr/share/debootstrap/scripts/lenny
/usr/share/debootstrap/scripts/lucid
/usr/share/debootstrap/scripts/maverick
/usr/share/debootstrap/scripts/natty
/usr/share/debootstrap/scripts/oldoldstable
/usr/share/debootstrap/scripts/oldstable
/usr/share/debootstrap/scripts/oneiric
/usr/share/debootstrap/scripts/potato
/usr/share/debootstrap/scripts/precise
/usr/share/debootstrap/scripts/quantal
/usr/share/debootstrap/scripts/raring
/usr/share/debootstrap/scripts/sarge
/usr/share/debootstrap/scripts/sarge.buildd
/usr/share/debootstrap/scripts/sarge.fakechroot
/usr/share/debootstrap/scripts/saucy
/usr/share/debootstrap/scripts/sid
/usr/share/debootstrap/scripts/squeeze
/usr/share/debootstrap/scripts/stable
/usr/share/debootstrap/scripts/stretch
/usr/share/debootstrap/scripts/testing
/usr/share/debootstrap/scripts/trusty
/usr/share/debootstrap/scripts/unstable
/usr/share/debootstrap/scripts/utopic
/usr/share/debootstrap/scripts/vivid
/usr/share/debootstrap/scripts/warty
/usr/share/debootstrap/scripts/warty.buildd
/usr/share/debootstrap/scripts/wheezy
/usr/share/debootstrap/scripts/wily
/usr/share/debootstrap/scripts/woody
/usr/share/debootstrap/scripts/woody.buildd
/usr/share/debootstrap/scripts/xenial
/usr/share/debootstrap/scripts/yakkety
/usr/share/debootstrap/scripts/zesty
/usr/share/doc/debootstrap
/usr/share/doc/debootstrap/README
/usr/share/doc/debootstrap/changelog
/usr/share/licenses/debootstrap
/usr/share/licenses/debootstrap/copyright
/usr/share/man/man8/debootstrap.8.gz
/usr/sbin/debootstrap
/usr/share/debootstrap
/usr/share/debootstrap/functions
/usr/share/debootstrap/scripts
/usr/share/debootstrap/scripts/aequorea
/usr/share/debootstrap/scripts/amber
/usr/share/debootstrap/scripts/artful
/usr/share/debootstrap/scripts/ascii
/usr/share/debootstrap/scripts/bartholomea
/usr/share/debootstrap/scripts/beowulf
/usr/share/debootstrap/scripts/bionic
/usr/share/debootstrap/scripts/bookworm
/usr/share/debootstrap/scripts/breezy
/usr/share/debootstrap/scripts/bullseye
/usr/share/debootstrap/scripts/buster
/usr/share/debootstrap/scripts/ceres
/usr/share/debootstrap/scripts/chromodoris
/usr/share/debootstrap/scripts/cosmic
/usr/share/debootstrap/scripts/dapper
/usr/share/debootstrap/scripts/dasyatis
/usr/share/debootstrap/scripts/debian-common
/usr/share/debootstrap/scripts/disco
/usr/share/debootstrap/scripts/edgy
/usr/share/debootstrap/scripts/eoan
/usr/share/debootstrap/scripts/etch
/usr/share/debootstrap/scripts/etch-m68k
/usr/share/debootstrap/scripts/feisty
/usr/share/debootstrap/scripts/focal
/usr/share/debootstrap/scripts/gutsy
/usr/share/debootstrap/scripts/hardy
/usr/share/debootstrap/scripts/hoary
/usr/share/debootstrap/scripts/hoary.buildd
/usr/share/debootstrap/scripts/intrepid
/usr/share/debootstrap/scripts/jaunty
/usr/share/debootstrap/scripts/jessie
/usr/share/debootstrap/scripts/jessie-kfreebsd
/usr/share/debootstrap/scripts/kali
/usr/share/debootstrap/scripts/kali-dev
/usr/share/debootstrap/scripts/kali-last-snapshot
/usr/share/debootstrap/scripts/kali-rolling
/usr/share/debootstrap/scripts/karmic
/usr/share/debootstrap/scripts/lenny
/usr/share/debootstrap/scripts/lucid
/usr/share/debootstrap/scripts/maverick
/usr/share/debootstrap/scripts/natty
/usr/share/debootstrap/scripts/oldoldstable
/usr/share/debootstrap/scripts/oldstable
/usr/share/debootstrap/scripts/oneiric
/usr/share/debootstrap/scripts/potato
/usr/share/debootstrap/scripts/precise
/usr/share/debootstrap/scripts/quantal
/usr/share/debootstrap/scripts/raring
/usr/share/debootstrap/scripts/sarge
/usr/share/debootstrap/scripts/sarge.buildd
/usr/share/debootstrap/scripts/sarge.fakechroot
/usr/share/debootstrap/scripts/saucy
/usr/share/debootstrap/scripts/sid
/usr/share/debootstrap/scripts/squeeze
/usr/share/debootstrap/scripts/stable
/usr/share/debootstrap/scripts/stretch
/usr/share/debootstrap/scripts/testing
/usr/share/debootstrap/scripts/trusty
/usr/share/debootstrap/scripts/unstable
/usr/share/debootstrap/scripts/utopic
/usr/share/debootstrap/scripts/vivid
/usr/share/debootstrap/scripts/warty
/usr/share/debootstrap/scripts/warty.buildd
/usr/share/debootstrap/scripts/wheezy
/usr/share/debootstrap/scripts/wily
/usr/share/debootstrap/scripts/woody
/usr/share/debootstrap/scripts/woody.buildd
/usr/share/debootstrap/scripts/xenial
/usr/share/debootstrap/scripts/yakkety
/usr/share/debootstrap/scripts/zesty
/usr/share/doc/debootstrap
/usr/share/doc/debootstrap/README
/usr/share/doc/debootstrap/changelog
/usr/share/licenses/debootstrap
/usr/share/licenses/debootstrap/copyright
/usr/share/man/man8/debootstrap.8.gz

References

Summary

In this tutorial we learn how to install debootstrap on Fedora 34 using yum and dnf.