Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS modify yum update source     - Orionode source Linux Mint installation (Linux)

- CMake Quick Start Tutorial (Linux)

- RHEL6.5 replace local YUM source (Linux)

- CentOS7 build GlusterFS (Linux)

- C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)

- Linux detection command (vmstat) (Linux)

- build Android environment on Ubuntu 12.04 (Server)

- Use Python automatically cleared Android Engineering excess resources (Programming)

- Compile and install Ubuntu Linux 4.0.5 kernel, network and fix vmware kernel module compilation error (Linux)

- How to add a new hard disk without restarting the CentOS 7 / RHEL 7 virtual machine (Linux)

- Attic-- delete duplicate data backup program (Linux)

- Create your own YUM repository (Linux)

- expdp reported ORA-39181 Export Processing Method (Database)

- Linux Firewall Builder shorewall (Linux)

- Denyhosts prevent hackers using SSH scanning (Linux)

- Java Collections Framework interfaces map (Programming)

- Linux, Oracle listen address modification (Database)

- Linux find command usage summary (Linux)

- PULL operation mechanism parsing XML Comments (Programming)

- Security Configuration SQL Server 2000 database tutorial (Linux)

  CentOS modify yum update source
  Add Date : 2018-11-21      
  Usually when you install software or update CentOS, yum is the most simple and convenient way, and the system defaults to the source address yum update unstable, it is necessary to update the source address modification, general domestic use 163 faster.

yum update source configuration file: /etc/yum.repos.d/CentOS-Base.repo

1. Before you back up the file modification

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2. Modify the update source configuration file (CentOS6 address, similar to other editions)

vim open the configuration file:

vim /etc/yum.repos.d/CentOS-Base.repo

Copy and paste the following to the configuration file below:

# CentOS-Base.repo
# The mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You should use this for CentOS updates
# Unless you are manually picking other mirrors.
# If the mirrorlist = does not work for you, as a fall back you can try the
# Remarked out baseurl = line instead.
name = CentOS- $ releasever - Base
baseurl = http: //mirrors.oschina.com/centos/$releasever/os/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

name = CentOS- $ releasever - Updates
baseurl = http: //mirrors.oschina.com/centos/$releasever/updates/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

name = CentOS- $ releasever - Addons
baseurl = http: //mirrors.oschina.com/centos/$releasever/addons/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

name = CentOS- $ releasever - Extras
baseurl = http: //mirrors.oschina.com/centos/$releasever/extras/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

name = CentOS- $ releasever - Plus
baseurl = http: //mirrors.oschina.com/centos/$releasever/centosplus/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

Finally, save the configuration file.

3. Update yum source configuration

yum update

(If you do not want to update the software, you can select N)
- Implement firewall function on a closed Linux machine (Linux)
- Based on Python: OpenCV simple image manipulation (Programming)
- RegExp object implements regular match --JavaScript (Programming)
- Linux system security reinforcement system by masquerading method (Linux)
- Python-- for anomalies and reflection of objects articles (Programming)
- To install and use the Doxygen under Linux (Linux)
- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)
- Dockerfile use to build a mirror-based CentOS 7 (Linux)
- awk variables (Linux)
- To compile and install Redis Linux and master-slave replication configuration (Database)
- Linux administrator should command: sed and awk (Linux)
- Archlinux installation tutorial (Linux)
- MySQL optimization tabs (Database)
- Linux Shell Scripting multithreading (Programming)
- Unix / Linux commonly used to clean up disk space command (Linux)
- Mumble installation source VoIP application on Ubuntu (Linux)
- Those functions under Linux you do not know the df command (Linux)
- Linux System shutdown procedures (Linux)
- CentOS 6.2 install git error Perl5 (Linux)
- Simple to use multi-threaded programming under Linux mutex and condition variable (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.