How to prevent paru to update any chaotic-aur older package?

Hi there.

As an example, ungoogled-chromium is in the chaotic-aur repo but with older version than in AUR, so far.

paru -Sua does launch the build of ungoogled-chromium which is way too heavy for my machine.

I need to update packages not in chaotic-aur, it is why I run this paru command. However, is there a way to exclude any package from choatic-aur when I run paru?

1 Like

When you update your system, you need to update all packages at once from all enabled repositories. You should not attempt to skip any repositories.

You can skip individual packages if they are causing issues by adding them to the IgnorePkg = line in /etc/pacman.conf. If you have installed the browser from the AUR, adding it to IgnorePkg will prevent it from being overwritten by the Chaotic version when you update.

Perhaps it is worth mentioning that holding back packages this way can potentially cause certain kinds of issues, and should be done with caution.

5 Likes

Partial upgrades are unsupported

https://wiki.archlinux.org/title/Partial_upgrade

3 Likes

I would not call that a “pure” partial update if just a browser is not updated.
I don’t think the risk to break the system is of the same level, compared to partly updating system libs, for instance.

I understand from your answer there is no way to distinguish a package coming from chaotic-aur versus AUR, during an update.
It does left me to exclude package by package in paru conf.

That being said, I tried to understand when ungoogled-chromium will be updated in chaotic-aur and I don’t find it in the package list: Chaotic-AUR
Is ungoogled-chromium still proposed? What am I doing wrong with my search?

if you install it from the aur it will only update from the aur so garuda-update -a. As shown below pick a aur version. An yes you will have to build it. You can not download the chaotic built one then update it with the aur.

❯ paru ungoogled-chromium
6 aur/ungoogled-chromium-xdg-bin 125.0.6422.60-1 [+7 ~0.05] [Out-of-date: 2024-07-21]
A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory (using
pre-releases), (binary version)
5 aur/ungoogled-chromium-git 88.0.4324.104.1.r3.ga9140d5-1 [+7 ~0.09] [Out-of-date: 2021-06-15]
A lightweight approach to removing Google web service dependency (master branch)
4 aur/ungoogled-chromium-xdg 125.0.6422.60-1 [+9 ~0.07] [Out-of-date: 2024-07-17] [Orphaned]
A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory (using
pre-releases)
3 aur/chromium-extension-web-store 1.5.4.3-1 [+12 ~0.33]
chromium web store extension (for ungoogled-chromium)
2 aur/ungoogled-chromium-bin 130.0.6723.58-1 [+88 ~4.16]
A lightweight approach to removing Google web service dependency
1 aur/ungoogled-chromium 130.0.6723.58-1 [+351 ~2.51]
A lightweight approach to removing Google web service dependency
:: Packages to install (eg: 1 2 3, 1-3):
::
2 Likes

Well, it is what paru -Sua does propose.
Initially, ungoogle-chromium was installed from chaotic

1 Like

Why not paru -R the chaotic one an install the aur one? I guess I don’t really understand the issue.

If I build ungoogled-chromium from AUR, it will take about 2 days on some machines.
As chaotic-aur had a prebuilt version, I took that one.

Then isn’t the solution to wait tell the chaotic one is updated? If I remember it failed to build last time. So I think there was a hold on building it or something.
but like I said there’s no way to use the chaotic one as a base an upgrade it with the aur pkg thats just not how that works.

You could also just try the flatpak of it? or if theirs a appimage of it.

1 Like

If I understand correctly, OP is trying to perform an upgrade to some AUR packages outside of chaotic. I see two possible solutions:

Wait until ungoogled-chromium builds successfully on the Cloud Dragons

OR

Perform a regular garuda-update, then upgrade individual packages from the AUR using paru <packagename>

It looks like it has been temporarily dropped for some reason.

Yes, compiling a browser is insane unless you need to modify the source code or something. But there is a binary available you can install instead.

❯ paru -Ss ungoogled-chromium-bin
aur/ungoogled-chromium-bin 130.0.6723.58-1 [+88 ~4.16]
    A lightweight approach to removing Google web service dependency

That one is pre-compiled and should have a considerably more modest build time.

5 Likes

Thanks all for your feedback.
I would have preferred not to change all my installs, but I will uninstall ungoogled-chromium (initially provided by choatic-aur) and install the bin version from AUR.

Edit: however, it is not a solution to my initial question. Apparently, there is now way to prevent paru to update packages installed from chaotic-aur, and which will be updated by garuda-update, eventually.

You add them to the ignorepkg list in pacman.conf it’s in root etc

I don’t think the pacman.conf will affect paru’s update process. However, look what I found :eyes:

Seems like IgnorePkg should work here too!

Thanks, however, setting IgnorePkg in /etc/paru.conf leads to an error.
Never mind, I worked around my issue by installing ungoogled-chromium-bin from AUR.

Edit: however, just got an idea. It looks like garuda-update is able to identify “Foreign/AUR package notification”. So, it should be possible to write a small script to only update them with paru (or yay), instead of a general update of all AUR packages. I will have a look when I will have time (hopefully one day :slight_smile: ).

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.