How To Install wv on Ubuntu 18.04

In this tutorial we learn how to install wv on Ubuntu 18.04. wv is Programs for accessing Microsoft Word documents

Introduction

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

What is wv

wv is:

wvWare (previously known as mswordview) is a library that allows access to Microsoft Word files. It can load and parse the Word 2000, Word 97, Word 95, and Word 6 file formats. (Work is underway to support reading earlier formats as well: Word 2 documents are converted to plain text.)

This package provides the following programs:

  • wvWare: Converts to HTML and LaTeX. It’s used by a small army of helper scripts able to preview Word documents and convert them to various other formats, like PostScript, PDF, DVI, etc.

  • wvRTF: Converts to Microsoft’s Rich Text Format.

  • wvSummary: Displays the summary information stream of all OLE2 files, i.e. Excel, PowerPoint, Visio, Access, etc.

  • wvVersion: Outputs the version of the Word format a document is stored in.

Note that conversion to DVI, PostScript, or PDF requires the ’texlive' package; PDF conversion also requires Ghostscript. Having ELinks, Links, or Lynx will greatly improve the plain text output. ImageMagick may help with the quality of images. If you wish to preview Word documents from the comfort of your mail reader, install a PostScript viewer like gv.

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

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

sudo apt-get update

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

sudo apt-get -y install wv

Install wv Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install wv

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

sudo aptitude -y install wv

How To Uninstall wv on Ubuntu 18.04

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

sudo apt-get remove wv

Uninstall wv And Its Dependencies

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

sudo apt-get -y autoremove wv

Remove wv Configurations and Data

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

sudo apt-get -y purge wv

Remove wv configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge wv

References

Summary

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