Thank you for asking as it prompted me to go read up on it again instead of relying on my memory from a reddit post I saw who knows how long ago.
It's slightly more complicated than this, but the gist of it is that GUI helpers sometimes do the equivalent of pacman -Sy to get a list of needed upgrades without actually doing the upgrades. This is so they can show a notification. The wiki explains why this dangerous. If you read the source of the checkupdates script, it becomes apparent that safely doing this involves running in a chroot.
Now to be fair to pamac, it appears that they fixed the issue quickly. The same problem took four years to be corrected in octopi. Let me reiterate, that for this entire time, running a normally perfectly safe pacman command from the terminal could break your system because of what octopi was doing in the background.
This particular issue is fixed, but my trust for software that runs arbitrary libalpm commands automatically is not. This type of software is certainly convenient, so I understand why people use it. I just want them to be aware of the complexity and potential risks it adds to one of the most important parts of keeping a rolling release distro in a healthy state.
7 comments
i use gnome but i never installed gnome software, i update only through pacman
I would stay away from graphical package managers all together. They can break your system by doing a partial upgrade behind your back..
Is there a source for that happening? Also is that warning supposed to be specific to graphical AUR helpers? And if so, why?
Thank you for asking as it prompted me to go read up on it again instead of relying on my memory from a reddit post I saw who knows how long ago.
It's slightly more complicated than this, but the gist of it is that GUI helpers sometimes do the equivalent of
pacman -Syto get a list of needed upgrades without actually doing the upgrades. This is so they can show a notification. The wiki explains why this dangerous. If you read the source of thecheckupdatesscript, it becomes apparent that safely doing this involves running in achroot.Now to be fair to
pamac, it appears that they fixed the issue quickly. The same problem took four years to be corrected inoctopi. Let me reiterate, that for this entire time, running a normally perfectly safepacmancommand from the terminal could break your system because of whatoctopiwas doing in the background.This particular issue is fixed, but my trust for software that runs arbitrary
libalpmcommands automatically is not. This type of software is certainly convenient, so I understand why people use it. I just want them to be aware of the complexity and potential risks it adds to one of the most important parts of keeping a rolling release distro in a healthy state.You can remove Gnome-Software and just use pamac (or pacman).
uninstall both and use this extension: https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/
Pamac? Are you sure you're not using manjaro?