How To Install yforth on Kali Linux
Introduction
In this tutorial we learn how to install yforth on Kali Linux.
What is yforth
yforth is:
yForth? is an interestingly small implementation of Forth for Linux. It suffers several deficiencies. For general Forth programming or learning under Linux, yForth? is not the best choice.
From the author’s README:
yForth? is a Forth environment written entirely in ANSI C, making it extremely portable. The first thing I want to tell you about yForth? is that it seems a joke compared to other systems such as gForth or PFE.
Nevertheless, you could find yForth? nice, in which case you’re invited to explore yForth?
It’s yours, you can make anything you want with it. If you want an explanation of the words provided by yForth? please refer to the draft of ANS Forth or something equivalent. The Net will help you.
Do not expect the prompt “ok” to come up when you run yForth?, the standard says that “ok” shall be printed AFTER every successful command execution…
There are three methods to install yforth on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install yforth Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install yforth using apt-get by running the following command:
sudo apt-get -y install yforthInstall yforth Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install yforth using apt by running the following command:
sudo apt -y install yforthInstall yforth Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install yforth using aptitude by running the following command:
sudo aptitude -y install yforthHow To Uninstall yforth on Kali Linux
To uninstall only the yforth package we can use the following command:
sudo apt-get remove yforthUninstall yforth And Its Dependencies
To uninstall yforth and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove yforthRemove yforth Configurations and Data
To remove yforth configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge yforthRemove yforth configuration, data, and all of its dependencies
We can use the following command to remove yforth configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge yforthDependencies
yforth have the following dependencies:
References
Summary
In this tutorial we learn how to install yforth package on Kali Linux using different package management tools: apt, apt-get and aptitude.