我的思路就是通过挂载安装DVD光盘,然后在安装:最后尝试着做了一下最后居然成功,以下是我的自己的设置步骤:
mount /dev/cdrom /mnt
vi /etc/yum.repos.d/local.repo
复制如下内容:红色字体为修改后的RPM包的路径
[rhel5-local]
name=Red Hat Enterprise Linux 5 Local Repository
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
最后退出保存:
测试安装一下mysql:
[root@localhost /]# yum install mysql
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.45-7.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
mysql i386 5.0.45-7.el5 rhel5-loacal 4.1 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 4.1 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: mysql ######################### [1/1]
Installed: mysql.i386 0:5.0.45-7.el5
Complete!
[root@localhost /]# rpm -q mysql
mysql-5.0.45-7.el5
[root@localhost /]#
安装成功。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27038344/viewspace-733287/ ,如需转载,请注明出处,否则将追究法律责任。