Как установить Gambas3 на Ubuntu

How to Install Gambas

Step 1: Open a Terminal

Choose one of the following methods:

  • Click Menu in the lower-left corner of the screen, then click Terminal.
  • Click the Terminal icon in the Tray.
  • Press Ctrl + Alt + T on your keyboard.

Step 2: Update the Package List

Before installing anything, make sure your package list is current:

sudo apt update

Step 3: Install the Necessary Dependencies

You need these packages to securely access the external repository:

sudo apt install apt-transport-https curl

Step 4: Add the GPG Key

Import the GPG key for the Gambas stable repository so APT can verify package authenticity:

curl -fsSL "https://download.opensuse.org/repositories/home:gambas:stable/xUbuntu_$(lsb_release -sr | cut -d. -f1,2)/Release.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_gambas_stable.gpg > /dev/null

This command automatically detects your Ubuntu (and therefore FunOS) version and downloads the matching key.

Step 5: Add the Repository

Next, add the Gambas stable repository to your APT sources:

echo "deb http://download.opensuse.org/repositories/home:/gambas:/stable/xUbuntu_$(lsb_release -sr | cut -d. -f1,2)/ /" | sudo tee /etc/apt/sources.list.d/home:gambas:stable.list

Step 6: Update the Package List Again

Now that the new repository is configured, refresh your package list:

sudo apt update

Step 7: Install Gambas

Install Gambas 3 with:

sudo apt install gambas3

Step 8: Reload the Menu

For the Gambas menu entry to appear in the FunOS application menu:

  1. Click the Menu button in the lower-left corner.
  2. Click Reload menu.

Launching Gambas

To start Gambas:

  • Click the Menu button in the lower-left corner.
  • Navigate to Development and select Gambas 3.

How to Uninstall Gambas on FunOS

If you ever want to remove Gambas completely, follow these steps.

Step 1: Open a Terminal

Use any of the methods described earlier.

Step 2: Remove Gambas

sudo apt remove --purge gambas3

Step 3: Remove Any Unused Dependencies

sudo apt autoremove --purge

Step 4: Remove the Repository and Key (Optional)

If you no longer want the Gambas repository and GPG key:

sudo rm -f /etc/apt/sources.list.d/home:gambas:stable.list
sudo rm -f /etc/apt/trusted.gpg.d/home_gambas_stable.gpg

Step 5: Update the Package List

sudo apt update

Step 6: Remove User Data (Optional)

Delete Gambas configuration and project files from your home directory:

rm -rf $HOME/.config/gambas3
rm -rf $HOME/.local/share/gambas3

Step 7: Reload the Menu

  1. Click the Menu button in the lower-left corner.
  2. Click Reload menu.

Оставьте первый комментарий

Отправить ответ