Ways to Install and Uninstall extrepo on Ubuntu 22.04

Updated: September 6, 2022

External repositories are additional software package repositories that are not maintained by Debian. Before extrepo, maintainers of such repositories would suggest that you download and execute an (unsigned) shell script as root, or that you download and install their (unsigned) package, which is not ideal for security. I will show you how to install extrepo on Ubuntu 22.04 in this guide.

Software Requirement

  • OS: Ubuntu 22.04 is needed for extrepo to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install extrepo on Ubuntu 22.04

Install extrepo Ubuntu 22.04

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

Install extrepo using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get extrepo 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 download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

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

sudo apt-get -y install extrepo

Install extrepo 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 -y install aptitude

After installing, you can now install extrepo, just following these steps:

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

sudo apt update

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

sudo aptitude -y install extrepo

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

sudo apt remove --auto-remove extrepo

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

sudo apt autoremove --purge extrepo

Summary

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