Installation from binary packages

Important information

Binary packages of Gambas are now provided by the openSUSE build server.

In the following instructions, replace the string ${VERSION} by:

  • master to install the development version.

  • stable to install the latest stable version.

  • 3.XY to install the last release of the 3.XY version. For example, 3.20 for the last release of Gambas 3.20.

When you add the openSUSE build service repository for the first time, you may need to remove all previous installations of Gambas entirely, to prevent any weird dependency problem. The Gambas packages on some distributions will upgrade with no problems. See the appropriate section for your distribution below.

If you have compiled Gambas from sources, remove the result by running sudo make uninstall.

If you get the following error with curl:

curl: (60) SSL certificate problem: unable to get local issuer certificate

then add the -k option to the curl command:

curl -fsSLk ...

ArchLinux / Manjaro

Depending on the desktop installed you might first need to install curl:

$ sudo pacman -S curl

For Arch Linux, edit /etc/pacman.conf and add the following (note that the order of repositories in pacman.conf is important, since pacman always downloads the first found package):

[home_gambas_${VERSION}_ArchLinux]
Server = https://download.opensuse.org/repositories/home:/gambas:/${VERSION}/ArchLinux/$arch

Then run the following as root:

$ key=$(curl -fsSL https://download.opensuse.org/repositories/home:gambas:${VERSION}/ArchLinux/$(uname -m)/home_gambas_${VERSION}_ArchLinux.key)
$ fingerprint=$(gpg --quiet --with-colons --import-options show-only --import --fingerprint <<< "${key}" | awk -F: '$1 == "fpr" { print $10 }')

$ pacman-key --init
$ pacman-key --add - <<< "${key}"
$ pacman-key --lsign-key "${fingerprint}"

$ pacman -Sy home_gambas_${VERSION}_ArchLinux/gambas3

Manjaro updates often lag behind ArchLinux updates. Consequently, the ArchLinux packages may not install correctly on Manjaro, because of a blocking library version problem (the required library available on ArchLinux is newer that the one installed on Manjaro). In that case, you will have to wait until Manjaro is synchronized with ArchLinux to be able to install the packages.

Debian

Depending on the desktop installed you might first need to install curl:

$ sudo apt install curl

In the following instructions, replace ${DEBIAN} by Debian_11 or Debian_12, according to the version of your Debian system.

Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).

$ echo 'deb http://download.opensuse.org/repositories/home:/gambas:/${VERSION}/${DEBIAN}/ /' | sudo tee /etc/apt/sources.list.d/home:gambas:${VERSION}.list
$ curl -fsSL https://download.opensuse.org/repositories/home:gambas:${VERSION}/${DEBIAN}/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_gambas_${VERSION}.gpg > /dev/null
$ sudo apt update

For upgrade:

$ sudo apt upgrade

For fresh install:

$ sudo apt install gambas3

After upgrading from official you might need to follow up with this to fully upgrade:

$ sudo apt --fix-broken install
$ sudo apt install gambas3

openSUSE

If upgrading Gambas from a different repository, adding the --allow-vendor-change flag to the install or upgrade command will ease your experience during the upgrade. For example:

zypper install --allow-vendor-change gambas3

openSUSE TumbleWeed

For openSUSE Tumbleweed run the following as root:

$ zypper addrepo https://download.opensuse.org/repositories/home:gambas:${VERSION}/openSUSE_Tumbleweed/home:gambas:${VERSION}.repo
$ zypper refresh
$ zypper install gambas3

openSUSE Leap 15.6

For openSUSE Leap 15.6 run the following as root:

$ zypper addrepo https://download.opensuse.org/repositories/home:gambas:${VERSION}/openSUSE_Leap_15.6/home:gambas:${VERSION}.repo
$ zypper refresh
$ zypper install gambas3

Ubuntu

If upgrading from Gambas Ubuntu Team ppa you need to remove the reference to ppa found in /etc/apt/sources.list.d/<somename>.list before starting the below instructions.

Depending on the desktop installed you might first need to install curl:

$ sudo apt install curl

For Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04 and Ubuntu 24.10, run the following, by replacing ${UBUNTU} by the Ubuntu version (24.10, 24.04, and so on):

Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).

$ echo 'deb http://download.opensuse.org/repositories/home:/gambas:/${VERSION}/xUbuntu_${UBUNTU}/ /' | sudo tee /etc/apt/sources.list.d/home:gambas:${VERSION}.list
$ curl -fsSL https://download.opensuse.org/repositories/home:gambas:${VERSION}/xUbuntu_${UBUNTU}/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_gambas_${VERSION}.gpg > /dev/null
$ sudo apt update

For upgrade:

$ sudo apt upgrade

For fresh install:

$ sudo apt install gambas3