How To Install libmsoffice-word-html-writer-perl on Ubuntu 18.04

In this tutorial we learn how to install libmsoffice-word-html-writer-perl on Ubuntu 18.04. libmsoffice-word-html-writer-perl is module for writing MsWord documents in HTML format

Introduction

In this tutorial we learn how to install libmsoffice-word-html-writer-perl on Ubuntu 18.04.

What is libmsoffice-word-html-writer-perl

libmsoffice-word-html-writer-perl is:

MsOffice::Word::HTML-Writer is one way to programatically generate documents targeted for Microsoft Word (MsWord).

MsWord can read documents encoded in native binary format, in Rich Text Format (RTF), in WordML (an XML dialect), or – maybe this is less known – in HTML, with some special markup for pagination and other MsWord-specific features. Such HTML documents are often in several parts, because attachments like images or headers/footers need to be in separate files; however, since it is more convenient to carry all data in a single file, MsWord also supports the “MHTML” format (or “MHT” for short), i.e. an encapsulation of a whole HTML tree into a single file encoded in MIME multipart format. This format can be generated interactively from MsWord by calling the “SaveAs” menu and choosing the .mht extension.

MsOffice::Word::HTML::Writer helps you to programatically generate MsWord documents in MHT format. The advantage of this technique is that one can rely on standard HTML mechanisms for layout control, such as styles, tables, divs, etc – of course this markup can be produced using your favorite HTML module. The added value of MsOffice::Word::HTML::Writer is to help building the MIME multipart file, and provide some abstractions for representing MsWord-specific features (headers, footers, fields, etc.). This is probably the most convenient way for programmatic document generation.

There are three methods to install libmsoffice-word-html-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 libmsoffice-word-html-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 libmsoffice-word-html-writer-perl using apt-get by running the following command:

sudo apt-get -y install libmsoffice-word-html-writer-perl

Install libmsoffice-word-html-writer-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmsoffice-word-html-writer-perl

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

sudo aptitude -y install libmsoffice-word-html-writer-perl

How To Uninstall libmsoffice-word-html-writer-perl on Ubuntu 18.04

To uninstall only the libmsoffice-word-html-writer-perl package we can use the following command:

sudo apt-get remove libmsoffice-word-html-writer-perl

Uninstall libmsoffice-word-html-writer-perl And Its Dependencies

To uninstall libmsoffice-word-html-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 libmsoffice-word-html-writer-perl

Remove libmsoffice-word-html-writer-perl Configurations and Data

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

sudo apt-get -y purge libmsoffice-word-html-writer-perl

Remove libmsoffice-word-html-writer-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmsoffice-word-html-writer-perl

References

Summary

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