Centos replacement source and software update operations

Source: Internet
Author: User

System Version:

CentOS-6.4-x86_64-minimal This system is a 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 [[email protected] ~] # CD/etc/yum. Repos. d/ [[Email protected] ~] # Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo [[Email protected] ~] # MV CentOS-Base.repo CentOS-Base.repo.bak [[Email protected] ~] # MV CentOS6-Base-163.repo CentOS-Base.repo 2. Yum source update [[email protected] ~] # Yum clean all & Yum makecache & Yum Update-y 3. Complete. Yum command tool Example 1. upgrade the system [[email protected] ~] # Yum Update 2. Install the specified Software Package [[email protected] ~] # Yum-y install mysql-Server 3. Upgrade the specified Software Package [[email protected] ~] # Yum-y update MySQL 4. Uninstall the specified Software Package [[email protected] ~] # Yum-y remore MySQL 5. View installed and available software groups in the system. For available software groups, you can install [[email protected] ~] # Yum grouplist 6. Install a software group in the available software group displayed in the previous command [[Email protected] ~] # Yum-y groupinstall Emacs 7. Update the software package in the specified software group [[email protected] ~] # Yum-y groupupdate Emacs 8. Uninstall the software package in the specified software group [[email protected] ~] # Yum-y groupremove Emacs 9. Clear the cache RPM header file and package file [[email protected] ~] # Yum clean all 10. Search for related software packages [[email protected] ~] # Yum-y search Emacs 11. display the information of the specified Software Package [[email protected] ~] # Yum info Emacs 12. query the dependent packages of a specified Software Package [[email protected] ~] # Yum deplist Emacs 13. list all software packages starting with Yum [[email protected] ~] # Yum list Yum \ * 14. List RPM packages installed but not included in the resource library [[Email protected] ~] ## 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.