About Sources. List and apt-Get [reprint]

Source: Internet
Author: User

I personally think that the greatest convenience of Debian is to install software with APT-get. The working principle of APT-Get is probably like this:/etc/APT/Sources. ListSome server settings are stored in the file. There are a lot of software on these servers that can be used for Debian. For example, mySources. ListIt looks like this (for simplicity, we will not introduce how to use VI to edit this file, which will be mentioned at the end of the article ):
Deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable contrib main non-free
Deb http://mirror.dlut.edu.cn/debian unstable main contrib non-free
Deb http://mirror.dlut.edu.cn/debian-non-US unstable/non-US main contrib non-free
Deb http://mirror.dlut.edu.cn/debian-security stable/updates main
Deb http://debian.ustc.edu.cn/debian Sid main non-free contrib
Deb-Src http://debian.ustc.edu.cn/debian Sid main non-free contrib
Deb http://debian.ustc.edu.cn/debian-non-US SID/non-US main non-free contrib
Http://debian.ustc.edu.cn/debian-uo Sid marillat Java MISC USTC
If you are an CERNET user, you can put these on your own.Sources. ListIf you are a public network user, you may need to ask other users about the server that suits you.

Save your ownSources. ListThen, we need to execute apt-Get update as root. The purpose of this command is to allow aptSources. ListDownload some information from the server listed in to the local buffer. This information allows apt to know which server has software and version numbers, and change each time.Sources. ListRun apt-Get update once to make the change take effect.

The command used to install the software is apt-Get install. For example, to install lumaqq (qq written by Luma in Java), the command is apt-Get install lumaqq. That's right, it's that simple, no need to immerse yourself in it. /configure, make, make install.

APT also frequently uses apt-cache search XXX, which searches for software related to XXX in the local buffer.

About Sources. List and apt-Get [reprint]

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.