Arch Linux in Termux – Installation, Usage & Basic Commands

Arch Linux is a simple and lightweight Linux distribution that you can install in Termux without root. It is very fast and gives you full control to customize your system the way you want. You can use it to learn Linux, install tools, and run commands easily on your Android device.

Requirements

Before installing Arch Linux in Termux, make sure your device meets these basic requirements.

  • Processor required: 64-bit CPU (ARM64 recommended).
  • Internet data required: Approx 200MB – 400MB.
  • Free storage required: Minimum 1GB.
  • Android version required: Android 7.0 or above.
  • RAM required: Minimum 2GB.
  • Installation time: Approx 10–25 minutes.

Installation Commands

Below are the simple commands to install Arch Linux in Termux. You can copy and paste the commands one by one in Termux.

Update Termux and install required packages:

pkg update && pkg upgrade && pkg install proot-distro -y

List available distros:

proot-distro install -help

Install Arch Linux (ARM64 devices only):

proot-distro install danhunsaker/archlinuxarm:latest

Login to Arch Linux:

proot-distro login archlinuxarm

Usage Commands

Start Arch Linux anytime:

proot-distro login archlinuxarm

Exit Arch session:

exit

Remove Arch Linux (if needed):

proot-distro remove archlinuxarm

Arch Linux Basic Commands

Arch Linux uses pacman instead of apt, so commands are slightly different.

Update system:

pacman -Syu

Install a package:

pacman -S git

Remove a package:

pacman -R git

Search for a package:

pacman -Ss package-name

Show system info:

uname -a

Show current user:

whoami

List files and folders:

ls

Create a folder:

mkdir foldername

Change directory:

cd foldername

Remove file:

rm filename

Remove folder:

rm -rf foldername

Clear terminal screen:

clear

End Note

Arch Linux ARM provides a lightweight and flexible Linux environment that can run directly on Android devices using the Termux application. It is a good choice for learning Linux, managing packages with Pacman, and exploring the Arch Linux ecosystem without requiring root access.

SHARE THIS POST: