Debian’s APT 3.2 Released with History, Undo, Redo, and Rollback Support

The Debian Project has announced the release of APT 3.2 as the latest stable version of its package manager for Debian-based GNU/Linux distributions. APT (Advanced Package Tool) is the core utility that allows users to install, update, upgrade, and remove software packages from their systems quickly and reliably.

APT is the default package manager across all Debian-based distributions, including Debian, Ubuntu, and many derivatives. It handles software repositories, resolves dependencies automatically, and ensures that packages are installed in a consistent and secure way. For most users, APT is an essential part of daily system administration, whether performing upgrades, installing new applications, or maintaining system stability.

In real-world usage, APT is often used alongside other fundamental Linux tools. Users navigate the filesystem with commands like pwd, manage accounts with utilities such as useradd, and sometimes complement their system with alternative packaging formats like flatpak. Even so, APT remains the backbone of software management on Debian-based systems thanks to its deep integration and long-standing reliability.

APT 3.2 Brings Long-Awaited History and Rollback Features

The biggest new feature in APT 3.2 is the introduction of native history tracking and rollback functionality. This long-anticipated feature brings APT closer to other modern package managers by allowing users to inspect, undo, redo, and rollback package transactions with ease.

With this release, APT introduces a set of new commands that provide full visibility into package operations and make system recovery much safer and more predictable. Each package operation is now recorded as a transaction, which can be reviewed and managed using the new history system. The newly introduced commands include:

  • apt history-list – displays all recorded transactions, each with a unique ID.
  • apt history-info ID – shows detailed information about a specific transaction, including what packages were installed, upgraded, or removed.
  • apt history-undo ID – reverts a particular operation and restores the system to its previous state.
  • apt history-redo ID – reapplies a transaction that was previously undone.
  • apt history-rollback ID – reverts multiple transactions and returns the system to a previous state.

Using these commands is straightforward and follows a simple workflow. Users can first run apt history-list to identify recent changes and find the ID of the transaction they want to inspect. Once the ID is known, apt history-info ID provides detailed information about what packages were installed, upgraded, or removed in that specific transaction. If a change caused problems, it can be safely reverted with apt history-undo ID, restoring the system to its previous state. Should the undone change need to be reapplied, apt history-redo ID allows the transaction to be executed again. For more complex scenarios where multiple transactions need to be reversed, apt history-rollback ID can be used to revert the system to a known working state. These new features make testing updates and recovering from problematic operations much safer, eliminating the need for manual fixes or careful dependency handling.

For more information regarding the new apt features, consult the release notes.

Coming to Debian 14 “Forky” and Ubuntu 26.04 LTS

APT 3.2 is expected to be included in the upcoming Debian 14 “Forky” release, bringing these powerful improvements to the next stable version of Debian. It is also expected to be part of Ubuntu 26.04 LTS, ensuring long-term support users benefit from enhanced package management capabilities.

For users running Debian Sid (unstable), APT 3.2 is already available for testing. By upgrading to the latest packages and reviewing the changelog for version 3.2.0, users can explore the new history, undo, redo, and rollback features ahead of their arrival in stable releases.

Even though testing packages from the unstable branch requires caution, APT 3.2 represents a major step forward, making package management on Debian-based systems more robust, transparent, and user-friendly than ever before.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *