How to Disable Building -debug Packages by yay or paru on Arch Linux

Open the /etc/makepkg.conf file on your favorite text editor with superuser privileges and search for OPTIONS. It may look like the following line.
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto)
Now, append a NOT, I mean, an exclamation mark (!), before debug.
It should look like !debug.
Then try installing an AUR package.

Leave a Reply