Disable AUR updates in Pamac GUI

Manjaro recommends updating repository packages via CLI before updating AUR packages

If Pamac GUI preferences have been set to check for AUR updates, use one of the following methods to update repository packages only:

  1. Turn off Check for updates in Third Party preferences

  2. Select AUR in the sidebar menu to show only AUR packages
    and click the Ignore All button to ignore AUR updates

  3. Use this command to disable AUR updates before launching Pamac GUI

    sudo sed -Ei '/CheckAURUpdates/s/^/#/' /etc/pamac.conf
    

    and this command to re-enable AUR updates

    sudo sed -Ei '/CheckAURUpdates/s/^#//' /etc/pamac.conf
    

    commands adapted from: Enable AUR using command-line

2 Likes

Ah, Bogdan - there’s a blast from the past - and apparently he just learned it from you.

He was a shining star when I first arrived (the old forum then) for a couple of years.

'course you can just hash it up instead of deleting it:

kate /etc/pamac.conf

It’s an interesting file to read through - kind of interesting sometimes to see GUI toggles reflected simply in text like this.

## When AUR support is enabled check for updates from AUR:
# CheckAURUpdates

But yes - with other AUR helpers taking care of system updates before AUR updates, some recent issues could have been avoided.

Earliest post I can find on this forum that has those expressions is:

Bogdan might have adapted a sed command I suggested for commenting out something in PulseAudio configuration, but I was mostly using simpler sed commands back then

  • To comment out and disable AUR updates
    sudo sed -i 's/CheckAURUpdates/#CheckAURUpdates/g' /etc/pamac.conf
    
  • To uncomment and enable AUR updates
    sudo sed -i 's/#CheckAURUpdates/CheckAURUpdates/g' /etc/pamac.conf
    
2 Likes