Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RedHat yum configuration and the prompt     - Ubuntu 14.04 build Hadoop 2.5.1 standalone and pseudo-distributed environment (32-bit) (Server)

- CentOS iptables firewall configuration (Linux)

- Linux foreground to background process switch (Linux)

- Linux file permissions and access modes (Linux)

- RedHat 6.5 installation and deployment Openfire (Server)

- Intrusion analysis and prevention tools Knark under Linux platform (Linux)

- C data types is how it is supported by most computer systems (Programming)

- Oracle GoldenGate Installation and Configuration Tutorial Introduction (Database)

- The source code compiler installation Nginx 1.8.0 under Ubuntu 14.10 (Server)

- Simple Linux file system - df, du, ln (Linux)

- Node.js Getting the basics: Helloworld! (Linux)

- Setting Linux desktop environment, achieve HiDPI display support (Linux)

- Advanced Search Oracle study notes (Database)

- Ubuntu 14.04.1 LTS compile and install the new kernel (Linux)

- PHP with FastCGI and mod_php Comments (Server)

- Boost notes --Asio - (1) a simple small example of synchronous communication (Programming)

- Postgres-X2 deployment steps (Database)

- CentOS6 installed Tomcat (Server)

- swap space is insufficient cause OOM kill MySQL Case (Database)

- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (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:      
 
- Linux basic articles of the boot process (Linux)
- To install Ganglia configuration of experience under CentOS 5.5 (Linux)
- Mac OS X Server installation and application (Linux)
- Ubuntu 12.04 installation instructions under GAMIT10.40 (Linux)
- Web cache basics: terminology, HTTP headers, and caching policies (Server)
- Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)
- Ubuntu deployed under regular tasks with crontab (Linux)
- SSH port forwarding application (Server)
- Linux system started to learn: Teaches you install Fedora 22 on VirtualBox (Linux)
- Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem (Linux)
- Ubuntu Install OpenSSL (Linux)
- Python Socket Network Programming (Programming)
- Apache Spark1.1.0 deployment and development environment to build (Server)
- New experience Budgie (Budgerigar) desktop environment (Linux)
- MongoDB collection data migration to MySQL database (Database)
- ld.so.conf.d profile (Linux)
- OpenVPN offsite interconnecting room availability and load balancing solution (Server)
- Python programming style (Programming)
- Oracle11g build physical standby database (Database)
- VMware virtual machine to install CentOS 7 (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.