Skip to content

About

Unattended Auto Updates for CachyOS

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

cachy-auto-update

cachy-auto-update

Unattended background updates for CachyOS.

pacman, AUR, Flatpak and AppImages. In the background, with no password prompt.

Buy me a coffee on Ko-fi

Install

paru -S cachy-auto-update
sudo cachy-auto-update enable

How to use

sudo cachy-auto-update

The cachy-auto-update menu in Konsole: automatic updates and notifications on

Press 1 to turn automatic updates on or off. 6 has all the settings.

While an update runs, a progress bar shows how far it is. You can Pause or Cancel it there.

The progress bar of a running update, with Pause and Cancel buttons

To keep it out of the way, turn on Start the progress bar minimized in the settings. The bar then stays in the notification area and does not pop up. Click the notification icon to see it.

The settings screen in Konsole, with Start the progress bar minimized turned on

When does it update?

Battery below 30 % ⏸️ Waits (on power it runs)
A game is running ⏸️ Waits
pacman, yay or paru is running ⏸️ Waits
Shutdown or suspend during an update 🚫 Blocked until it is done, or until you click Cancel
Restart after an update ❌ Never on its own, you get a notification

More

What it updates
Packages pacman -Syu
AUR paru or yay
Flatpak system and user installs
AppImages through Gear Lever
Safety
  • A progress bar shows the step and the package.
  • Cancel and Pause on the progress bar never stop pacman while it installs. They wait until that part is done.
  • On Btrfs with snapper (the CachyOS default) every update gets a snapshot before and after.
  • A lock file left by a power cut is removed on the next run.
  • Package replacements are handled on their own. File conflicts are never overwritten.
  • A signature error refreshes the keyring once and tries again.
  • Old package versions and AUR build leftovers are cleaned up, so the caches do not fill the disk.
Logs
cachy-auto-update log        # last run
cachy-auto-update log -a     # all runs
journalctl -u cachy-auto-update
cachy-update

cachy-update tells you about updates, you install them. This installs them for you. Both work side by side, and enable offers to silence cachy-update's notification.

Build from source
make && sudo make install
sudo systemd-sysusers && sudo systemd-tmpfiles --create
sudo cachy-auto-update enable

Optional: pacman-contrib, an AUR helper, flatpak, Gear Lever, libnotify, python-gobject.

GPL-3.0-or-later.

About

Unattended Auto Updates for CachyOS

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages