Pkg install proot-distro (termux)

To install a Linux distribution using proot-distro in Termux, first install proot-distro using pkg install proot-distro. Then, list available distributions with proot-distro list. Install a desired distro (e.g., Alpine) using proot-distro install <alias>. Finally, start a shell session using proot-distro login <alias

Detailed Steps:

  1. 1.Install proot-distro:
    • Open Termux and update the package list: pkg update 

Install proot-distro: pkg install proot-distro

2. List available distributions:

  • Use the command proot-distro list to see the supported distributions and their status. 

3. Install a distribution:

  • Choose a distribution from the list (e.g., Alpine). 

Install it using the command proot-distro install <alias. Replace <alias> with the name of the distribution, such as alpine.  Ensure you have a stable internet connection during installation. 

4. Start a shell session:

  • After installation, start a shell session for the distribution using proot-distro login <alias. Replace <alias> with the name of the distribution. 

For example, to start an Alpine shell, use proot-distro login alpine

5. Optional: Install essential packages:

  • Once inside the distribution’s shell, you can install additional packages using the distribution’s package manager (e.g., apk add <package_name> for Alpine). 

Example:

To install and run Debian: 

  1. pkg install proot-distro
  2. proot-distro install debian
  3. proot-distro login debian

Key Commands:

  • proot-distro list: Lists available distributions.
  • proot-distro install <alias: Installs a distribution.
  • proot-distro login <alias: Starts a shell session for the installed distribution.
  • proot-distro remove <alias: Uninstalls a distribution.
  • proot-distro reset <alias: Reinstalls a distribution. 

This video demonstrates how to install various Linux distributions on Termux using proot-distro:

59s

Mukesh

YouTube · Apr 23, 2022

Leave a comment

Design a site like this with WordPress.com
Get started