CentOS network change

Source: Internet
Author: User
System version: CentOS-6.4-x86_64-minimal this system is CD version, so it is basically a minimal installation version. Now, the system's default source is replaced with an easy source to ensure the speed of software download. Step 1: Download the new source and back up the local source [root @ localhost ~] # Cd/etc/yum. repos. d/[root @ localhost ~] # & N system version: CentOS-6.4-x86_64-minimal this system is CD version, so it is basically a minimal installation version. Now, the system's default source is replaced with an easy source to ensure the speed of software download. The procedure is as follows:
1. download the new source and back up the local source [root @ localhost ~] # Cd/etc/yum. repos. d/[Root @ localhost ~] # Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo[Root @ localhost ~] # Mv CentOS-Base.repo CentOS-Base.repo.bak[Root @ localhost ~] # Mv CentOS6-Base-163.repo CentOS-Base.repo2. update yum source [root @ localhost ~] # Yum clean all & yum makecache & yum update-y3. complete. Yum command tool example 1. upgrade the system [root @ localhost ~] # Yum update 2. install the specified software package [root @ localhost ~] # Yum-y install mysql-server 3. upgrade the specified software package [root @ localhost ~] # Yum-y update mysql 4. uninstall the specified software package [root @ localhost ~] # Yum-y remore mysql 5. View installed and available software groups in the system. for available software groups, you can choose to install [root @ localhost ~] # Yum grouplist 6. install a software group in the available software group displayed in the previous command [root @ localhost ~] # Yum-y groupinstall Emacs 7. update the software package in the specified software group [root @ localhost ~] # Yum-y groupupdate Emacs 8. uninstall the software package in the specified software group [root @ localhost ~] # Yum-y groupremove Emacs 9. clear the cache rpm header file and package file [root @ localhost ~] # Yum clean all 10. search for related software packages [root @ localhost ~] # Yum-y search Emacs 11. display the information of the specified software package [root @ localhost ~] # Yum info Emacs 12. query the dependent package of a specified software package [root @ localhost ~] # Yum deplist emacs 13. list all software packages starting with yum [root @ localhost ~] # Yum list yum \ * 14. list rpm packages installed but not included in the resource library [root @ localhost ~] # Yum list extras
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.