The "Unattended Upgrades" for Arch Linux.
Go to file
2024-05-20 16:49:25 +08:00
src/pacroller update mkinitcpio known_output 2024-05-04 14:06:49 +08:00
.gitignore push to github 2021-01-15 23:30:01 +08:00
LICENSE push to github 2021-01-15 23:30:01 +08:00
pacroller.service better communicate the reason of inhibition 2021-04-08 11:40:28 +00:00
pacroller.timer add Persistent to timer, hopefully fixes #2 2021-02-09 10:32:59 +08:00 add telegram message notification support 2023-05-30 00:23:33 +10:00 release v0.1.9 2024-05-20 16:49:25 +08:00


The "Unattended Upgrades" for Arch Linux.


Parsing the output of pacman and pacman.log, searching for known patterns and notifying the user whether there is a potential error. Currently the design is regex-based, any output that is unable to match a set of regex is reported back to the user.


yay -S pacroller


pacroller has the following subcommands

run [-d --debug]
    start an upgrade
    if the upgrade fails or pacroller determines that human action is required,
    pacroller writes an exception to the status database, and refuses to run again
    without resetting its failure status.
status [-v --verbose] [-m --max <number>]
    print details of a previously successful upgrade
    reset the current failure status
    send test mails to all configured notification destinations

There is also a systemd timer for scheduled automatic upgrades.


Pacroller reads /etc/pacroller/config.json on startup.

custom sync commands

Pacroller can be configured to use custom sync commands, which allows the usage of a different set of mirrors when syncing the database. Enable the "custom_sync" option and write your custom /etc/pacroller/


If the "needrestart" option is enabled, needrestart should be called after a successful upgrade.

hold packages

Put your hold packages in a json keyval {package name: regex}, where the regex should have at least one matching group. If pacroller observes any changes of the matching group or the hold package is to be removed, it refuses to upgrade further.

ignored pacnew

A list of pacnew files that are silently ignored during parsing, any other pacnews will trigger a warning and prevent further upgrades.

custom pacman hooks and packages

Custom pacman hooks and packages output matching is configurable via /etc/pacroller/

check systemd status

The "systemd-check" option allows pacroller to check fo degraded systemd services before an upgrade.

check news from

Automatically checks news before upgrade, unless "news-check" is set to false.

clear package cache

Pacroller wipes /var/cache/pacman/pkg after a successful upgrade if the option "clear_pkg_cache" is set.

save pacman output

Every time an upgrade is performed, the pacman output is stored into /var/log/pacroller. This can be configured via the "save_stdout" keyword.


When configuring your notification system, please note that pacroller will not send any notification if stdin is a tty (can be overridden by the --interactive switch). Notification will be sent through all configured methods when it requires manual inspection. Currently, two notification methods are supported: SMTP and telegram


Configure /etc/pacroller/smtp.json to receive email notifications.


Configure /etc/pacroller/telegram.json to receive telegram notifications.


  • Your favourite package may not be supported, however it's easy to add another set of rules.
  • Restarting the whole system after a kernel upgrade is not implemented.
  • Human interaction is required occasionally.