/izwu

Automate deciding "is it worth a full upgrade for Arch Linux?"

Primary LanguageRubyMIT LicenseMIT

Is It Worth Upgrading?

Many Arch Linux users are addicted to running pacman -Syu. izwu might help you do so less frequently.

You can specify what packages and how big of their changes are worhty to trigger an OS upgrade.

In other words, it's like checkupdates(8) with a filter.

Installation

Install via AUR:

paru -S izwu

For now only Arch Linux is supported.

Usage

  1. (optional, but convenient) Run izwu init to generate an example config file at $XDG_CONFIG_HOME/izwu/izwu.yaml

  2. Edit the config file to specify:

    • what packages are worthy to trigger a full OS upgrade
    • which package version segment is "big enough" for an upgrade. Supported package segments are:
  3. Run pacman -Sy. Technically this is optional but probably necessary.

    NOTE: this may accidentally partially upgrade your system if you run pacman -S <package> afterwards.

  4. Run izwu. If there's any package matching your upgrade expectations, the command exits with a status 0 and prints potential upgrades like this:

    core/linux 6.6.7.arch1-1
    

    If there're no worthy upgrades, it prints nothing and exits 1.

You could chain commands together as a shell alias like this:

# bash / zsh alias (might work for fish as well):
alias upgrade_if_worthit="sudo pacman -Sy; izwu && sudo pacman -Su"

Configuration

There's no formal spec of config yet. Just follow the examples in the example config file for now.

License

See LICENSE.md