Alpine Linux Distro in Termux – Setup & Commands

Alpine Linux Distro is a very lightweight and fast Linux distribution that you can run inside Termux using proot-distro. It is mainly used for servers, containers, and low-resource systems because it is small and simple, it works very smoothly on Android devices and is perfect for learning Linux basics.

Requirements

Before installing Alpine Linux in Termux, make sure your device meets these basic requirements for smooth performance.

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

Installation Commands

Update Termux and install proot-distro:

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

Install Alpine Linux:

proot-distro install alpine

Login to Alpine Linux:

proot-distro login alpine

Usage Commands

Start Alpine Linux anytime:

proot-distro login alpine

Exit Alpine session:

exit

Remove Alpine Linux and its data:

proot-distro remove alpine

Alpine Linux Basic Commands

These basic commands help you manage Alpine Linux easily inside Termux.

Update package list:

apk update

Upgrade system packages:

apk upgrade

Install a package:

apk add git

Remove a package:

apk del git

Check system info:

cat /etc/os-release

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: