How To Install xml2rfc on Ubuntu 18.04

In this tutorial we learn how to install xml2rfc on Ubuntu 18.04. xml2rfc is XML-based formatting tool for RFCs

Introduction

In this tutorial we learn how to install xml2rfc on Ubuntu 18.04.

What is xml2rfc

xml2rfc is:

This package provides xml2rfc, a tool which creates text, HTML and nroff output in the format required for Internet-Drafts and RFCs. The text and nroff output is suitable for input to the RFC editor.

The DTD used by the XML documents is described in RFC 2629.

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

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

sudo apt-get update

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

sudo apt-get -y install xml2rfc

Install xml2rfc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xml2rfc using apt by running the following command:

sudo apt -y install xml2rfc

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

sudo aptitude -y install xml2rfc

How To Uninstall xml2rfc on Ubuntu 18.04

To uninstall only the xml2rfc package we can use the following command:

sudo apt-get remove xml2rfc

Uninstall xml2rfc And Its Dependencies

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

sudo apt-get -y autoremove xml2rfc

Remove xml2rfc Configurations and Data

To remove xml2rfc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xml2rfc

Remove xml2rfc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xml2rfc

References

Summary

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