Summary of common Linux distribution mirror source configuration

Summary of common Linux distribution mirror source configuration

I have been researching Linux recently and tried some Linux distributions, but the software source speed of most distributions is not ideal. So I just made a collection here and summarized the software source setting methods of some common distributions I have used, and you can also use it as a reference.

Ubuntu 18.04

18.04 is the latest long-term support version of Ubuntu. Of course, I am very much looking forward to the 20.04 long-term support version to be released in April. The support for wireguard is very attractive.

#Backup official mirror cp /etc/apt/sources.list /etc/apt/sources.list.backup

# Use Tsinghua mirror source tee /etc/apt/sources.list <<EOL
# By default, the source mirror is commented to improve the apt update speed. If necessary, you can uncomment it yourself. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
EOL

openSUSE tumbleweed

openSUSE tumbleweed is a rolling update version of openSUSE. If you like to try the latest software, this version is recommended. Manjaro has some problems with font rendering, so I have now found the rolling distribution openSUSE. Except that the package manager is a little slower than pacman, everything else feels good. Of course, it is best to turn off the official mirror source in the yast management program, otherwise it will still start downloading from the official mirror source by default.

# Add Tsinghua mirror source zypper addrepo -f https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/oss/ tsinghua_oss
zypper addrepo -f https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/non-oss/ tsinghua_nonoss

Arch

Arch is a very popular rolling distribution with new software sources and highly customizable features. Of course, because it is so customizable, I have to install and configure even the desktop myself, so in the end I decided not to use Arch. But Arch in the virtual machine is really easy to use. It does not require a graphical interface, starts up quickly and updates quickly, and you can also experience the latest software.

# Add Tsinghua mirror source and NetEase mirror source sed -i '1i Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch' /etc/pacman.d/mirrorlist
sed -i '2i Server = https://mirrors.163.com/archlinux/$repo/os/$arch' /etc/pacman.d/mirrorlist

Manjaro

Manjaro is a derivative distribution developed based on Arch. It not only has the advantages of Arch, but also adds a pre-configured graphical interface. Users can easily get an out-of-the-box desktop Linux system like using Ubuntu. The disadvantage is that it is too radical, just like Arch. If you install dual systems and then update the system after a long time, it is easy for a lot of software packages to conflict and fail to update. Manjaro comes with a mirror source configuration tool, so we don’t need to manually edit the configuration file. Simply call the tool to set the mirror source to China.

pacman-mirrors-c China

Fedora

I felt that Fedora's default GNOME desktop was ugly, so I gave up on it in the end. However, Fedora is still okay as a distribution. Although it is a fixed version, the software is updated very quickly. New versions of kernels, software, etc. can be obtained quickly. This is not much different from a rolling release. Listed here are the configuration methods for Fedora 28 and newer versions. For configuration of older versions, please refer to the configuration instructions of Tsinghua's official mirror source.

# Back up the old configuration cp /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.backup
cp /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.backup

# Use Tsinghua mirror source tee /etc/yum.repos.d/fedora.repo <<EOL
[fedora]
name=Fedora \$releasever - \$basearch
failovermethod=priority
baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/\$releasever/Everything/\$basearch/os/
metadata_expire=28d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-\$releasever-\$basearch
skip_if_unavailable=False
EOL

tee /etc/yum.repos.d/fedora-updates.repo <<EOL
[updates]
name=Fedora \$releasever - \$basearch - Updates
failovermethod=priority
baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora/updates/\$releasever/Everything/\$basearch/
enabled=1
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-\$releasever-\$basearch
skip_if_unavailable=False
EOL

This is the end of this article about the summary of common Linux distribution mirror source configuration. For more relevant Linux distribution mirror source configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to permanently modify the pip mirror source in Windows and Linux environments

<<:  MySQL 5.7.27 winx64 installation and configuration method graphic tutorial

>>:  How to use dynamic parameters and calculated properties in Vue

Recommend

Explanation of factors affecting database performance in MySQL

A story about database performance During the int...

How to insert video into HTML and make it compatible with all browsers

There are two most commonly used methods to insert...

MySQL5.7.21 decompressed version installation detailed tutorial diagram

Since I often install the system, I have to reins...

Use of JavaScript sleep function

Table of contents 1.sleep function 2. setTimeout ...

Detailed explanation of CSS BEM writing standards

BEM is a component-based approach to web developm...

Use non-root users to execute script operations in docker containers

After the application is containerized, when the ...

How to change the tomcat port number in Linux

I have several tomcats here. If I use them at the...

Example of how to embed H5 in WeChat applet webView

Preface WeChat Mini Programs provide new open cap...

Pure CSS implementation of radio and checkbox effect example

radio-and-checkbox Pure CSS to achieve radio and ...

Detailed explanation of the use of $emit in Vue.js

1. Parent components can use props to pass data t...

HTML Table Tag Tutorial (47): Nested Tables

<br />In the page, typesetting is achieved b...

MySQL 5.7.12 installation and configuration tutorial under Mac OS 10.11

How to install and configure MySQL on Mac OS 10.1...

How to expand Linux swap memory

Swap memory mainly means that when the physical m...

js implements axios limit request queue

Table of contents The background is: What will ha...