How To Install yforth on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 472 words
Introduction
In this tutorial we learn how to install yforth
on Ubuntu.
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 Ubuntu. 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 update
After updating apt database, We can install yforth
using apt-get
by running the following command:
sudo apt-get -y install yforth
Install yforth Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install yforth
using apt
by running the following command:
sudo apt -y install yforth
Install yforth 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install yforth
using aptitude
by running the following command:
sudo aptitude -y install yforth
How To Uninstall yforth on Ubuntu
To uninstall only the yforth
package we can use the following command:
sudo apt-get remove yforth
Uninstall yforth And Its Dependencies
To uninstall yforth
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove yforth
Remove yforth Configurations and Data
To remove yforth
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge yforth
Remove 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 yforth
Dependencies
yforth have the following dependencies:
References
Summary
In this tutorial we learn how to install yforth
package on Ubuntu using different package management tools: apt, apt-get and aptitude.