How To Install docbook-slides on Ubuntu 18.04

In this tutorial we learn how to install docbook-slides on Ubuntu 18.04. docbook-slides is XML Slides DTD and XSL Stylesheets

Introduction

In this tutorial we learn how to install docbook-slides on Ubuntu 18.04.

What is docbook-slides

docbook-slides is:

A docbook-derived XML DTD for building presentation slides. This package includes the xsl stylesheets for this DTD. This version can be customized with the Simplified DocBook XML DTD or with the full DocBook XML DTD.

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

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

sudo apt-get update

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

sudo apt-get -y install docbook-slides

Install docbook-slides Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install docbook-slides

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

sudo aptitude -y install docbook-slides

How To Uninstall docbook-slides on Ubuntu 18.04

To uninstall only the docbook-slides package we can use the following command:

sudo apt-get remove docbook-slides

Uninstall docbook-slides And Its Dependencies

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

sudo apt-get -y autoremove docbook-slides

Remove docbook-slides Configurations and Data

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

sudo apt-get -y purge docbook-slides

Remove docbook-slides configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge docbook-slides

References

Summary

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