How To Install gresistor on Ubuntu 18.04

In this tutorial we learn how to install gresistor on Ubuntu 18.04. gresistor is resistor color code calculator

Introduction

In this tutorial we learn how to install gresistor on Ubuntu 18.04.

What is gresistor

gresistor is:

To allow for identification, resistors are usually marked with colored bands. Often refered to as color codes, these markings are indicative of their resistance, tolerance and temperature coefficient. gResistor helps you translate resistor color codes into a readable value. All you have to do is watch the colors on the resistor and then enter them in the program. As you enter colours you’ll see that the resistor value is changing accordingly.

There are three methods to install gresistor 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 gresistor Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gresistor using apt-get by running the following command:

sudo apt-get -y install gresistor

Install gresistor Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gresistor using apt by running the following command:

sudo apt -y install gresistor

Install gresistor 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 gresistor using aptitude by running the following command:

sudo aptitude -y install gresistor

How To Uninstall gresistor on Ubuntu 18.04

To uninstall only the gresistor package we can use the following command:

sudo apt-get remove gresistor

Uninstall gresistor And Its Dependencies

To uninstall gresistor and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove gresistor

Remove gresistor Configurations and Data

To remove gresistor configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge gresistor

Remove gresistor configuration, data, and all of its dependencies

We can use the following command to remove gresistor configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gresistor

References

Summary

In this tutorial we learn how to install gresistor package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.