Accelerate APT with multiple Sources. list Files in Ubuntu

Source: Internet
Author: User
In Ubuntu, multiple Sources. list files are used to accelerate APT-Linux Release Technology-Debian information. For more information, see below. Accelerate APT with multiple Sources. list Files in Ubuntu

When multiple sources have the same package, the package will only be downloaded from the first source. Therefore, the fastest source should be listed first.

More apt versions support source lists in the form of sources. list. d/directory. You can easily arrange source entries such:

$ Cd/etc/apt/sources. list. d/
$ Ls
00. list debian.ustc.edu.cn-> local
50. list debian.ustc.edu.cn _ src-> mirrors.geekbone.org
$ Ll *. list
Lrwxrwxrwx 1 root 5 2006-10-28. list-> local
Lrwxrwxrwx 1 root 18 50. list-> debian.ustc.edu.cn
$ Cat local
Deb file:/home/user debs/
$ Cat debian.ustc.edu.cn
Deb http://debian.ustc.edu.cn/debian sid main contrib non-free
Deb http://debian.ustc.edu.cn/debian-multimedia unstable main
Deb http://debian.ustc.edu.cn/debian-uo sid marillat misc ustc
Deb http://debian.ustc.edu.cn/debian-uo sid marillat misc ustc
Deb http://debian.ustc.edu.cn/rarewares.org sid main
$ Cat debian.ustc.edu.cn _ src
Deb-src http://debian.ustc.edu.cn/debian sid main contrib non-free
$ Cat mirrors.geekbone.org
Deb http://mirrors.geekbone.org/debian sid main contrib non-free

The advantage of this arrangement is that apt only recognizes *. the list file is an available source list and entries are arranged in the order of file names. When you need to add, remove, or adjust the source priority, you only need to perform these operations [0-9] [0-9]. the list symbolic link does not need to touch the actual list file.

View Original address
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.