×

برای ورود به صفحه‌ی فارسی وب‌سایت ابر آروان کلیک کنید

help

Linux Repository List

Software packages in popular Linux distributions (Ubuntu, Debian, Arch) will be installed by origin sites called repositories. 

Usually, Linux distributions use default repositories to install packages. However, users are allowed to choose other repositories, mostly because of the default repository’s delay or other connection issues. 

There are different settings available for using or replacing repositories in Linux distributions. This article will discuss the correct setting for the most used distributions. 

Tips: In the following instructions, the root access must be available for setting files. To do so, use the sudo command at the beginning of each command, or a root user. 

 

It is possible to use repositories based on the following ways.

 

Debian Distribution Repositories 

To adjust the setting for Debian distribution repositories, follow these steps:

  • Change the main file’s name.
  • Open the /etc/apt/sources.list file, and use an editor to add in the description below. 

Please keep in mind that this setting is related to the Buster version of Debian distribution. It is possible to change the versions.

  1. To reset the setting, replace the backup file with this command.

 

Ubuntu Distribution Repositories 

Ubuntu distribution repositories setting is similar to Debian distribution. To adjust the setting for Ubuntu distribution repositories, do as below:

  • Change the main file’s name.
  • Open the /etc/apt/sources.list file, and use an editor to add the description below.

The setting mentioned above is related to the Xenial version of Ubuntu distribution. It is also possible to use the combination below without any further changes and creating the sources.list file. 

  • To reset the setting, replace the backup file with this command.

 

Arch Distribution Repositories 

Since Arch distribution uses a set of repositories, it will use another one if a repository is not available at the time. In order to use a repository prior to other repositories, the intended repository’s address must be at the top of the list.

  • Use this command to make a backup of the main file. 
  • Use an editor to open the /etc/pacman.d/mirrorlist file. Put the intended repository at the beginning of the command.
  • To reset the setting, replace the backup file with the command below.

 

Manjaro Distribution Repositories

 

Manjaro distribution repositories setting is similar to Arch distribution. Follow the steps below:

  • Make a backup of the main file. 
  • Use an editor to open the /etc/pacman.d/mirrorlist file, and put the intended repository at the beginning of the command. 
  • To reset the setting, replace the backup file with this command.

 

CentOS Distribution Repositories

To adjust CentOS distribution repository settings, do as below.

 

  • Make a backup of the CentOS repositories file.
  • Replace the repositories. 
  • To reset the setting, replace the backup file with this command.

 

Related posts
Related posts