在redhat enterprise linux 5 上如何安装yum?各位高手。指点一下。感激不尽啊。谢谢
文章评论
共有 8 条评论
n10th 于 2011-07-18 23:38:10发表:
值得借鉴
jhasheng 于 2011-06-30 21:05:47发表:
Thanks for your share!
szitonline 于 2009-12-07 20:14:17发表:
谢谢楼主。我申请了RHN30天试用的。现在YUM可以使用啦。谢谢各位帮忙的大侠。
ixdba 于 2009-12-06 21:18:57发表:
[root@web1 ~]# yum install rsh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.jaist.ac.jp
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package rsh.x86_64 0:0.17-40.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Updating:
rsh x86_64 0.17-40.el5 base 44 k
Total download size: 44 k
Is this ok [y/N]: y
Downloading Packages:
rsh-0.17-40.el5.x86_64.rpm | 44 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : rsh [1/2]
Cleanup : rsh [2/2]
Updated: rsh.x86_64 0:0.17-40.el5
Complete!
ixdba 于 2009-12-06 21:18:00发表:
引用:
我用YUM功能是提示 This system is not registered with RHN. RHN support will be disabled. (6)m:b
szitonline 发表于 2009-12-6 19:14
[root@web1 ~]# more /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Addons
baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Plus
baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
szitonline 于 2009-12-06 19:14:03发表:
我用YUM功能是提示 This system is not registered with RHN. RHN support will be disabled. (6)m:b
n10th 于 2011-07-18 23:38:10发表:
值得借鉴
jhasheng 于 2011-06-30 21:05:47发表:
Thanks for your share!
szitonline 于 2009-12-07 20:14:17发表:
谢谢楼主。我申请了RHN30天试用的。现在YUM可以使用啦。谢谢各位帮忙的大侠。
ixdba 于 2009-12-06 21:18:57发表:
[root@web1 ~]# yum install rsh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.jaist.ac.jp
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package rsh.x86_64 0:0.17-40.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Updating:
rsh x86_64 0.17-40.el5 base 44 k
Transaction Summary
====================================================================================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 44 k
Is this ok [y/N]: y
Downloading Packages:
rsh-0.17-40.el5.x86_64.rpm | 44 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : rsh [1/2]
Cleanup : rsh [2/2]
Updated: rsh.x86_64 0:0.17-40.el5
Complete!
ixdba 于 2009-12-06 21:18:00发表:
rhel5版本没有序列号无法使用yum,你的yum已经安装成功了,就是yum配置文件信息要改下。用centos的吧。看看我的:
[root@web1 ~]# more /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Addons
baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Plus
baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
szitonline 于 2009-12-06 19:14:03发表:
我用YUM功能是提示 This system is not registered with RHN. RHN support will be disabled. (6)m:b
szitonline 于 2009-12-06 18:25:10发表:
我查看了光碟啊。好多YUM的 RPM 包。具体哪一个?有哪位大哥知道的。指导一下。感激不尽啊。谢谢先。
ixdba 于 2009-12-05 17:05:46发表:
在光盘找到yum的rpm包,好像有两个,然后rpm -ivh 后面跟上包名即可!