User Tools

Site Tools


k2:k2.5:start

2.5 De-installation of gambas

The change from Gambas3 version 3.3.3.3 to Gambas3 version 3.3.4 and the installation of Gambas3 via SVN from revision 5227 onwards resulted in a change of the installation paths. In these cases, you have to remove the old version completely, because otherwise an update will result in effects that cannot be traced. On October 12,2012, Minisini wrote something like this:

… For this reason, you must uninstall everything related to Gambas 3 before you compile and install a newer version, otherwise random crashes may occur. … Please forgive this inconvenience….

2.5.1 Variant 1

This variant applies as of Gambas 3.3.5 under the aspect “Delete previous version”:

hans@linux:~$ sudo rm -i /usr/bin/gb*
[sudo] password for hans:
rm: Remove normal file "/usr/bin/gba3"? y
rm: Remove normal file "/usr/bin/gbc3"? y
rm: Remove normal file "/usr/bin/gbi3"? y
rm: remove symbolic link "/usr/bin/gbr3"? y
rm: remove symbolic link "/usr/bin/gbs3"? y
rm: remove normal file "/usr/bin/gbs3.gambas"? y
rm: remove symbolic link "/usr/bin/gbw3"? y
rm: Remove normal file "/usr/bin/gbx3"? y

hans@linux:~$ sudo rm -rf /usr/lib/gambas3

hans@linux:~$ sudo rm -rf /usr/share/gambas3
hans@linux:~$

The -i (interactive) option prompts you whether or not to delete the displayed file or SymLink. You should not do without these security questions!

Variant 1 is always used by the author before installing a new, stable Gambas version from the project sources of the Gambas project.

2.5.2 Variant 2

If gambas were installed via SVN, then these commands are used in a console

$ cd $HOME/gb353_trunk #  → Gambas-Source directory
$ sudo make uninstall

removed all files of Gambas 3.5.3 that were installed by the created Makefile during the installation of Gambas 3.5.3. You can then safely delete the source directory of the Gambas source directory.

2.5.3 Variant 3

If you have installed Gambas2 or Gambas3 (version? 3.3.3) from the package sources of the Linux distribution you are using, then alternatively uninstall Gambas with one of these commands in a console:

$ sudo apt-get purge gambas2
$ sudo apt-get purge gambas3

2.5.4 Variant 4

However, you can also use the installation tool of the Linux distribution - for Ubuntu these are the synaptic package management or the software center - to separate from all relevant folders and files of Gambas.

If packages have been installed via package management, the package management is informed which files of the packages are in the installation paths and can cleanly remove them again.

2.5.5 Variant 5

However, if you have installed Gambas2 or Gambas3 (version < 3.3.3) from the sources of the Gambas project, you should delete all relevant directories in this way:

hans@linux:~$ sudo rm -i /usr/local/bin/gb*
[sudo] password for hans:
rm: Remove normal file "/usr/local/bin/gba3"? y
rm: Remove normal file "/usr/local/bin/gbc3"? y
rm: Remove normal file "/usr/local/bin/gbi3"? y
rm: remove symbolic link "/usr/local/bin/gbr3"? y
rm: remove symbolic link "/usr/local/bin/gbs3"? y
rm: remove normal file "/usr/local/bin/gbs3.gambas"? y
rm: remove symbolic link "/usr/local/bin/gbw3"? y
rm: Remove normal file "/usr/local/bin/gbx3"? y
hans@linux:~$ sudo rm -rf /usr/local/lib/gambas3
hans@linux:~$ sudo rm -rf /usr/local/share/gambas3
hans@linux:~$

Alternative:

If the source folder still exists, a makefile is also available. You simply delete the installed gambas with it:

$ sudo make uninstall

You can then delete the Gambas source directory in this case as well.

2.5.6 Variant 6 (Christof Thalhofer)

This variant is needed if you want to reinstall Gambas.

Find all Gambas packages installed:

  $ dpkg -l | grep gambas3 | awk '{print $2}' | tr '\n' ' '

Excerpt from the issue at the author's with Gambas 3.16.3 (Status: 13.01.2022):

gambas3 gambas3-dev-tools gambas3-devel gambas3-gb-args gambas3-gb-cairo gambas3-gb-chart gambas3-gb-clipper gambas3-gb-complex gambas3-gb-compress gambas3-gb-compress-bzlib2 gambas3-gb-compress-zlib gambas3-gb-compress-zstd gambas3-gb-crypt gambas3-gb-data gambas3-gb-db gambas3-gb-db-form gambas3-gb-db-mysql gambas3-gb-db-odbc gambas3-gb-db-postgresql gambas3-gb-db-sqlite2 gambas3-gb-db-sqlite3
...
gambas3-gui gambas3-ide gambas3-runtime gambas3-scripter

Remove all packages:

  $ sudo apt remove $(dpkg -l | grep gambas3 | awk '{print $2}' | tr '\n' ' ')

After that Gambas can be installed as usual.

The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k2/k2.5/start.txt · Last modified: 19.01.2022 (external edit)

Page Tools