endeavouros-team / PKGBUILDS

PKGBUILDS for packages used in our repository
126 stars 74 forks source link

Integrate Flatpak updates in update tools #258

Closed plata closed 1 year ago

plata commented 1 year ago

Currently, updating Arch and AUR packages works nicely through eos-update-notifier. However, Flatpak updates are not integrated here.

Workarounds:

I'm aware that there is AdditionalEosUpdater. The eos-update-notifier Discovery page even mentions:

call an external program for other updating (e.g. updating flatpaks)

Nevertheless, it is not really clear how this shall work (see e.g. https://forum.endeavouros.com/t/eos-update-notifier-and-flatpak/20520). From #80, it seems that UpdateInTerminal must be changed as well.

Goal:

manuel-192 commented 1 year ago

An update notifier was originally meant for users that are not familiar with the ways Arch and EndeavourOS should be updated. Updates come at least daily and sometimes more, so generally an update notifier is not much needed. User should simply run any of the available updating commands (e.g. yay), and almost every time there are updates.

If user wants to use more software sources like flatpak, then the easiest way to do that is to write a small function to the ~/.bashrc file which runs both yay and the flatpak update commands.

So this is one of the reasons why we are not considering making eos-update-notifier (and friends) more complex than what they already are. Running your own function (or script) is a very easy way to achieve the best solution.

plata commented 1 year ago

I understand the reasoning.

Is there a Discovery page explaining this and the "canonical" way how to update EOS? I got the impression that many people think eos-update-notifier is the way. If I understand you correctly, that's not really the case. However, the presentation of eos-update-notifier in the welcome dialog and in Discovery seems to suggest exactly that.

dalto8 commented 1 year ago

There is no canonical way to update EOS. You can do it however you like.

Since it is safe to automatically update flatpaks, I usually use a systemd timer to check for updates and update them automatically in the background.

plata commented 1 year ago

I still would appreciate a Discovery page which explains this because I feel like it's not particularly clear (especially for new users). Describing best practices or even just a set of possibilities would be very helpful.

manuel-192 commented 1 year ago

Best practices depends greatly on the user and what she/he wants to do. That's why it is not easy to describe "general" best practices.

EndeavourOS is based on Arch, so the Arch way to update with sudo pacman-Syu is great and reliable. EndeavourOS has some additions for certain situations, like the yay AUR helper, in case you have installed also AUR packages.

These two programs are capable of handling all repository and AUR packages, and thus it is strongly recommended that a user knows how to use them.

UpdateInTerminal is a wrapper for pacman and yay, and as the name suggests, it is a (simple) way to update the system without having to remember pacman or yay options.

As said already earlier, eos-update-notifier is mostly meant for users new to EndeavourOS, and users who like to be notified of updates regularly. Of course the update schedule can be adjusted to a reasonable default if user wants.

As @dalto mentioned, it is up to you to decide how to update your system, and which software sources to use.

Note that on the EndeavourOS forum (https://forum.endeavouros.com/) we have had several discussions related to this too, with several different aspects presented. Feel free to join the forum (if you are not there already)!