As of the Pop_OS 20.04 release, Flathub is setup by default on Pop_OS. No additional setup is required.
For earlier versions, it's recommended to add remotes in --user mode to ensure smooth transition to 20.04 (which uses and adds user-mode remotes by default). Having Flathub added as a system-mode remote means that when a user upgrades to 20.04, they must remove and re-add the remote to allow installation through Pop Shop. This removes any applications the user has installed.
So the command should be:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
As of the Pop_OS 20.04 release, Flathub is setup by default on Pop_OS. No additional setup is required.
For earlier versions, it's recommended to add remotes in
--user
mode to ensure smooth transition to 20.04 (which uses and adds user-mode remotes by default). Having Flathub added as a system-mode remote means that when a user upgrades to 20.04, they must remove and re-add the remote to allow installation through Pop Shop. This removes any applications the user has installed.So the command should be:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo