About
APT is the package system underneath Termux. It handles dependency resolution, downloads and installation. Call it directly for options the friendlier wrapper hides.
Install it
pkg install apt
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
apt update Refresh the package index from the configured repositories. Do this before any install or upgrade. apt install ripgrep Install a package by name, along with everything it needs. apt remove ripgrep Uninstall a package but leave its configuration files in place. apt list --upgradable List installed packages that have a newer version available. apt show ffmpeg Print details about a package. Version, size and description. apt search pandoc Search package names and descriptions for a keyword. Worked example
Run apt show figlet and this is what you should see.
$ apt show figlet
Package: figlet
Version: 2.2.5
Installed-Size: 512 kB
Maintainer: Termux
Description: Prints large text banners Useful for confirming a version before you depend on it.
Developed by
The Debian Project .