GnuCash Sources

From GnuCash
Revision as of 04:15, 15 June 2018 by Fell (talk | contribs) (Using a shell:: bz2 alternative)
Jump to: navigation, search

GnuCash Sources

Stable Releases

Stable releases of the GnuCash source code are available for download from:

These links all point to the SourceForge Download page and will download a zipped (compressed) tarball containing the sources for gnucash with a name of the form gnucash-<major>.<minor>-<packing>.tar.<bz2> , e.g. gnucash-5.10-1.tar.bz2. Some earlier stable releases are also available from this page by expanding the See All Activity link and selecting the desired version from the drop down list.

You should save this file to a suitable location, e.g. Downloads directory in your home directory (/home/<user>/Downloads where <user> is your username.

You should then extract the source code from the zipped archive to a suitable directory under your home directory where you will build gnucash, e.g. something like /home/<user>/Applications.

Using a shell:

export VERSION=3.1 # One place to adjust the Version
export TARBALL=gnucash-$VERSION-1.tar.bz2 # if you still have no bzip2 use ".gz" instead instead of ".bz2"
export URL=https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/$VERSION
cd ~/Downloads # "~" short for "$HOME" = "/home/<user>"
wget $URL/$TARBALL # Download the tarball
sha256sum $TARBALL # Integrity check: Compare the output with the sha256sum from the URL
tar -xjvf $TARBALL -C ~/Applications # extract the tarball below your personal Applications directory

For the very latest source code, get the sources with Git or

use the latest release source file of type gnucash-<version>.tar.gz from Sourceforge.
Do not attempt to use tarballs from GitHub.

Examine the Dependencies wiki page and the README.dependencies file for the list of build dependencies for your distribution, the README.git file for notes on compiling gnucash, and the HACKING file for notes on hacking the code

Download tarball

  1. Select the link bzip compressed tarball for GnuCash 3.x stable release on the page | Gnucash Download
  2. or Select either the maint branch or master branch as required then click the Download button and select Download ZIP to download the tarball.
  3. Save to a suitable directory within your home directory (e.g. /home/<user>/Downloads).
  4. Extract the gnucash-3.<x> directory to a suitable directory under your home directory (e.g. either Downloads as above or something like /home/<user>/Applications (create if required)).
  5. Substitute appropriate minor release number for <x> from {0,1,2..} where it appears in the commands below.

Using git

In a shell enter

git clone -b maint https://github.com/Gnucash/gnucash.git
  1. The to level directory downloaded by git will be named "gnucash" not "gnucash-3.<x>".
  2. Either rename it or subsitute "gnucash" where "gnucash-3.<x>" occurs in the following commands.