Termux Package Management Commands List

Termux package management commands help you install, update, and remove software easily. Every tool you use in Termux, like Python, Git, or any hacking tool, is installed using these commands. So, learning them is very important for beginners.

Package Management Commands List

CommandUseExample
pkg updateUpdate package listpkg update
pkg upgradeUpgrade installed packagespkg upgrade
pkg installInstall a packagepkg install git
pkg uninstallRemove a packagepkg uninstall git
pkg searchSearch for a packagepkg search python
pkg showShow package infopkg show git
pkg list-allList all packagespkg list-all
pkg list-installedShow installed packagespkg list-installed
apt updateUpdate repositoriesapt update
apt upgradeUpgrade packagesapt upgrade
apt installInstall using aptapt install python
apt removeRemove packageapt remove python
apt autoremoveRemove unused packagesapt autoremove
apt cleanClear cacheapt clean

Package management commands are the most important part of Termux. These commands help you install, update, upgrade, and remove packages in Termux.

Quick Examples

Update and upgrade Termux:

pkg update && pkg upgrade -y

Install a package:

pkg install python

Remove a package:

pkg uninstall python

Search for a package:

pkg search nodejs
SHARE THIS POST: