Exclude an AUR package from updating

Hello dear community.
How can I exclude packages from being updated by Pacman? :bulb:
In this case, I don’t want to update an AUR package and permanently exclude it from being updated. :package:

:point_right: Where can I find the config file where I can change this?

I’m not just specifically interested in AUR here, but it would be interesting to have a general option to manually exclude packages from being updated and then update them manually if necessary.

Thanks in advance. :melting_face:

/etc/pacman.confIgnorePkg = pkgname

1 Like

Can I then update the package manually via Terminal or do I have to exclude the command again?

pacman will never update AUR packages.

1 Like

So the package is replaced on the ignore list, which can also be seen in the pacmanmanager.

There is no such thing. :wink:

2 Likes
pamac update --aur --ignore <package(s)>
1 Like

Pamac :grin:

Great, now I have two options.
Where does he write that? In the pacman.conf too?

I just want to add that ignoring updates of specific packages can put you in a partial upgrade state, where libraries get updated, but the packages that depend on them do not get updated, causing incompatibility between the libraries and packages. Things will eventually break.

6 Likes

No, that’s the command you would type in the terminal window (or at a tty) for updating while ignoring that specific AUR package.

Thank you, yes I understand that. I’ll be careful. :smirk:

Surely you can write this manually into the file that is rewritten with this command? Which one is it?

Command can used in a Terminal without reconfiguring pacman.conf

Or AUR package can be added to ignore list in Pamac GUI Preferences > Advanced tab

Ignoring an AUR package update is less likely to be a problem than ignoring a Manjaro repository package

1 Like

Oh, I understand. Yes, it was even noted there. Oh, I didn’t notice that in the settings because I didn’t want to ignore any packets until now. OK, I understand, easier way with the command, but in the end it’s exactly the same. :yum:

No need to write anything into a file. You simply type that command and your system will be updated, but that one package will not.

You could of course create a shell alias for it, or better still, a shell function or a bash script, so that you can use it with other AUR packages you wish to exclude. An example of a script follows below. :point_down:

#!/usr/bin/env sh

pkglist=$@
pamac update --aur --ignore "$pkglist"

Save this under your ~/.local/bin with a suitable name — e.g. custom-update — and give it execute permission. Then, next time you update, simply do it by way of the name of the script.

2 Likes

Sounds interesting too.

When you enable third party builds in Add / Remove Software app - you also have the option of setting an option to check for updates.

When enabled - this option is the cause of trouble for many users.

Disable Check for updates on the Third Party tab.

To setup a regular check for updates to your custom scripts (hosted on AUR)
See → [root tip] [HowTo] Check if your AUR build scripts have been updated

1 Like

If a user does not know how to ignore a package update in pamac-manager GUI they should not have this option enabled, especially at this time when there may be a delay in Stable branch updates pending release of Manjaro 25.0

Users can still check for AUR updates in Terminal using pamac-cli as an AUR helper

To show if new versions of packages are available and if any packages are out of date:

pamac checkupdates -a 

Manjaro Wiki - Using Pamac CLI - Updating the system

Inexperienced users that are not very familiar with AUR build process can use the dry-run
option to simulate building a package:

pamac build --dry-run [package]
1 Like

THIS POST IS REALLY REALLY GOOD!!! Thank you very much and congratulations for such answers.
I will try several of this solutions.

1 Like

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