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.
Install via AUR:
paru -S izwu
For now only Arch Linux is supported.
-
(optional, but convenient) Run
izwu init
to generate an example config file at$XDG_CONFIG_HOME/izwu/izwu.yaml
-
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:
pkgrel
as defined by PKGBUILDmajor
,minor
andpatch
as defined by https://semver.org/
-
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. -
Run
izwu
. If there's any package matching your upgrade expectations, the command exits with a status0
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"
There's no formal spec of config yet. Just follow the examples in the example config file for now.
See LICENSE.md