Ways to Install or Uninstall sysrqd on Ubuntu 22.04

Updated: September 8, 2022

Permits to execute usual SysRq commands by network, like: sync, umount, reboot, poweroff, sak, term, etc. In this tutorial, I will show you how to install sysrqd on Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install sysrqd on Ubuntu 22.04

Install sysrqd Ubuntu 22.04

sysrqd is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install sysrqd using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install sysrqd 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. Launch the terminal and enter the following Linux command:

sudo apt -y update

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

sudo apt-get install sysrqd

Install sysrqd using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

After that, you can now install sysrqd by following these steps:

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

sudo apt -y update

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

sudo aptitude -y install sysrqd

Uninstall sysrqd on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a sysrqd, can be easily uninstalled by anyone.

If you installed sysrqd using APT or Aptitude, you could uninstall sysrqd on Ubuntu by running this command

sudo apt remove --auto-remove sysrqd

If you want to uninstall sysrqd and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge sysrqd

Conclusion

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