CentOS network change

Source: Internet
Author: User

CentOS network change
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, yum source update [root @ localhost ~] # Yum clean all & yum makecache & yum update-y3. Complete. Yum command tool Example 1. upgrade the system [root @ localhost ~] # Yum update2: Install the specified Software Package [root @ localhost ~] # Yum-y install mysql-server3, upgrade the specified package [root @ localhost ~] # Yum-y update mysql4. Uninstall the specified Software Package [root @ localhost ~] # Yum-y remore mysql5. View installed and available software groups in the system. For available software groups, you can choose to install [root @ localhost ~] # Yum grouplist6: Install a software group in the available software group displayed in the previous command [root @ localhost ~] # Yum-y groupinstall Emacs7: update the software package in the specified software group [root @ localhost ~] # Yum-y groupupdate Emacs8: uninstall the software package in the specified software group [root @ localhost ~] # Yum-y groupremove Emacs9. Clear the cache rpm header file and package file [root @ localhost ~] # Yum clean all10. Search for related software packages [root @ localhost ~] # Yum-y search Emacs11: display the information of the specified Software Package [root @ localhost ~] # Yum info Emacs12: query the dependent package of a specified Software Package [root @ localhost ~] # Yum deplist emacs13. 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

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.