To be installed in Ubuntu is enough use the Software application, it according with VLC media player for Ubuntu. It is easy and straight , I’ve confirmed it works.
But:
Why so far for Fedora Workstation36 is not possible install VLC through the same approach?
With Software application simply VLC does not appear when is searched. Appears the No Application Found message.
To be honest, even with this situation I expected something like sudo dnf install vlc but it seems it is a little more complex according with VLC media player for Fedora
Before you can dnf install vlc you must enable the rpmfusion repo (which you will need anyway for codecs and other software), see Configuration - RPM Fusion.
Once rpmfusion is there, you will have a lot more software available that you can simply dnf install.
After, if you install the following two packages from rpmfusion, Gnome Software can index and display rpmfusion content, including VLC: sudo dnf install rpmfusion-free-appstream-data rpmfusion-nonfree-appstream-data
VLC contains codecs that fedora is unable to distribute, thus it is not seen in the software app.
However you do not need flathub to install VLC.
The rpmfusion repo contains vlc and all needed dependencies without using a flatpak from flathub.
First enable the rpmfusion repos as described here then install vlc with sudo dnf install vlc and everything should just work. After that it will remain up to date as system and app updates are done.
I am not sure since I do not use the gnome-software app, but it may also show up in that app as well for installation.
Just being curious, why these two repositories are not enabled or available by default on Fedora? When I did do the installation I remember something to enable 3rd party repositories - I assumed everything that is need it is registered/enabled/available with that.
And what is better - flathub or rpmfusion? I am going to do a research for them - but an overview would be valuable.
They are not enabled by default due to licensing, patent, or copyright issues that prevent fedora from distributing that software. Enabling them by default may be seen as equivalent to distributing that software.
flathub distributes software that is not vetted, tested, nor verified to be compatible with fedora. In fact a flatpak by design should be able to run on almost any linux version since all the runtimes are included, and are not specifically targeted for fedora.
rpmfusion distrubutes rpms that are not by themselves a fully functional app and are required to be installed in a specific os that contains the necessary dependencies for function. That software, though not from fedora, is tested against the fedora distribution to verify that it works and usually is dependent upon specific packages that are part of the fedora distribution.
Thus, in terms of which is best for use on fedora I would personally rate rpmfusion above software from flathub. If available from rpmfusion I use it.
That choice is mostly due to the integration of rpmfusion software with the fedora OS. Flathub software is more generic linux, larger packages, and somewhat sandboxed so it is not dependent upon a specific OS.
this is because Fedora is a Free/Open source software (FOSS) community and we’d really prefer if our users preferred FOSS tools over proprietary tools. To make things easier for users, a set of limited third party repositories are included in the workstation install (not in all the spins etc., only in the workstation) that the user must enable. There’s also the legal aspect of course—as an entity registered in the US, Fedora cannot ship proprietary/patent encumbered software. Users need to pay for these themselves to follow US law.
They are two different sources. Flathub provides Flatpaks and is not related to the Fedora community—it’s a general “app store”. RPM Fusion is a sister repository that is primarily maintained by Fedora community volunteers that does not provide Flatpaks—it only provides RPMs. There’s some software that will overlap between RPM Fusion, but lots of things will be only available in one or the other. For example, the Nvidia drivers are only available on RPM Fusion since Flathub is mostly limited to GUI applications.
Also note that for any GUI applications to be listed in gnome-software (gnome software does not list command line software at the moment from what I know), the repository that is providing the rpm for the application must provided extra “appstream” metadata. This is provided for packages in the Fedora repository in the appstream-data package, and RPM Fusion packages in the rpmfusion-{free,nonfree}-appstream-data packages. Other third party repositories may or may not provided this metadata, so their GUI apps may not be listed in Gnome software.