Apt-getupdate or aptitudeupdate to update the source list

Source: Internet
Author: User
Apt-getupdate or aptitudeupdate is used to update the source list-Linux Release Technology-Debian information. For details, see the following. Apt-get update or aptitude update to update the source list
Sudo apt-get update
Sudo apt-get dist-upgrade
Debian uses the following command to automatically download and install software from the debian source.
Apt-get or aptitude
Apt-get update: update source list
Apt-cache search xxx: search for xxx software in the source
Apt-get install xxx: install xxx software from the source
Apt-get download xxx: download the xxx debian deb package from the source
Apt-get source xxx: Download the source code package of xxx from the source
Apt-get remove xxx Delete package
Aptitude, a more advanced tool, is recommended.
Aptitude can be used for command line package management and image interface management.
Aptitude update
Aptitude get xxx
Aptitude search xxx
Aptitude remove xxx
Aptitude purge xxx
Aptitude download xxx

'Apt-spy' automatically creates 'Sources. list' Based on the site response time and bandwidth '.
# Apt-get install apt-spy
# Mv sources. list sources. list. bak // backup
# Man apt-spy // obtain detailed usage
# Apt-spy update // update your image list file/var/lib/apt-spy/mirrors.txt
# Apt-spy-d testing-a Asia
// Search for the fastest testing image in Asia and generate the sources. list file. You can also use the-o parameter to specify the file to be written.

Set DNS and directly write/etc/resolv. conf.

Set the IP address. You can directly edit the/etc/network/interfaces file, and write the fixed IP address as follows:
Auto lo eth0

Iface lo inet loopback

Iface eth0 inet static
Address 192.168.2.2
Netmask 255.255.255.0
Broadcast 192.168.2.255
Gateway 192.168.2.1
Set the address and gateway. The last section in DHCP is as follows:

Auto eth0
Iface eth0 inet dhcp

After this file is changed, restart the network:

/Etc/init. d/networking restart
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.