Managing APT packages on Linux involves checking available software and applying package changes. Nala is a terminal program that lets you manage packages through APT, the package system it uses underneath.
This guide shows how to check whether your distribution provides Nala and use it to upgrade packages.
TL;DR
Nala is a terminal frontend for APT that presents package transactions in a more structured way while using the Debian package system underneath.
- Install Nala from a repository supported by your distribution, rather than copying an old third-party repository command.
- Use familiar actions such as nala update, nala install, and nala upgrade.
- Use nala fetch to select mirrors and nala history to inspect recorded transactions.
What Is Nala?
Nala connects to libapt-pkg, the library used by APT. Its terminal summaries organize proposed package changes for review.
Nala runs in a terminal rather than opening a desktop software center. Some builds offer a full-screen text interface, but package tasks still use terminal commands and APT’s configured sources.
Use the project’s current command list because the repository distinguishes its active Rust version from archived Python-era files.
| Tool | Role | What it handles |
|---|---|---|
| Nala | Terminal frontend | Package requests and transaction summaries |
| APT | Package management interface | Repository indexes and dependency resolution |
| dpkg | Package database and installer | Installed package files and state |
Transaction summaries can use different views, so a short report need not show the same detail as an interactive screen.
| View | Useful when |
|---|---|
| Full | You want a detailed review before a change |
| Simple | You need a condensed transaction summary |
| Plain | You are saving or parsing terminal text |
| Text UI | You want a keyboard-driven transaction screen |
The project also lists parallel package downloads. Their benefit depends on mirror capacity and network conditions.
How to Use Nala for APT Packages
Use the usual package-management sequence: refresh indexes, inspect a package, then request an operation.
Step 1: Check whether your distribution provides Nala
I ran the Nala help command and received this exact message:
/usr/bin/bash: line 1: nala: command not found

The distribution package catalog is the starting point for finding a supported installation source.
Linux Mint edition changes the relevant package base. The Mint 22.2 release notes identify Ubuntu 24.04 as its base, while the LMDE 7 page describes a Debian package base. Check the release you use before following Ubuntu- or Debian-specific installation instructions.
After Nala is installed, refresh the local package indexes before searching for or installing software.
nala update
The Ubuntu Noble manual documents the update action for refreshing package indexes. A package index is a local catalog of versions and dependency information from configured repositories, so refreshing it lets search and install planning use current metadata.
Step 2: Inspect and install a package
Search results help find a package name, while show displays package metadata. For example, a repository may list a package whose name differs from the application name shown on its website.
nala search ripgrep
nala show ripgrep
nala policy ripgrep
Policy information helps compare versions offered by configured sources, while show describes the selected package. Use both when several repositories provide a package with the same name.
After confirming the package name and description, request installation. Ripgrep is a command-line text search utility.
nala install ripgrep
The transaction summary can list dependencies and removals alongside the requested package. Read the names and planned actions, not just the requested item, because dependency resolution can expand a one-package request into several changes.
Step 3: Upgrade installed packages
The upgrade action checks for newer versions of installed packages and resolves their dependencies.
nala upgrade
The project documents normal, safe, and full upgrade modes for different dependency situations. Choose a mode only after checking which packages the transaction may change.
For scripts, Nala also documents confirmation flags. Its assume-yes mode has a package-removal nuance: implicit autoremove is skipped unless requested explicitly.
nala install --assume-yes ripgrep
nala autoremove
Use automatic confirmation only when the requested transaction is understood. Record the exit status so automation can handle a failed operation.
Step 4: Review mirrors and transaction history
The Debian manual lists HTTPS filtering and country selection for Nala fetch.
nala fetch
nala history
The example restricts candidates to HTTPS mirrors in the United States. Substitute a country code supported by the installed release.
nala fetch --https-only --country US
The example selects HTTPS mirrors in the United States. Network routes and server load affect transfer speed, so compare it with existing choices.
Common Errors When Using Nala
I treat history undo as a package-level recovery because the Debian manual describes replaying an inverse transaction, not restoring a full system snapshot.
| Case | Symptom | What to do |
|---|---|---|
| Nala is missing | The shell cannot find the nala command. | Check the distribution’s package catalog and install from its documented source. |
| Package cannot be located | The requested package is absent from the local index. | Refresh package metadata and verify the package name and enabled repositories. |
| Mirror selection fails | A selected mirror times out or has stale metadata. | Choose another supported mirror and refresh indexes again. |
| Undo seems risky | The inverse transaction proposes changes you did not expect. | The proposed inverse transaction should be reviewed before confirmation. Use a system backup for broader recovery. |
In its May 9, 2024 edit, the Nala installation wiki lists Debian testing, Sid, and Bookworm, marks Ubuntu 18.04 and Debian Buster or older unsupported, and warns that its Volian installer may fail on Ubuntu 20.04, 22.04, and Debian Bullseye.
Use the remove action for a package you no longer need. Nala presents the associated package changes for review.
nala remove ripgrep
nala history
nala history undo last
Conclusion
Nala provides APT users with terminal commands for package search, installation, upgrades, mirror selection, and transaction history. Start with the package source supported by your distribution.
For more context, read the LinuxForDevices guides to the apt command in Linux, the Ubuntu package manager, and package management on Linux. Nala is also built into the Rhino Linux welcome experience, described in the Rhino Linux overview. The existing tutorial’s Ranger file manager example is another package you can search for with a terminal frontend.
For official command details, use the Debian install manual, fetch manual, and history manual. The Ubuntu Noble update manual documents that distribution’s command.
FAQ
These answers address common questions about APT compatibility, history, and distribution packages.
Does Nala replace APT?
Nala is a command-line frontend for libapt-pkg. It provides another interface for package operations while using the APT-based package system.
Can Nala history undo restore the whole system?
No. Undo replays the inverse of a recorded package transaction. It is not a full system snapshot or a replacement for backups.
How do I install Nala on Linux Mint?
Check the package catalog and documentation for your Linux Mint release, then use the supported package source. Package availability can differ between releases, so avoid copying repository commands written for another version.
Can Nala download packages without installing them?
The Debian install manual lists a download-only option for Nala install. Check the manual for your installed version, then review the downloaded files and package plan before a later installation.
Does Nala always download packages faster than APT?
No. Nala documents parallel downloads and mirror selection, but throughput depends on the network and mirror capacity. These features do not guarantee faster downloads on every connection.
