How To Install libsmartcols-dev on Ubuntu 18.04

In this tutorial we learn how to install libsmartcols-dev on Ubuntu 18.04. libsmartcols-dev is smart column output alignment library - headers and static libraries

Introduction

In this tutorial we learn how to install libsmartcols-dev on Ubuntu 18.04.

What is libsmartcols-dev

libsmartcols-dev is:

This smart column output alignment library is used by fdisk utilities.

This package contains the development environment for the mount library.

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

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

sudo apt-get update

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

sudo apt-get -y install libsmartcols-dev

Install libsmartcols-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsmartcols-dev

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

sudo aptitude -y install libsmartcols-dev

How To Uninstall libsmartcols-dev on Ubuntu 18.04

To uninstall only the libsmartcols-dev package we can use the following command:

sudo apt-get remove libsmartcols-dev

Uninstall libsmartcols-dev And Its Dependencies

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

sudo apt-get -y autoremove libsmartcols-dev

Remove libsmartcols-dev Configurations and Data

To remove libsmartcols-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsmartcols-dev

Remove libsmartcols-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsmartcols-dev

References

Summary

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