• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

debootstrap Command Examples in Linux

by Deepika

debootstrap is a command line tool for creating a minimal Debian-based system. It is used to install a basic Debian system on a target device, without requiring the availability of Debian packages or a network connection. The debootstrap script downloads and installs the necessary packages from a Debian archive, and configures the target system to match a specified release of Debian.

debootstrap Command Examples

1. Create a Debian stable release system inside the `debian-root` directory:

# sudo debootstrap stable /path/to/debian-root/ http://deb.debian.org/debian

2. Create a minimal system including only required packages:

# sudo debootstrap --variant=minbase stable /path/to/debian-root/

3. Create an Ubuntu 20.04 system inside the `focal-root` directory with a local mirror:

# sudo debootstrap focal /path/to/focal-root/ file:///path/to/mirror/

4. Switch to a bootstrapped system:

# sudo chroot /path/to/root

5. List available releases:

# ls /usr/share/debootstrap/scripts/

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to configure CentOS/RHEL 6 system to not used last 3 passwords used
  2. atq Command Examples in Linux
  3. pvresize Command Examples in Linux
  4. CentOS / RHEL : Managing password ageing for users using chage (with practical Examples)
  5. How to activate and mount 2 Volume groups with same names in CentOS/RHEL
  6. chage Command Examples in Linux
  7. asterisk Command Example
  8. Understanding the /etc/inittab File in Linux
  9. How to Execute Scripts/Commands using /etc/rc.d/rc.local in CentOS/RHEL 7
  10. How to add header and trailer line to a file in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright