How To Install elpa-openwith on Ubuntu 18.04

In this tutorial we learn how to install elpa-openwith on Ubuntu 18.04. elpa-openwith is seamlessly open files in external programs with Emacs

Introduction

In this tutorial we learn how to install elpa-openwith on Ubuntu 18.04.

What is elpa-openwith

elpa-openwith is:

With this Emacs addon, you can associate external applications with files so that you can open them via C-x C-f, with RET in dired, etc.

You can set your file associations using the customisation interface.

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

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

sudo apt-get update

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

sudo apt-get -y install elpa-openwith

Install elpa-openwith Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-openwith

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

sudo aptitude -y install elpa-openwith

How To Uninstall elpa-openwith on Ubuntu 18.04

To uninstall only the elpa-openwith package we can use the following command:

sudo apt-get remove elpa-openwith

Uninstall elpa-openwith And Its Dependencies

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

sudo apt-get -y autoremove elpa-openwith

Remove elpa-openwith Configurations and Data

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

sudo apt-get -y purge elpa-openwith

Remove elpa-openwith configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-openwith

References

Summary

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