To ignore a package when run yay
, you need to edit the /etc/pacman.conf
adding in IgnorePkg
the package name you want to ignore.
Example:
Before edit:
yay
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
archstrike is up to date
:: Searching databases for updates...
:: Searching AUR for updates...
:: Checking development packages...
:: 1 Packages to upgrade.
1 aur/yay 8.1157.0-1 -> 8.1173.0-1
==> Packages to not upgrade: (eg: 1 2 3, 1-3, ^4 or repo name
After edit, adding yay
in IgnorePkg
yay ✔ 35s 15:19:11
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
there is nothing to do