pkg

Termux's package manager for installing software

About

pkg wraps the package manager built into Termux. It fronts apt with sensible defaults and the Termux repositories ready. Use it to install, update and remove almost anything.

Install it

Included with Termux

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.

pkg install ffmpeg Download and install a package with everything it depends on. The everyday way to add a tool.
pkg update Refresh the list of available packages. Later installs then see the latest versions.
pkg upgrade Install newer versions of everything already present. Keeps the whole system current.
pkg uninstall cowsay Remove a package you no longer need. Frees the space it occupied.
pkg list-installed Show everything you have installed. Useful when auditing what takes up room.
pkg search image Search the repositories by keyword. Find the exact package name before installing.

Worked example

Run pkg install figlet and this is what you should see.

termux
$ pkg install figlet
Reading package lists... Done
Building dependency tree... Done
Setting up figlet (2.2.5)...
Done.

A small install usually finishes in a few seconds.

Developed by

The Termux project .