How To Install libswe-doc on Ubuntu 18.04

In this tutorial we learn how to install libswe-doc on Ubuntu 18.04. libswe-doc is documentation for the libswe package

Introduction

In this tutorial we learn how to install libswe-doc on Ubuntu 18.04.

What is libswe-doc

libswe-doc is:

This package includes all documentation for the libswe package including pdfs, html and text files. swisseph.(pdf|html) General Documentation for the Swiss Ephemeris. swephprg.(pdf|html) Programming interface to the Swiss Ephemeris.

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

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

sudo apt-get update

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

sudo apt-get -y install libswe-doc

Install libswe-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libswe-doc

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

sudo aptitude -y install libswe-doc

How To Uninstall libswe-doc on Ubuntu 18.04

To uninstall only the libswe-doc package we can use the following command:

sudo apt-get remove libswe-doc

Uninstall libswe-doc And Its Dependencies

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

sudo apt-get -y autoremove libswe-doc

Remove libswe-doc Configurations and Data

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

sudo apt-get -y purge libswe-doc

Remove libswe-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libswe-doc

References

Summary

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