How to Install and Uninstall sxhkd on Ubuntu 22.04

Updated: October 10, 2022

sxhkd is a simple X hotkey daemon with a powerful and compact configuration syntax. In this guide, I will show you how to install sxhkd on Ubuntu 22.04.

Prerequisites to install

  • Operating system: sxhkd needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install sxhkd on Ubuntu 22.04

Install sxhkd Ubuntu 22.04

sxhkd is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install sxhkd using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get sxhkd on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install sxhkd Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get -y install sxhkd

Install sxhkd using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After that, you can now install sxhkd, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install sxhkd Ubuntu by executing this command in the terminal.

sudo aptitude -y install sxhkd

Uninstall sxhkd on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed sxhkd using APT or Aptitude, you could uninstall sxhkd on Ubuntu by executing this command

sudo apt remove --auto-remove sxhkd

To uninstall sxhkd and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge sxhkd

Ending

In this guide, I showed you ways to install sxhkd on Ubuntu 22.04 and ways to uninstall sxhkd too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.