Need help with pacback?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

145 Stars 3 Forks MIT License 133 Commits 2 Opened issues


Advanced Version Control for Arch Linux

Services available


Need anything else?

Contributors list


AUR Main AUR Git Codacy grade GitHub


  1. CLI Commands
  2. Install Instructions
  3. User Guide
  4. Developer Guide


Being at the head of Linux kernel and application development means access to the latest features but also often means dealing with the latest bugs. While I don't run into major bugs often, when they happen, they cripple my productivity. Reversing individual packages is generally a slow manual process and while some tools exist, none meet my needs. In particular, support for downgrading AUR packages is extremely lacking. To combat these issues I wrote pacback to automate various downgrade methods for restoring Arch Linux to a previous version state.

Core Features:

  • Resilient Downgrades and Upgrades
  • Rolling System Snapshots
  • Rollback to Arch Archive Dates
  • Easy Tracking of All System Additions, Removals, and Upgrades
  • Native Support for AUR Packages
  • Storage and Restoration of Version Dependent Files
  • Multi-Threaded Operations

Pacback CLI Commands and Flags:

Pacback offers several core commands that streamline the process of creating and restoring versions. The CLI is designed to be dead simple and provide detailed feedback and user control.

Core Commands

  • -c, --createrp | Generate a pacback restore point. Takes a restore point # as an argument.\ _Example:
    pacback -c 1
  • -rp, --restorepoint | Rollback to a previously generated restore point.\ _Example:
    pacback -rp 1
  • -ss, --snapshot | Restore the system to an automatically created snapshot.\ Example:
    pacback -ss 2
  • -dt, --date | Rollback to a date in the Arch Linux Archive.\ Example:
    pacback -dt 2019/08/14
  • -pkg, --package | - Rollback a list of packages looking for old versions on the system.\ Example:
    pacback -pkg zsh cpupower neovim


  • -f, --fullrp | Generate a pacback full restore point.\ _Example:
    pacback -f -c 1
  • -d, --adddir | Add any custom directories to your restore point during a `--createrp AND --fullrp
    pacback -f -c 1 -d /dir1/to/add /dir2/to/add /dir3/to/add`
  • -nc, --noconfirm | Skip asking user questions during RP creation. Will answer yes to most input.\ _Example:
    pacback -nc -c 1
  • -l, --label | Add a label to your restore point.\ Example:
    pacback -nc -c 1 -f -l 'Production'

Print Info

  • -ls, --list | List information about all restore points and snapshots.\ Example:
    pacback -ls
  • -i, --info | Print information about a retore point or snapshot.\ Example:
    pacback -i rp1
    pacback -i ss1
  • -df, --diff | Compare any two restore points or snapshots.\ Example:
    pacback -df rp1 rp2
    pacback -df rp1 ss1
  • -v, --version | Display pacback version and cache information.\ Example:
    pacback -v


  • -cache, --cachesize | Calculate reported and actual cache sizes.\ _Example:
    pacback -cache
  • -cl, --clean | Clean old and orphaned pacakages along with old restore points.\ Example:
    pacback -cl
  • -rm, --remove | Removes the selected restore point.\ Example:
    pacback -rm 12 -nc
  • --installhook | Install a pacman hook that creates a snapshot during each pacman transaction.\ _Example: `pacback --installhook`_
  • --removehook | Removes the pacman hook that creates snapshots.\ _Example: `pacback --removehook`_

Install Instructions:

Pacback offers two AUR packages. (Special thanks to Attila Greguss for maintaining them.)

pacback: This is the recommended install for most users. Releases mark stable points in Pacbacks development, preventing unnecessary upgrades/changes that may introduce instability into production machines.

pacback-git: This package fetches the latest version from git. The master branch will be unstable periodically but is ideal for anyone looking to contribute to pacback's development or if you want access to the latest features and patches.

User Guide

While there are only a few CLI commands, they can be used in a wide variety of complex restoration tasks. The user guide has grown quite extensively in size and has been moved to its own page! Check it out here!

Developer Guide

Interested in helping develop pacback? Have questions about how it works? The detailed developer guide explains all the core features, codebase, and design philosophy of pacback. Check it out here!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.