How To Install debootstrap on CentOS 7

In this tutorial we learn how to install debootstrap on CentOS 7. debootstrap is Debian GNU/Linux bootstrapper

Introduction

In this tutorial we learn how to install debootstrap on CentOS 7.

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 7. In this tutorial we discuss both methods but you only need to choose one of method to install debootstrap.

Install debootstrap on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install debootstrap using yum by running the following command:

sudo yum -y install debootstrap

Install debootstrap on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install debootstrap using dnf by running the following command:

sudo dnf -y install debootstrap

How To Uninstall debootstrap on CentOS 7

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

sudo dnf remove debootstrap

References

Summary

In this tutorial we learn how to install debootstrap on CentOS 7 using yum and dnf.