Ubuntu

“add-apt-repository” Command in Ubuntu 20.04

“add-apt-repository” Command in Ubuntu 20.04
Repositories in Ubuntu are defined as the containers in which different software programs are kept. These repositories make it easier for us to install new software whenever we need it. These programs are developed while keeping in mind the specifications and security requirements of each version of Ubuntu. That is why it is very safe to install software via Ubuntu repositories.

Ubuntu provides us with four basic types of repositories which are listed below:

Different commands are associated with the repositories in Ubuntu. In this article, we are going to learn about the “add-apt-repository” command in Ubuntu 20.04.

Explanation of “add-apt-repository” Command:

In this section, we will try to learn the basics of the “add-apt-repository” command in Ubuntu 20.04.

Purpose of “add-apt-repository” Command:

Following are the three main purposes of the “add-apt-repository” command in Ubuntu 20.04:

  1. Adding a new repository to the /etc/apt/sources.list
  2. Adding a new repository to the /etc/apt/sources.list.d
  3. Removing an already existing repository

It means that this command can either be used to add a new repository to one of the two locations specified above or it can delete an already existing repository.

Syntax of the Command:

The general syntax of this command is as follows:

add-apt-repository “options” “repository”

Here, “repository” refers to the new repository that you want to add or the existing repository that you want to remove whereas “options” are the different parameters that can be used in conjunction with this command. These options are discussed in the following section.

Options used with the “add-apt-repository” command:

Note: These options are slightly different for each version of Ubuntu. Here, we are only going to talk about the options that are supported by Ubuntu 20.04 for this command.

Seven basic options are supported by this command in Ubuntu 20.04. These options are explained below:

These seven options can be used with this command as needed. All you have to do is to replace “repository” with the name of that repository on which you want the specified operation to be performed.

Conclusion:

In this article, we have learned the basic usage of the “add-apt-repository” command in Ubuntu 20.04. We also talked about the four main types of repositories in Ubuntu. There was a brief discussion about the different options that can be used with the “add-apt-repository” command in Ubuntu 20.04. By making use of these different options along with this command, you can conveniently add or remove any desired repository while using this operating system. You only need to take care of the correct syntax as is explained in this article.

Gry Samouczek Shadow of the Tomb Raider dla systemu Linux
Samouczek Shadow of the Tomb Raider dla systemu Linux
Shadow of the Tomb Raider to dwunasty dodatek do serii Tomb Raider - przygodowej serii gier akcji stworzonej przez Eidos Montreal. Gra została dość do...
Gry Jak zwiększyć FPS w Linuksie??
Jak zwiększyć FPS w Linuksie??
FPS oznacza Klatki na sekundę. Zadaniem FPS jest pomiar liczby klatek na sekundę podczas odtwarzania wideo lub wydajności gier. W prostych słowach lic...
Gry Najlepsze gry w laboratorium aplikacji Oculus
Najlepsze gry w laboratorium aplikacji Oculus
Jeśli jesteś posiadaczem gogli Oculus, musisz wiedzieć o sideloadingu. Sideloading to proces instalowania w zestawie nagłownym treści innych niż sklep...