How To Install libwreport-dev on Ubuntu 18.04

In this tutorial we learn how to install libwreport-dev on Ubuntu 18.04. libwreport-dev is library for working with weather reports

Introduction

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

What is libwreport-dev

libwreport-dev is:

libwreport is a C++ library for working with weather reports.

The main feature of libwreport is a powerful decoder and encoder for the BUFR and CREX formats.

It also provides a useful abstraction to handle values found in weather reports, with awareness of significant digits, measurement units, variable descriptions, unit conversion and attributes on variables.

Features provided:

  • Read and write BUFR version 2, 3, and 4
  • Read and write CREX
  • Unit conversion
  • Handling of physical variables

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

sudo apt-get -y install libwreport-dev

Install libwreport-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libwreport-dev

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

sudo aptitude -y install libwreport-dev

How To Uninstall libwreport-dev on Ubuntu 18.04

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

sudo apt-get remove libwreport-dev

Uninstall libwreport-dev And Its Dependencies

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

sudo apt-get -y autoremove libwreport-dev

Remove libwreport-dev Configurations and Data

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

sudo apt-get -y purge libwreport-dev

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

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

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

References

Summary

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