How To Install wcalc on Kali Linux
Introduction
In this tutorial we learn how to install wcalc on Kali Linux.
What is wcalc
wcalc is:
Wcalc is a very capable calculator. It has standard functions (sin, asin, and sinh for example, in either radians or degrees), many pre-defined constants (pi, e, c, etc.), support for using variables, “active” variables, a command history, hex/octal/binary input and output, unit conversions, embedded comments, and an expandable expression entry field. It evaluates expressions using the standard order of operations.
Wcalc uses intuitive expressions. For example, Wcalc will evaluate: 5sin 4!-7*2(4%6)^2 to be -221.96631678
There are three methods to install wcalc 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 wcalc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install wcalc using apt-get by running the following command:
sudo apt-get -y install wcalcInstall wcalc Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install wcalc using apt by running the following command:
sudo apt -y install wcalcInstall wcalc 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 wcalc using aptitude by running the following command:
sudo aptitude -y install wcalcHow To Uninstall wcalc on Kali Linux
To uninstall only the wcalc package we can use the following command:
sudo apt-get remove wcalcUninstall wcalc And Its Dependencies
To uninstall wcalc and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove wcalcRemove wcalc Configurations and Data
To remove wcalc configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge wcalcRemove wcalc configuration, data, and all of its dependencies
We can use the following command to remove wcalc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge wcalcDependencies
wcalc have the following dependencies:
References
Summary
In this tutorial we learn how to install wcalc package on Kali Linux using different package management tools: apt, apt-get and aptitude.