Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 7.0 local address and configure yum source address priority     - Linux file and directory permissions settings (Linux)

- Oracle local user login authentication fails ORA-01031 insufficient privileges (Database)

- Oracle () trunc function usage (Database)

- Linux Fundamentals of the memory management mechanism (Linux)

- MongoDB common optimization settings in Linux (Database)

- QBit development of micro-services (Server)

- Oracle Bug caused by the collection of AWR Snapshot fault (Database)

- Command line tool Tmux (Linux)

- php for Linux the MySQL extension module installation and configuration (Database)

- Debian 7 and Debian 8 users how to install Oracle Java 8 (Linux)

- Standard and IO redirection (Linux)

- Linux file system data file deletion problem space is not freed (Database)

- Linux basis: a comprehensive study pwd command (Linux)

- MySQL related statements (CRUD) (SQLyog software) (Database)

- Linux system - The understanding cpu load (Linux)

- Debian (Wheezy) were installed wxPython GUI development (Linux)

- To configure and use multiple Tomcat under Linux environment (Server)

- Running the open-source Swift under Linux platform (Linux)

- Ubuntu Live CD by updating Grub resume boot the Boot Menu (Linux)

- Oracle for Oracle GoldenGate to achieve a one-way synchronization DDL operations (Database)

 
         
  CentOS 7.0 local address and configure yum source address priority
     
  Add Date : 2018-11-21      
         
         
         
  First attach local CentOS 7.0 yun source base address and epel source address:

vi /etc/yum.repos.d/CentOS-local.repo
Add the following:
[Base-local]
name = CentOS-local
baseurl = http: //192.168.1.200/yum/centos/7.0/os/x86_64
gpgcheck = 0
gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7
priority = 1

[Updates-local]
name = CentOS-local
baseurl = http: //192.168.1.200/yum/centos/7.0/updates/x86_64
gpgcheck = 0
gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7
priority = 1

vi /etc/yum.repos.d/CentOS-local-epel.repo
Add the following:
[Base-local-epel]
name = CentOS-local
baseurl = http: //192.168.1.200/yum/epel/centos/7.0/os/x86_64/
gpgcheck = 0
gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7
priority = 1

1. Install the yum-plugin-priorities package
# Yum install yum-plugin-priorities

2. Modify /etc/yum.repos.d directory CentOS-Base.repo, CentOS-local.repo priority

// Add priority = N to direct

Attached CentOS-Base.repo configuration file:

Configuration files attached CentOS-local.repo

It can be seen locally yum source priority source base high than the official website, so when yum install package, first in the local search, did not find the will to find Quguan network.

4, authentication:

yum clean all
yum install vim

Remarks:

1, to make the priority parameter is valid, you must install the yum-plugin-priorities plugin
2, N is an integer number of default priority is 99. The smaller the value, the higher the priority.;
     
         
         
         
  More:      
 
- Computer black magic: tail recursion (Programming)
- How to enable fbcon in Debian (Linux)
- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)
- Getting Started with Linux system to learn: how to get the process ID (PID) in the script (Linux)
- Database Blob data type conversion String (Programming)
- Ubuntu 12.04 64bit Install Source Insight 3.5 and create desktop icons (Linux)
- The Concept and Semantics of Java Memory Model (Programming)
- VSFTPD Security (Linux)
- Sshuttle A VPN-based transparent proxy that uses ssh (Server)
- phpinfo (): like phpinfo as a Python script (Programming)
- Linux Network Programming --epoll model Detailed principles and examples (Programming)
- Ubuntu 14.04, 13.10 install OpenCV 2.4.9 (Linux)
- Use window.name + iframe cross-domain access to data Detailed (Programming)
- RHEL7 system making use of OpenStack mirror (Linux)
- Ubuntu 15.10 How to install TeamViewer 11 (Linux)
- RHEL5 establish a local yum source (Linux)
- Linux input and output redirection (Linux)
- Loop arrays in C language is not easy to find a bug (Programming)
- About Git (Linux)
- File SUID, SGID, Sticky property (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.