How to Install and Uninstall local-apt-repository on Ubuntu 22.04

Updated: September 6, 2022

With this package installed, every Debian package (i.e. a *.deb file) dropped into /srv/local-apt-repository (which you need to create first) will be available to apt. In this guide, I will show you ways to install local-apt-repository Ubuntu 22.04.

Prerequisites to install

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

Prerequisites to install local-apt-repository on Ubuntu 22.04

Install local-apt-repository Ubuntu 22.04

local-apt-repository 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 local-apt-repository using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to get local-apt-repository 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. Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt update

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

sudo apt -y install local-apt-repository

Install local-apt-repository 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 -y install aptitude

After installing aptitude, you can now install local-apt-repository, just following these steps:

Step 1: You must update the APT package repository cache before attempting 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-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install local-apt-repository Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install local-apt-repository

Uninstall local-apt-repository 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 local-apt-repository.

If you installed local-apt-repository using APT or Aptitude, you could uninstall local-apt-repository on Ubuntu by following this step:

sudo apt remove --auto-remove local-apt-repository

If you want to uninstall local-apt-repository and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge local-apt-repository

Conclusion

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