Multithreading upgrade your debian

Source: Internet
Author: User
Multi-threaded upgrade your debian-Linux Release Technology-Debian information. See the following for details. I know many objections to the use of multi-threaded download methods, such as occupying a strong connection resource affects others' usage and violating the FREE spirit. However, if the size of the file to be downloaded is too large and the connection speed of the resource site is extremely slow, the advantages of multi-thread download are obvious. Of course, you don't need to use it.

FAQ: upgrade from the http://security.debian.org is slow (sometimes less than 2 kb/s), encounter a major software package to upgrade openoffice... I'm down!

The following uses upgrading openoffice.org-bin (40 MB) as an example.

1. sources. list
Deb http://security.debian.org/etch/updates main contrib

2. Determine the "initial" URL of the installation source based on the source is
Http://security.debian.org/pool/updates/main/o/openoffice.org/

The rule is http://security.debian.org/+ pool + updates + main (associated with sources. list), followed by the first letter of the openoffice o, followed by the suite name openoffice.org. The obtained URL is not complete. Open firefox and paste the "initial" URL in the address bar. You can view the directory structure of the installation source!

If it is not found, replace "main" with "contrib" and try again. These deb packages cannot be hidden.

3. Find the deb corresponding to penoffice.org-bin. Generally, i386 is used:

Openoffice.org-bin_1.1.3-9sarge7_i386.deb

4. The complete URL is

Http://security.debian.org/pool/... 3-9sarge7_i386.deb

5. Download and copy the file to/var/cache/apt/archives/through the multi-thread download tool. I use axel to download the file from 10 threads:

Axel-a-n 10 http://security.debian.org/pool/... 3-9sarge7_i386.deb

6. Now apt-get upgrade does not require you to download openoffice.org-bin.

Conclusion: The download speed is generally increased to 30 ~ 40KB/s. For different installation sources, you can also follow this method to determine the "initial" URL and obtain the complete URL of the deb package through a browser.

Happy upgrade!

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.