标签:ready prot sof ack port metadata oracl register data-
目录
[root@db01 ~]#rpm -qa | grep yum | xargs rpm -e --nodeps
[root@db01 ~]#rpm -qa | grep yum |
[root@db01 ~]# cd /tmp/
[root@db01 tmp]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
[root@db01 tmp]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
[root@db01 tmp]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
[root@db01 tmp]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
[root@db01 tmp]# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
[root@db01 tmp]# rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
安装yum-3.2.29-81.el6.centos.noarch.rpm的时候提示需要安装python-urlgrabber-3.9.1-11.el6.noarch.rpm,下载相应的包,但是在安装python-urlgrabber-3.9.1-11.el6.noarch.rpm的时候提示:
warning: /root/python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
先下载RPM-GPG-KEY-CentOS-6的命令如下
wget http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
然后运行rpm --import RPM*
安装完成 python-urlgrabber-3后继续:【有顺序,有依赖】
[root@db01 tmp]# rpm -ivh yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm yum-3.2.29-81.el6.centos.noarch.rpm
[root@db01 tmp]# yum clean all
[root@db01 tmp]# yum makecache
备注:
以上的操作步骤来自网络,实际应用没有问题,这是联网状态下更新yum源;
其实在生产环境下不一定能连接外网,用的最多的是把安装盘mount到本地,设置本地yum源。
[root@db01 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@db01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 42G 5.4G 34G 14% /
tmpfs 2.0G 90M 1.9G 5% /dev/shm
/dev/sdb1 45G 9.0G 34G 22% /oracle
/dev/sdc1 40G 4.5G 33G 12% /soft
/dev/sr0 3.6G 3.6G 0 100% /mnt
在结尾出添加以下内容后保存
[root@db01 ~]# vi /etc/yum.conf
[RHEL]
name =Linux 6.5 DVD
baseurl=file:///mnt/Server/
gpgcheck=0
enabled=1
[root@db01 ~]# yum install lrzsz* Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. RHEL | 3.9 kB 00:00 ... Setting up Install Process Package lrzsz-0.12.20-27.1.el6.x86_64 already installed and latest version Nothing to do [root@db01 ~]#
备注:
在项目实施中,遇到此类问题,游刃有余才行哟^_^.
标签:ready prot sof ack port metadata oracl register data-
原文地址:https://www.cnblogs.com/kyeup/p/9286693.html