How To Install libs3-dev on Ubuntu 18.04

In this tutorial we learn how to install libs3-dev on Ubuntu 18.04. libs3-dev is C Development Library for Amazon S3 Access

Introduction

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

What is libs3-dev

libs3-dev is:

This package includes the libs3 header, needed to compile applications against libs3.

There are three methods to install libs3-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 libs3-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 libs3-dev using apt-get by running the following command:

sudo apt-get -y install libs3-dev

Install libs3-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libs3-dev

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

sudo aptitude -y install libs3-dev

How To Uninstall libs3-dev on Ubuntu 18.04

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

sudo apt-get remove libs3-dev

Uninstall libs3-dev And Its Dependencies

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

sudo apt-get -y autoremove libs3-dev

Remove libs3-dev Configurations and Data

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

sudo apt-get -y purge libs3-dev

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

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

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

References

Summary

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