How to Install and Uninstall systemctl on Ubuntu 22.04

Updated: September 8, 2022

“systemctl” is a replacement command to control system daemons without systemd. “systemctl” is useful in application containers where systemd is not available to start/stop services. In this guide, I will show you ways to install systemctl Ubuntu 22.04.

Requirements to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install systemctl on Ubuntu 22.04

Install systemctl Ubuntu 22.04

systemctl 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 systemctl 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 steps to get systemctl on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install systemctl Ubuntu by executing this command in the terminal.

sudo apt-get install systemctl

Install systemctl using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

Then, you can now install systemctl by following these steps:

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

sudo apt-get -y update

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

sudo aptitude install systemctl

Uninstall systemctl on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a systemctl.

You can uninstall systemctl Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove systemctl

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

sudo apt autoremove --purge systemctl

Ending

In this tutorial, I showed you ways to install systemctl on Ubuntu 22.04 and ways to uninstall systemctl too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.