Skip to content

Instantly share code, notes, and snippets.

@pauloeli
Last active March 18, 2023 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauloeli/2d50537d6e8e4df535c1d0d0a7e13965 to your computer and use it in GitHub Desktop.
Save pauloeli/2d50537d6e8e4df535c1d0d0a7e13965 to your computer and use it in GitHub Desktop.
Yay ignore package

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment