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

Update Termux and install required packages:

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

List available distros:

proot-distro list

Install Arch Linux:

proot-distro install archlinux

Login to Arch Linux:

proot-distro login archlinux

Usage Commands

Start Arch Linux anytime:

proot-distro login archlinux

Exit Arch session:

exit

Remove Arch Linux (if needed):

proot-distro remove archlinux

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

SHARE THIS POST: