Mailspring 1.17 was successfully installed from an .rpm file, but it can not be upgraded to 1.18 using an .rpm file. I have tried both “rpm-ostree override replace” and “rpm-ostree install” options. The first option proceeds without error but does not upgrade the package. The second option produced the following error:
Problem: cannot install both mailspring-1.18.0-0.1.x86_64 from @commandline and mailspring-1.17.4-0.1.x86_64 from @commandline
conflicting requests
dnf is not available in Cosmic Atomic. Should dnf be installed, or is there an rpm-ostree option I have not tried?
“Mailspring 1.17 was successfully installed from an .rpm file”. From the Cosmic terminal, I ran the .rpm file downloaded from the Mailspring website using rpm-ostree install xxx.rpm. This ran without error and Mailspring was successfully installed and fully functional. After a few days of use it started to annoy with messages about an update being available. I could ignore the messages. Mailspring is not available in Cosmic Store. Yes, I could install Mailspring from the flathub and probably should have done that from the beginning. But now I have it set up the way I want. In general I want to know how to update ANY app that was installed using rpm-ostree install xxx.rpm. Thank you for providing an installation alternative for my specific situation.
I am not a patient person. I have uninstalled the application, installed the flathub app as you suggested, and will be very wary of installing apps from .rpm packages in the future. I will mark your suggestion as a solution to my problem. Thank you. If you wish, you can address this as a general inquiry rather than as a solution to a problem:
Generally, I would suggest using Flatpaks from Flathub, as AFAIK, this is the long-term trend for Fedora. When you install a third-party RPM as a local package or without adding an external package repository, the only way to update it is to reinstall it.
I installed Mailspring as a Flatpak recently and it failed to launch properly. Immediately deleted it. Some flatpaks do not work as expected on COSMIC Atomic.