Difference between revisions of "Template:Install Flatpak sh"

From GnuCash
Jump to: navigation, search
(Add unstable release instructions.)
(Template:Install_Flatpak.sh - remote-add can be either system or user)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''For Stable Releases:''''
 
 
<SyntaxHighlight lang="sh">
 
<SyntaxHighlight lang="sh">
 
# Install FlatPak (on debian based distributions, others have to replace 'apt-get install'):
 
# Install FlatPak (on debian based distributions, others have to replace 'apt-get install'):
 
sudo apt-get install flatpak
 
sudo apt-get install flatpak
# Register FlatHub repository:
+
 
 +
# Register FlatHub repository for a system app (available to all users):
 
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 +
# or only you:
 +
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 +
 
# Install GnuCash ...
 
# Install GnuCash ...
## for all users:
+
# for all users:
sudo flatpak install flathub org.gnucash.GnuCash
+
#  sudo is only needed for a --system install, if the user is not in the 'sudo' group
## or only you:
+
#  --system is the default if --user is not specified
flatpak install flathub org.gnucash.GnuCash
+
sudo flatpak install --system flathub org.gnucash.GnuCash
 +
# or only you:
 +
flatpak install --user flathub org.gnucash.GnuCash
 +
 
 
# Run GnuCash:
 
# Run GnuCash:
 
flatpak run org.gnucash.GnuCash
 
flatpak run org.gnucash.GnuCash
 
</Syntaxhighlight>
 
</Syntaxhighlight>
'''For Unstable (i.e., beta) Releases:'''
 
# Do the process for stable releases, but register, install, and run as follows. You can have both the regular and beta branches installed at the same time.
 
<SyntaxkHighlight lang="sh">
 
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/beta-repo/flathub-beta.flatpakrepo
 
flatpak install --user flathub-beta org.gnucash.GnuCash
 
flatpak run --branch=beta org.gnucash.GnuCash
 
</SyntaxHighlight>
 

Latest revision as of 04:18, 1 December 2021

# Install FlatPak (on debian based distributions, others have to replace 'apt-get install'):
sudo apt-get install flatpak

# Register FlatHub repository for a system app (available to all users):
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# or only you:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# Install GnuCash ...
# for all users:
#  sudo is only needed for a --system install, if the user is not in the 'sudo' group
#  --system is the default if --user is not specified
sudo flatpak install --system flathub org.gnucash.GnuCash
# or only you:
flatpak install --user flathub org.gnucash.GnuCash

# Run GnuCash:
flatpak run org.gnucash.GnuCash