How To Install lxhotkey-core on Ubuntu 18.04

In this tutorial we learn how to install lxhotkey-core on Ubuntu 18.04. lxhotkey-core is Lightweight global keyboard shortcuts configurator

Introduction

In this tutorial we learn how to install lxhotkey-core on Ubuntu 18.04.

What is lxhotkey-core

lxhotkey-core is:

LXHotkey is an universal application for the Lightweight X11 Desktop Environment (LXDE) which allows view and change global keyboard shortcuts for Window Manager actions, including ones to start applications.

This package contains no plugins so the most probably will do nothing useful unless you also install a plugin supporting the Window Manager you are using and probably some GUI plugin.

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

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

sudo apt-get update

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

sudo apt-get -y install lxhotkey-core

Install lxhotkey-core Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lxhotkey-core

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

sudo aptitude -y install lxhotkey-core

How To Uninstall lxhotkey-core on Ubuntu 18.04

To uninstall only the lxhotkey-core package we can use the following command:

sudo apt-get remove lxhotkey-core

Uninstall lxhotkey-core And Its Dependencies

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

sudo apt-get -y autoremove lxhotkey-core

Remove lxhotkey-core Configurations and Data

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

sudo apt-get -y purge lxhotkey-core

Remove lxhotkey-core configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lxhotkey-core

References

Summary

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