Hello dear community.
How can I exclude packages from being updated by Pacman?
In this case, I don’t want to update an AUR package and permanently exclude it from being updated.
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.
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.
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.
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.
#!/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.
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: