How To Install gforth on Debian 10
Introduction
In this tutorial we learn how to install gforth
on Debian 10.
What is gforth
gforth is:
This is the GNU’ish implementation of a Forth programming environment.
Forth, as a language, is best known for being stack-based, and completely extensible. Each Forth environment provides one or more dictionaries of pre-defined words, and programming in Forth consists of defining and executing new words that are combinations of previously defined words. It has been said that learning Forth changes forever the way you think about writing programs.
For more information about Forth, visit the Forth Interest Group web site at http://www.forth.org/fig.html.
There are three methods to install gforth
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install gforth Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gforth
using apt-get
by running the following command:
sudo apt-get -y install gforth
Install gforth Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gforth
using apt
by running the following command:
sudo apt -y install gforth
Install gforth Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install gforth
using aptitude
by running the following command:
sudo aptitude -y install gforth
How To Uninstall gforth on Debian 10
To uninstall only the gforth
package we can use the following command:
sudo apt-get remove gforth
Uninstall gforth And Its Dependencies
To uninstall gforth
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove gforth
Remove gforth Configurations and Data
To remove gforth
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge gforth
Remove gforth configuration, data, and all of its dependencies
We can use the following command to remove gforth
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gforth
Dependencies
gforth have the following dependencies:
References
Summary
In this tutorial we learn how to install gforth
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.