RHEL5.6更新yum源

Posted 星火燎原

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RHEL5.6更新yum源相关的知识,希望对你有一定的参考价值。

RHEL5.6更新yum源记录,2017年2月20日

root用户切换目录至:/etc/yum.repos.d/

[[email protected] yum.repos.d]# pwd
/etc/yum.repos.d
[[email protected] yum.repos.d]# ll
total 16
-rw-r--r-- 1 root root 1426 May 24  2009 rhel-debuginfo.repo
-rw-r--r-- 1 root root  561 Feb 20 06:25 rhel-debuginfo.repo.bak
-rw-r--r-- 1 root root  222 Dec 14  2010 rhel-source.repo

备份rhel-debuginfo.repo文件。

下载仓库文件:

wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

修改文件名称:

mv CentOS-Base.repo rhel-debuginfo.repo

试验是否成功:

[[email protected] yum.repos.d]# yum list | grep mysql
This system is not registered with RHN.
RHN support will be disabled.
mysql.i386                                 5.0.95-5.el5_9              installed
mysql.x86_64                               5.0.95-5.el5_9              installed
mysql-devel.i386                           5.0.95-5.el5_9              installed
mysql-devel.x86_64                         5.0.95-5.el5_9              installed
mysql-server.x86_64                        5.0.95-5.el5_9              installed
apr-util-mysql.x86_64                      1.2.7-11.el5_5.2            base     
bytefx-data-mysql.x86_64                   1.2.4-2.el5.centos          extras   
freeradius-mysql.x86_64                    1.1.3-1.6.el5               base     
freeradius2-mysql.x86_64                   2.1.12-5.el5                base     
libdbi-dbd-mysql.x86_64                    0.8.1a-1.2.2                base     
mod_auth_mysql.x86_64                      1:3.0.0-3.2.el5_3           base     
mysql-bench.x86_64                         5.0.95-5.el5_9              base     
mysql-connector-odbc.x86_64                3.51.26r1127-2.el5          base     
mysql-connector-odbc64.x86_64              5.1.8-1.el5                 base     
mysql-test.x86_64                          5.0.95-5.el5_9              base     
mysql51.x86_64                             1-9.el5                     base     
mysql51-build.x86_64                       1-9.el5                     base     
mysql51-mysql.x86_64                       5.1.70-1.el5                base     
mysql51-mysql-bench.x86_64                 5.1.70-1.el5                base     
mysql51-mysql-libs.x86_64                  5.1.70-1.el5                base     
mysql51-mysql-server.x86_64                5.1.70-1.el5                base     
mysql51-mysql-test.x86_64                  5.1.70-1.el5                base     
mysql51-runtime.x86_64                     1-9.el5                     base     
mysql55.x86_64                             1-12.el5                    base     
mysql55-build.x86_64                       1-12.el5                    base     
mysql55-mysql.x86_64                       5.5.45-1.el5                update   
mysql55-mysql-bench.x86_64                 5.5.45-1.el5                update   
mysql55-mysql-devel.i386                   5.5.45-1.el5                update   
mysql55-mysql-devel.x86_64                 5.5.45-1.el5                update   
mysql55-mysql-libs.x86_64                  5.5.45-1.el5                update   
mysql55-mysql-server.x86_64                5.5.45-1.el5                update   
mysql55-mysql-test.x86_64                  5.5.45-1.el5                update   
mysql55-runtime.x86_64                     1-12.el5                    base     
pdns-backend-mysql.x86_64                  2.9.21-4.el5.centos         extras   
php-mysql.x86_64                           5.1.6-45.el5_11             update   
php-pear-MDB2-Driver-mysql.noarch          1.4.1-3.el5.centos          extras   
php53-mysql.x86_64                         5.3.3-26.el5_11             update   
qt4-mysql.x86_64                           4.2.1-1.el5_7.1             base     
rsyslog-mysql.x86_64                       3.22.1-7.el5                base     
rsyslog5-mysql.x86_64                      5.8.12-7.el5_11             update   
[[email protected] yum.repos.d]#

以上是关于RHEL5.6更新yum源的主要内容,如果未能解决你的问题,请参考以下文章

linux的一些扩展

RHEL5.6的双网卡配置

RHEL5-6普通用户提权

RHEL5-6普通用户提权root

ubuntu16.04 yum报错:There are no enabled repos. Run “yum repolist all“ to see the repos you have.(代码片段

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法(代码片段