CachyOS uses pacman and paru under the hood so this will work for any linux distro using those. Too many Linux distros don’t include an obvious update method that updates both repo and “other” installed software in one shot. By default CachyOS does not install flatpak. They discourage it. (You really want to avoid any distro supporting snaps!) Yes, I’ve written about CachyOS before on this blog.
Personally, I prefer flatpak over docker type containers for desktop use. Having said that, on my CachyOS machines I try to adhere to the AUR philosopy. I used to love AppImage, even created one for RedDiamond, but some distros have moved to a newer version of Fuse so you have to do some dancing to get AppImages to work on them. Basically you have to install Fuse2 because Fuse3 doesn’t work with AppImages currently.
Flatpaks have a philosophy similar to official distro repos. The package should be fluid and continually updated. AppImages on the other hand have the philosophy of “I need a specific version of this tool and I can’t risk the OS changing it on me.” Stable tools are important. LibreOffice is as stable as a soap bubble. I have multiple books written with it that cannot be edited using current version. Gotta love an “unattended upgrade” that forces a new LO on you which happens to be completely incompatible with your current document.
Note: This assumes you are running a real Linux distro that has a root account. If su – doesn’t allow you to login, you need a better distro.
CachyOS
Open a terminal. Type
su -enter your root password then type
nano update_all.shTechnically the following is overkill. Technically Paru is a wrapper around pacman and AUR, but anything worth doing is worth overdoing.
pacman -Syu
paru -SuaSave and exit. Now make it executable.
chmod +x update_all.shNow you can run it anytime you want to update your system.
su -
./update_all.shApt users
Might as well round this out. For Apt users your update_all.sh will contain
apt-get update
apt-get upgrade
flatpak updateIf you aren’t using flatpak then you can leave that line off.
One of the main reasons I prefer flatpak over docker for desktop use is updating docker can be involved. While I have an AppImage for RedDiamond, most app images can’t be updated unless a developer does a lot of work.
PCLinuxOS users
Really, any RPM based distro using dnf should have update_all.sh containing this:
dnf update
flatpak update