this post was submitted on 16 Oct 2023
21 points (88.9% liked)

Arch Linux

7173 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

In Arch Linux, to check what updates are available, you can use the checkupdates command, but this command does not apply to the AUR package. To check what AUR package updates are available, use the yay -Qua command. Both commands will display a list of packages that have the latest version, but both commands also display packages that are installed as dependencies. Here, I only care about the list of packages that I installed myself (Explicitly installed). Therefore, I created a cli tool called axu (Arch eXplicit Updates).

axu is similar to the checkupdates and yay -Qua commands, except that it only displays a list of explicitly installed packages (not dependencies). axu also provides better output than checkupdates and yay -Qua because axu separates each update into 5 categories, namely:

  • Major
  • Minor
  • Patch
  • Build
  • Git

Determining the type of update is by following the semantic versioning (SemVer) rules.

For those of you who want to try it, this package is already available on AUR:

yay -S axu-bin

This program was originally written in TypeScript, but then I ported it to Rust.

top 5 comments
sorted by: hot top controversial new old
[–] backhdlp@lemmy.blahaj.zone 17 points 10 months ago (1 children)

I'm not sold, why do I need this?

[–] exu@feditown.com 8 points 10 months ago

Agreed. Pretty sure pacman can filter by explicitly installed packages by itself and enough packges don't follow SemVer.

[–] Strit@lemmy.linuxuserspace.show 9 points 10 months ago

If I'm checking for updates, I will usually need to update any dependencies too.

I don't see a reason why only showing updates to explicitly installed packages is a good thing.

If I'm updating or checking for updates, I need to update it all.

[–] backhdlp@lemmy.blahaj.zone 4 points 10 months ago

This looks like something perfect for Manjaro, they like impartial updates, right?

[–] hyperreal@lemmy.world 2 points 10 months ago

I would want to see all upstream updates for anything installed on my system to avoid even considering a partial upgrade.