How to Configure Repositories on Ubuntu 20.04
Software installation on Linux systems is performed from repositories, which by default contain a large number of packages. But sometimes there are situations when the necessary software is not included, or the version is too old. In this case, you can add the necessary repository and install from it.
How to configure repositories on Ubuntu 20.04:
- How to view all repositories in Ubuntu
- How to add repositories in Ubuntu
- How to remove repositories in Ubuntu
- Dealing with PPA repositories in Ubuntu
In this tutorial, we will configure repositories on Ubuntu server 20.04.
List of repositories in Ubuntu
To view all repositories in the system:
They can also be located in one of the files in the /etc/apt/sources.list.d/ folder.
To disable one of the repositories, just comment out its line.
Adding repositories in Ubuntu
To add a repository you need to find out its address from the software developer and use the apt-add-repository command with the following syntax:
Sometimes you need to install the GPG security key first. Let's take MariaDB as an example.
Adding repository:
Removing repositories
To remove a repository use this command:
PPA repository in Ubuntu
During the installation of the PPA repository, the system automatically recognizes the repository and downloads the necessary keys.
To remove PPA repository:
After editing the list of repositories, don't forget to update the list of packages in the system.