Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RedHat yum configuration and the prompt     - Configuring Haproxy log support (syslog logging support) (Server)

- To obtain installation package (RPM) under RHEL6 (Linux)

- Ubuntu Server 14.04 installation Web server (Linux + Apache + MySQL + PHP) (Server)

- Java NIO in the world (Programming)

- To help you easily protect the Linux System (Linux)

- Ubuntu install OpenMPI (Linux)

- Linux, Firefox unloading and installation and upgrade (Linux)

- Install minimize RHEL / CentOS 7 things to do (Linux)

- Linux server dual-card dual-IP and single-card dual-IP configuration method (ReHat / CentOS) (Server)

- Java 8 perspective annotation types (Programming)

- Everyone should know something about TCP (Linux)

- Installation Elementary OS Freya to do some settings (Linux)

- How to configure Apache Solr on Ubuntu 14/15 (Server)

- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)

- Dell R710 server disk recovery database one case (record) (Server)

- Lenovo E431 notebook CentOS system is installed wireless network card driver (Linux)

- Linux environment RabbitMQ installation and monitoring of plug-in installation (Linux)

- Installation Sublime Text 3 (Build 3065) text editor in Ubuntu (Linux)

- The Samba service does not have permission to access (Server)

- Linux system find command Detailed (Linux)

 
         
  RedHat yum configuration and the prompt
     
  Add Date : 2018-11-21      
         
       
         
  First, RedHat configuration of yum

1. Make sure that RHEL5 already installed yum

[Root @ lvs-master ~] # rpm -qa | grep yum
yum-metadata-parser-1.1.2-3.el5
yum-updatesd-0.9-2.el5
yum-3.2.22-26.el5
yum-security-1.1.16-13.el5
yum-rhn-plugin-0.5.4-15.el5

2. Modify the source profile #vim /etc/yum.repos.d/CentOS-Base.repo

[Base]
name = CentOS-5-Base
# Mirrorlist = http: //mirrorlist.centos.org/ release = $ releasever5 & arch = $ basearch & repo = os?
# Baseurl = http: //mirror.centos.org/centos/$releasever/os/$basearch/
baseurl = http: //ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates
[Update]
name = CentOS-5-Updates
# Mirrorlist = http: //mirrorlist.centos.org/ release = 4 & arch = $ basearch & repo = updates?
baseurl = http: //ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

#packages used / produced in the build but not released
[Addons]
name = CentOS-5-Addons
# Mirrorlist = http: //mirrorlist.centos.org/ release = 4 & arch = $ basearch & repo = addons?

baseurl = http: //ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that may be useful
[Extras]
name = CentOS-5-Extras
# Mirrorlist = http: //mirrorlist.centos.org/ release = 4 & arch = $ basearch & repo = extras?

baseurl = http: //ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that extend functionality of existing packages
[Centosplus]
name = CentOS-5-Plus
# Mirrorlist = http: //mirrorlist.centos.org/ release = 4 & arch = $ basearch & repo = centosplus?
baseurl = http: //ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

#contrib - packages by Centos Users
[Contrib]
name = CentOS-5-Contrib
# Mirrorlist = http: //mirrorlist.centos.org/ release = 4 & arch = $ basearch & repo = contrib?
baseurl = http: //ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Vi dag.repo
[Dag]
name = Dag RPM Repository for RHEL5
baseurl = http: //ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled = 1
gpgcheck = 1
gpgkey = http: //ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

3. Import the key
#rpm --import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

4. Run the test
#yum update

5. # yum clean all

Method two:

# Cd /etc/yum.repos.d/
#mv CentOS-Base.repo CentOS-Base.repo.bak
#wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

The document reads as follows:

[Base]
name = CentOS-5 - Base
baseurl = http: //centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[Update]
name = CentOS-5 - Updates
baseurl = http: //centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used / produced in the build but not released
[Addons]
name = CentOS-5 - Addons
baseurl = http: //centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[Extras]
name = CentOS-5 - Extras
baseurl = http: //centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck = 1
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[Centosplus]
name = CentOS-5 - Plus
baseurl = http: //centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[Contrib]
name = CentOS-5 - Contrib
baseurl = http: //centos.ustc.edu.cn/centos/5/contrib/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages in testing
[Testing]
name = CentOS-5 - Testing
baseurl = http: //centos.ustc.edu.cn/centos/5/testing/$basearch/
gpgcheck = 1
enabled = 0
gpgkey = http: //mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Second, the prompt "This system is not registered with RHN" solution

1. Uninstall yum package installed by default rhel

View yum package
rpm -qa | grep yum

Uninstall it
rpm -qa | grep yum | xargs rpm -e --nodeps

2. Download the new package yum

wget http://CentOS.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

The above three rpm address, may be because of changes in version number change and we open the address (http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/) and then find the corresponding name on the inside download.

And the installation of
rpm -ivh yum- *

Note: yum and yum-fastestmirror interdependent, so can be installed simultaneously.

3. Download yum configuration source

wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo

4. Modify the configuration source

The CentOS-Base.repo inside the url into NetEase yum source http://mirrors.163.com/centos/5/os/x86_64/CentOS/ (what packages can be clearly seen), praise our company, do not use foreign websites, the speed pretty fast.

5. Update All

Copy the modified CentOS-Base.repo to the next /etc/yum.repos.d/ directory and execute yum update in the catalog unified update can be completed, which installed the software what is more convenient, otherwise, Oh, it is something to keep you busy. . . Linux package dependency relationship that is quite a headache.
     
         
       
         
  More:      
 
- Actual SSH port forwarding (Linux)
- Java developers question (Programming)
- rpm package specify the installation path (Linux)
- To use Java arrays implement the order form (Programming)
- Preliminary understanding of SELinux security management (Linux)
- Java class HashSet (Programming)
- Some common Linux commands Study Notes (Linux)
- Vim Common Command Summary (Linux)
- OpenWRT environment to build (Linux)
- top command causes the system load increases (Linux)
- 10 Linux in the passwd command examples (Linux)
- Oracle users to automatically increase the partition table (Database)
- Java source implementation of the observer pattern instance (Programming)
- Linux System Administrator common interview questions and answers 30 (Linux)
- stat Usage: Get permission to file the corresponding figures (Linux)
- Linux startup and logon security settings (Linux)
- How to handle special characters in JSON (Programming)
- Open container cluster management system architecture and components introduced Kubernetes (Server)
- Linux System Getting Started Learning: Using yum to download the RPM package without installing (Linux)
- Installation CD audio file extraction tool Flacon (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.