How To Install dicelab on Ubuntu 18.04
Introduction
In this tutorial we learn how to install dicelab on Ubuntu 18.04.
What is dicelab
dicelab is:
With dicelab you can express most dice rolls (and similar things) in a functional language, and then either roll the expression, or evaluate the statistical distribution. In the latter case you can choose whether you want to simply roll and tally many times, or actually compute the distribution (which is more precise, but takes a long time in some obscure cases).
There are three methods to install dicelab on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install dicelab Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install dicelab using apt-get by running the following command:
sudo apt-get -y install dicelab
Install dicelab Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install dicelab using apt by running the following command:
sudo apt -y install dicelab
Install dicelab 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 dicelab using aptitude by running the following command:
sudo aptitude -y install dicelab
How To Uninstall dicelab on Ubuntu 18.04
To uninstall only the dicelab package we can use the following command:
sudo apt-get remove dicelab
Uninstall dicelab And Its Dependencies
To uninstall dicelab and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove dicelab
Remove dicelab Configurations and Data
To remove dicelab configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge dicelab
Remove dicelab configuration, data, and all of its dependencies
We can use the following command to remove dicelab configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dicelab
References
Summary
In this tutorial we learn how to install dicelab package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.