Once a while we want to know the equivalent of one unit of measurement to another. You may have wanted to check how many pounds make a kilogram, or how many inches make a meter, or tried to know how many miles you've traveled in kilometers. There are several unit converters on almost every platform to make conversions easy. In this article, we'll introduce you to the best unit converter for Linux - ConvertAll.
What is ConvertAll?
ConvertAll is an open source unit conversion utility developed in python, which converts any unit of measurement to a desired equivalent. ConvertAll allows you to make combination of units of all types of measurement, so you can easily convert from meters to pounds, or cubic to nautical miles, all without any problem.
The tool has been available since 2001 and has been continuously updated till present, with the most recent version 0.7.2, which was released last February. It has a very simple interface it's easy to use - just enter the name of the source unit and the destination unit, and then provide the value you want to convert and you'll instantly get its equivalent unit.
How to Install ConvertAll
To install ConvertAll, you need to have the following applications installed:
- Python (Version 3.4 or higher)
- Qt (Version 5.4 or higher)
- PyQt (Version 5.4 or higher)
We'll go through the process of install ConvertAll now by running the respective commands in the terminal.
Installing Python 3.6.2
$ wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz $ cd Python-3.6.2 # ./configure # make # make test # make install
This will install Python as python3.
Visit the Qt downloads page and download the 32-bit or 64-bit Linux installation depending on your architecture, and follow the subsequent steps in this section. The installation file (64-bit) can be also downloaded through the command line using wget.
$ wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run # chmod +x qt-opensource-linux-x64-5.7.0.run # ./qt-opensource-linux-x64-5.7.0.run
On Ubuntu, enter:
# apt-get update # apt-get install python-pyqt5
You can install this the same way with other package manager on other distros.
Once you've installed all the prerequisites, you can finally install ConvertAll using these commands:
Download the latest version of ConvertAll and open a terminal in the download location of the file you just downloaded and run these commands:
# tar -xzvf convertall-0.7.2.tar.gz # cd convertall-0.7.2 # python3 install.py
ConvertAll should be installed by now and you can explore it fully.
In this article, we discovered ConvertAll, how it features and how to install it. You can spend time making more conversions and feel free to give us your feedback on the application.