Ways to Install and Uninstall urfkill on Ubuntu 22.04

Updated: September 23, 2022

The urfkill daemon allow managing the rfkill-related hotkeys and the killswitches in a more configurable way for the common RF devices (WiFi, Bluetooth, WWan…). It handles the various key codes (KEY_WLAN, KEY_BLUETOOTH, KEY_RFKILL…) and toggles the killswitches based on a pre-defined policy. In this guide, I will show you ways to install urfkill Ubuntu 22.04.

Requirements

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

Prerequisites to install urfkill on Ubuntu 22.04

Install urfkill Ubuntu 22.04

urfkill 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 urfkill using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install urfkill on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. You can now install urfkill Ubuntu by executing this command in the terminal.

sudo apt-get install urfkill

Install urfkill using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

After installing aptitude, you can now install urfkill by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. You can now install urfkill Ubuntu by executing this command in the terminal.

sudo aptitude install urfkill

Uninstall urfkill 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 urfkill using APT or Aptitude, you could uninstall urfkill on Ubuntu by following this step:

sudo apt remove --auto-remove urfkill

You can also execute this command if you want to uninstall urfkill and remove its data and dependencies:

sudo apt autoremove --purge urfkill

Conclusion

In this tutorial, I showed you ways to install urfkill on Ubuntu 22.04 and ways to uninstall urfkill too. Please contact me if you require any assistance. I’d be delighted to respond.