How To Install debootstrap on CentOS 8
Introduction
In this tutorial we learn how to install debootstrap
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install debootstrap.
Install debootstrap on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the debootstrap
package we can use the following command:
sudo dnf remove debootstrap
debootstrap Package Contents on CentOS 8
/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
References
Summary
In this tutorial we learn how to install debootstrap
on CentOS 8 using yum and dnf.