How to Install or Uninstall containerd on Ubuntu 22.04

Updated: September 5, 2022

Containerd is an industry-standard container runtime with an emphasis on simplicity, robustness and portability. It is available as a daemon for Linux and Windows, which can manage the complete container life cycle of its host system: image transfer and storage, container execution and supervision, low-level storage and network attachments, etc. I will show you how to install containerd on Ubuntu 22.04 in this tutorial.

Prerequisites

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install containerd on Ubuntu 22.04

Install containerd Ubuntu 22.04

containerd 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 containerd 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 containerd on your Ubuntu 22.04.

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. Opening the terminal and executing this Linux command:

sudo apt-get -y update

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

sudo apt -y install containerd

Install containerd using Aptitude

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

sudo apt-get -y install aptitude

After that, you can now install containerd, 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. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install containerd Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install containerd

Uninstall containerd 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 containerd.

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

sudo apt remove --auto-remove containerd

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

sudo apt autoremove --purge containerd

Conclusion

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