AUR packages rebuild on deps change due to system update

Hello fellow Garuda users,

As the title suggests I will describe here one specific situation that you may bump into from the list or problems you might face when trying out a package from AUR.
I had a post in another category if you wish to read the entire description of the problem:

But the short version is this:

  1. Install a package from AUR : paru -Suy arbtt
  2. Happily use it for a while
  3. Do a system upgrade: garuda-update
  4. Try to use arbtt again only to get lib not found error
  5. Remove package from the system: paru -Rn arbtt
  6. Remove paru cache of arbtt. Either delete ~/.cache/paru/clone/arbtt by hand or use some version of paru -Scc or paru -Sccd
  7. Reinstall: paru -Suy arbtt
  8. Works again

If more experienced users could comment on how to determine automatically which AUR packages need to be rebuilt after a system update that would really add a lot of value to this post.

Have a nice day!

1 Like

Maybe try updating with
garuda-update -a

2 Likes

O my You found a solution that's not a solution, the solution for the last 20 years is to do things the Arch way. Using paru or any helper is not the solution Arch way is the only way not work rounds

1 Like

Thanks for the tip.
To be honest I was not aware of the command line options for the script.
Now that I looked at /usr/lib/garuda/garuda-update/main-update I figured out what options I have to run it. But trying man page or info or -h was not really an option.

1 Like

Well, the internet is a big place to search for info. I just wanted to help out some of the users that maybe were not using Arch or even around 20 years ago.
If you can post a link to an article describing this process I think many users will appreciate this.
Look, I don't think anybody reads the "Arch manual" in it's entirety before installing such a distro.
That is precisely why I was calling for more experienced users to share their experience with the community.

1 Like

I don't need to prove my point its all in the Arch wiki for all to read this is a Arch based Distro perhaps you should inform the Devs they are guiding users down the wrong path AUR helpers - ArchWiki

1 Like

There's not a foolproof solution (when you install an AUR package then you are the package maintainer, with all that it entails), but this is worth trying:

$ pacman -Si rebuild-detector
Repository      : community
Name            : rebuild-detector
Version         : 4.4.1-2
Description     : Detects which packages need to be rebuilt
Architecture    : any
URL             : https://github.com/maximbaz/rebuild-detector
Licenses        : ISC
Groups          : None
Provides        : None
Depends On      : parallel  pacutils  pacman-contrib
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 6.03 KiB
Installed Size  : 6.12 KiB
Packager        : Maxim Baz <[email protected]>
Build Date      : Fri 25 Feb 2022 09:14:11 GMT
Validated By    : MD5 Sum  SHA-256 Sum  Signature
7 Likes