How To Install librtf-writer-perl on Ubuntu 18.04

In this tutorial we learn how to install librtf-writer-perl on Ubuntu 18.04. librtf-writer-perl is module for creating RTF files

Introduction

In this tutorial we learn how to install librtf-writer-perl on Ubuntu 18.04.

What is librtf-writer-perl

librtf-writer-perl is:

RTF::Writer is for generating documents in Rich Text Format.

This module is a class; an object belonging to this class acts like an output filehandle, and calling methods on it causes RTF text to be written.

Incidentally, this module also optionally exports a few functions, particularly related to length.

The following documentation assumes some familiarity with the RTF Specification. Users not already intimately familiar with RTF should look at RTF::Cookbook and/or the book “RTF Pocket Guide” from O’Reilly.

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

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

sudo apt-get update

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

sudo apt-get -y install librtf-writer-perl

Install librtf-writer-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librtf-writer-perl using apt by running the following command:

sudo apt -y install librtf-writer-perl

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

sudo aptitude -y install librtf-writer-perl

How To Uninstall librtf-writer-perl on Ubuntu 18.04

To uninstall only the librtf-writer-perl package we can use the following command:

sudo apt-get remove librtf-writer-perl

Uninstall librtf-writer-perl And Its Dependencies

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

sudo apt-get -y autoremove librtf-writer-perl

Remove librtf-writer-perl Configurations and Data

To remove librtf-writer-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge librtf-writer-perl

Remove librtf-writer-perl configuration, data, and all of its dependencies

We can use the following command to remove librtf-writer-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librtf-writer-perl

References

Summary

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