Find a quick software source

Source: Internet
Author: User
Find a quick software source-Linux Release Technology-Debian information. The following is a detailed description. Author: xxmw

Install search software
# Sudo apt-get install apt-spy
Back up the original source list file
# Sudo mv/etc/apt/sources. list/etc/apt/sources. list. bak
Update the image list file/var/lib/apt-spy/mirrors.txt
# Sudo apt-spy update
Global Search lenny
# Sudo apt-spy-d lenny
Long Wait, please wait.
After searching, the source list file is generated automatically.

Manually add software sources, such as the source of Beijing dragon core Club
# Sudo vi/etc/apt/sources. list
Move the cursor to the appropriate position, press the Insert key to enter the edit mode, press enter to insert a row, and enter
Deb ftp://debian.bjlx.org.cn/loongson/lenny ./
Press ESC to exit the editing mode. Enter
: Wq
Save and exit

======= Apt-spy introduction ========
Apt-spy is a program for managing and installing media. The following describes how to use it:
Usage: apt-spy [options]
Option:
-D distribution: select the release version of debian, for example, stable. This parameter must be used in addition to the upgrade.
-A area: select the area for testing, for example, Aisa.
-C config specifies the configuration file.
-E number indicates the number of servers to be tested.
-F file: capture the specified file during the test (the file is relative to the debian base path ).
-I file specifies the input file, which is used with the-w parameter.
-M mirror-list: Specifies the image list file to be upgraded.
-O output-file: redirects the output to the specified file.
-P proxy specifies the proxy server used, which must follow the format of [server]: [port.
-S country_list specifies the country to be tested. It cannot be used together with the-a parameter.
-T time specifies the timeout time for each server during the test. It can only be a positive integer.
-U update-the URL obtains the image list update from the specified URL.
-W file output-I parameter provides the list of the first few image servers with the fastest speed (the first five by default) in the server list ).
-N number indicates the number of servers output by the-w parameter.
-V: Output version information.
-H: output current help information
Update the image site list.
You only need to add a parameter-t to specify the timeout time to greatly accelerate the test process.
Country symbols in file/etc/apt-spy.conf
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.