- 浏览: 277804 次
- 性别:
- 来自: 大连
文章分类
最新评论
-
fei33423:
其实查看源代码你可以发现 update其实是调用了execut ...
JdbcTemplate 中execute和update的区别: -
CoderDream:
不错,感谢分享!
为绿色版NOTEPAD++添加右键菜单 -
t382159355:
谢谢分享..感激不尽.
java中this用法 -
風一樣的男子:
kankan1218 写道風一樣的男子 写道出乎意料??
菜B ...
结果出乎大部分人的意料 -
feipigzi:
引用java教程中的一段话:我们可以这样理解子类创建的对象:1 ...
结果出乎大部分人的意料
1.卸载rhel的yum相关的包
[root@virhost ~]# rpm -qa|grep yum
yum-updatesd-3.0.1-5.el5
yum-3.0.1-5.el5
yum-rhn-plugin-0.5.2-3.el5
yum-metadata-parser-1.0-8.fc6
yum-security-1.0.4-3.el5
[root@virhost ~]# yum update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Skipping security plugin, no data
No Packages marked for Update/Obsoletion
[root@virhost ~]# rpm -e yum-3.0.1-5.el5 --nodeps
[root@virhost ~]# rpm -qa|grep yum
yum-metadata-parser-1.0-8.fc6
yum-updatesd-3.0.1-5.el5
yum-rhn-plugin-0.5.2-3.el5
yum-security-1.0.4-3.el5
[root@virhost ~]# rpm -e yum-updatesd-3.0.1-5.el5
[root@virhost ~]# rpm -e yum-rhn-plugin-0.5.2-3.el5
[root@virhost ~]# rpm -e yum-metadata-parser-1.0-8.fc6(后来测试这个不应该卸载)
[root@virhost ~]# rpm -e yum-security-1.0.4-3.el5
2.安装centos的源
http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm
rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
[root@virhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.0.5-
1.el5.centos.5.noarch.rpm
[root@virhost ~]# rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
warning: yum-3.0.5-1.el5.centos.5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
yum-metadata-parser is needed by yum-3.0.5-1.el5.centos.5.noarch
[root@virhost ~]# wget http://192.168.1.250/yum-metadata-parser-1.0-8.fc6.i386.rpm
--07:48:55-- http://192.168.1.250/yum-metadata-parser-1.0-8.fc6.i386.rpm
Connecting to 192.168.1.250:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:22950 (22K) [text/plain]
Saving to: `yum-metadata-parser-1.0-8.fc6.i386.rpm'
100%[==================================================================>] 22,950 --.-K/s in
0.003s
07:48:55 (8.57 MB/s) - `yum-metadata-parser-1.0-8.fc6.i386.rpm' saved [22950/22950]
[root@virhost ~]# rpm -ivh yum-metadata-parser-1.0-8.fc6.i386.rpm
warning: yum-metadata-parser-1.0-8.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:yum-metadata-parser ########################################### [100%]
[root@virhost ~]# rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
warning: yum-3.0.5-1.el5.centos.5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
由此看来yum-metadata-parser-1.0-8.fc6.i386.rpm这个包不应该删除那
[root@virhost ~]# cd /etc/yum.repos.d/
[root@virhost yum.repos.d]# ls
rhel-debuginfo.repo
[root@virhost yum.repos.d]# vi CentOS-Base.repo这个文件内如是下面的
[base]
name=CentOS-5.1 - Base
baseurl=http://mirror.tini4u.net/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-5.1 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5.1 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5.1 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.1 ¨C Plus
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5.1 - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
然后随便测试了一个命令
[root@virhost yum.repos.d]# rpm -qa|grep postfix
刚好系统没有装这个包
[root@virhost yum.repos.d]# yum install postfix
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
updates 100% |=========================| 1.1 kB 00:00
contrib 100% |=========================| 1.1 kB 00:00
centosplus 100% |=========================| 1.1 kB 00:01
addons 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 834 kB 00:03
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:04
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postfix to pack into transaction set.
postfix-2.3.3-2.i386.rpm 100% |=========================| 41 kB 00:00
---> Package postfix.i386 2:2.3.3-2 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
postfix i386 2:2.3.3-2 extras 3.6 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.6 M
Downloading Packages:
(1/1): postfix-2.3.3-2.i3 100% |=========================| 3.6 MB 00:43
Running Transaction Test
warning: postfix-2.3.3-2: Header V3 DSA signature: NOKEY, key ID e8562897
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: postfix ######################### [1/1]
Installed: postfix.i386 2:2.3.3-2
Complete!
===========================================================================================================================
1。14.el5.centos.1.noarch.rpm
当你安装yum的时候提示依赖yum-fastestmirror,同时当你安装yum-fastestmirror的时候提示你依赖yum,相互依赖呀.没办法,只能两个一起安装了
[root@blinux ~]# rpm -ivh yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-3.2.22-26.el5.centos.noarch.rpm
2。包的下载地址:
http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/
[root@virhost ~]# rpm -qa|grep yum
yum-updatesd-3.0.1-5.el5
yum-3.0.1-5.el5
yum-rhn-plugin-0.5.2-3.el5
yum-metadata-parser-1.0-8.fc6
yum-security-1.0.4-3.el5
[root@virhost ~]# yum update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Skipping security plugin, no data
No Packages marked for Update/Obsoletion
[root@virhost ~]# rpm -e yum-3.0.1-5.el5 --nodeps
[root@virhost ~]# rpm -qa|grep yum
yum-metadata-parser-1.0-8.fc6
yum-updatesd-3.0.1-5.el5
yum-rhn-plugin-0.5.2-3.el5
yum-security-1.0.4-3.el5
[root@virhost ~]# rpm -e yum-updatesd-3.0.1-5.el5
[root@virhost ~]# rpm -e yum-rhn-plugin-0.5.2-3.el5
[root@virhost ~]# rpm -e yum-metadata-parser-1.0-8.fc6(后来测试这个不应该卸载)
[root@virhost ~]# rpm -e yum-security-1.0.4-3.el5
2.安装centos的源
http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm
rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
[root@virhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.0.5-
1.el5.centos.5.noarch.rpm
[root@virhost ~]# rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
warning: yum-3.0.5-1.el5.centos.5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
yum-metadata-parser is needed by yum-3.0.5-1.el5.centos.5.noarch
[root@virhost ~]# wget http://192.168.1.250/yum-metadata-parser-1.0-8.fc6.i386.rpm
--07:48:55-- http://192.168.1.250/yum-metadata-parser-1.0-8.fc6.i386.rpm
Connecting to 192.168.1.250:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:22950 (22K) [text/plain]
Saving to: `yum-metadata-parser-1.0-8.fc6.i386.rpm'
100%[==================================================================>] 22,950 --.-K/s in
0.003s
07:48:55 (8.57 MB/s) - `yum-metadata-parser-1.0-8.fc6.i386.rpm' saved [22950/22950]
[root@virhost ~]# rpm -ivh yum-metadata-parser-1.0-8.fc6.i386.rpm
warning: yum-metadata-parser-1.0-8.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:yum-metadata-parser ########################################### [100%]
[root@virhost ~]# rpm -ivh yum-3.0.5-1.el5.centos.5.noarch.rpm
warning: yum-3.0.5-1.el5.centos.5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
由此看来yum-metadata-parser-1.0-8.fc6.i386.rpm这个包不应该删除那
[root@virhost ~]# cd /etc/yum.repos.d/
[root@virhost yum.repos.d]# ls
rhel-debuginfo.repo
[root@virhost yum.repos.d]# vi CentOS-Base.repo这个文件内如是下面的
[base]
name=CentOS-5.1 - Base
baseurl=http://mirror.tini4u.net/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-5.1 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5.1 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5.1 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.1 ¨C Plus
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5.1 - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
http://centos.ustc.edu.cn/centos/5.1/os/$basearch/
gpgcheck=0
gpgkey=http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
然后随便测试了一个命令
[root@virhost yum.repos.d]# rpm -qa|grep postfix
刚好系统没有装这个包
[root@virhost yum.repos.d]# yum install postfix
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
updates 100% |=========================| 1.1 kB 00:00
contrib 100% |=========================| 1.1 kB 00:00
centosplus 100% |=========================| 1.1 kB 00:01
addons 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 834 kB 00:03
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:04
################################################## 2400/2400
primary.xml.gz 100% |=========================| 834 kB 00:08
################################################## 2400/2400
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postfix to pack into transaction set.
postfix-2.3.3-2.i386.rpm 100% |=========================| 41 kB 00:00
---> Package postfix.i386 2:2.3.3-2 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
postfix i386 2:2.3.3-2 extras 3.6 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.6 M
Downloading Packages:
(1/1): postfix-2.3.3-2.i3 100% |=========================| 3.6 MB 00:43
Running Transaction Test
warning: postfix-2.3.3-2: Header V3 DSA signature: NOKEY, key ID e8562897
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: postfix ######################### [1/1]
Installed: postfix.i386 2:2.3.3-2
Complete!
===========================================================================================================================
1。14.el5.centos.1.noarch.rpm
当你安装yum的时候提示依赖yum-fastestmirror,同时当你安装yum-fastestmirror的时候提示你依赖yum,相互依赖呀.没办法,只能两个一起安装了
[root@blinux ~]# rpm -ivh yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-3.2.22-26.el5.centos.noarch.rpm
2。包的下载地址:
http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/
发表评论
-
linux命令小记录
2011-03-25 15:42 8731. du -hs [folder path]:Summari ... -
Unix Cron Job Overlap解决方案
2011-01-14 14:42 1100if 指定的文件是否存在 if 文件内容(pid)活 ... -
Subversion的配置 权限文件authz配置的常见问题及解答
2010-12-24 18:19 1861<!-- [if gte mso 9]><x ... -
Linux时间管理
2010-11-26 16:28 1701Linux时间管理 ... -
linux时区时间修改 调整crontab时间与系统时间一致
2010-11-25 12:28 10121安装的虚拟机,没太注意时区,发现时区比中国上海的慢了16个小时 ... -
查看进程占用内存cpu信息,Linux命令—TOP
2010-09-28 10:16 8761http://www.ylmf.net/read.php ... -
虚拟机Vmware linux上网 NAT方式 图解
2010-08-19 23:33 11721. 2. 3. 4. -
ubuntu和红帽 配置ip
2010-08-19 16:50 16351.虚拟机Vmware下 linux上网设置 (bridged ... -
tgz包的解压缩
2010-08-10 13:56 3450解压文件tgz 例如文件名为: yyyy.tgz 先使用GZI ... -
linux下which、whereis、locate、find 命令的区别
2010-08-05 18:20 15740我们经常在linux要查找 ... -
svn 自启动
2010-08-02 11:21 8601.在root下新建一个文件叫svn.sh,内容如下: # ... -
vsftp "上传 553 Could not create file"
2010-07-26 09:12 3580我在LINUX下VSftp建立一个FTP服务器,但从WINDO ... -
contab 使用方法 定时运行perl
2010-07-24 01:03 3434crontab -e也可以直接编辑 ... -
List of Special Characters and Their Meanings (shell)
2010-07-24 00:11 877List of Special Characters and ... -
linux安装中文语言包,解决中文乱码
2010-07-21 17:06 7009linux安装中文语言包 今天一开发组同事写了个程序,跑出 ... -
linux解压缩命令
2010-06-23 12:47 916tar -c: 建立压缩档案 -x ... -
Determining IP information for eth0...failed
2010-06-22 22:45 1942解决办法 1、以root权限编辑/ Java代码 1./ ... -
redhat中vsftp开机自启动
2010-06-22 09:59 2033有三种方法可以实现redhat中vsftpd服务开机自启动. ...
相关推荐
本篇将详细介绍如何为CentOS配置YUM更新源,以便让RHEL5系统能够使用。 首先,我们需要了解YUM的工作原理。YUM通过连接到服务器上的软件仓库,检索软件包及其依赖关系,然后自动下载和安装。在RHEL5中,通常需要...
在Red Hat Enterprise Linux (RHEL)系统中,`yum` 是一个重要的包管理工具,用于安装、更新和管理软件包。`yum` 全称是Yellowdog Updater, Modified,它通过与远程仓库(通常称为yum源)交互,提供了一种方便的方式...
本话题主要关注如何将Red Hat Enterprise Linux 6.1(RHEL 6.1)的yum源更换为CentOS的yum源。RHEL与CentOS是高度兼容的,因为CentOS是对RHEL源代码的一个重新编译版,不带商业支持。因此,这种切换可以使得用户在...
本话题聚焦于将Red Hat Enterprise Linux (RHEL) 更改为 CentOS 6.4 的过程,这涉及到更换YUM源以及安装相关包。以下是关于这个主题的详细知识点: 首先,Red Hat Enterprise Linux 和 CentOS 都是基于Linux内核的...
4. `yum-rhn-plugin-2.0.1-10.el7.noarch.rpm`:这个插件使得yum可以与Red Hat Network(RHN)进行交互,允许用户在没有订阅Red Hat Enterprise Linux的情况下,依然能够访问和管理RHN上的软件仓库。在非RHEL系统上...
--> 解决依赖关系完成 ...rhn-check-2.0.2-6.el7.noarch 有缺少的需求 yum-rhn-plugin >= ('0', '1.6.4', '1') ===========分割线=========== 使用yum install 进行安装,之后再安装teamviewer13
在Linux环境下,特别是Red Hat Enterprise Linux (RHEL)及其衍生版本(如CentOS)中,YUM(Yellowdog Updater Modified)是一个非常重要的软件包管理工具。它允许用户方便地安装、更新、卸载软件包,并且能够自动...
`yum`(Yellowdog Updater, Modified)是基于`rpm`包管理器的前端,它通过与软件仓库交互,自动解决软件依赖关系,简化了在RHEL及其克隆发行版如CentOS上的软件管理过程。`yum`的核心功能包括安装新软件包、更新现有...
1.确保RHEL5中已经安装了yum [root@lvs-master ~]# rpm -qa |grep yum yum-metadata-parser-2-el5 yum-updatesd-9-el5 yum-22-el5 yum-security-16-el5 yum-rhn-plugin-4-el5 2.修改源配置文件 #vim /etc/yum....
- 选择适用于Red Hat Enterprise Linux (RHEL) 5的64位版本进行下载,例如: - 下载链接:[http://download.virtualbox.org/virtualbox/4.2.6/VirtualBox-4.2-4.2.6_82870_el5-1.x86_64.rpm]...
此外,由于RHEL默认的YUM源通常需要通过Red Hat Network(RHN)注册并付费才能使用,因此,为了绕过这一限制,我们需要移除原有的RHN插件,并导入CentOS的YUM源。 #### 删除RHN插件 在终端中,你需要以root用户...
戴尔提供了一种工具(dell-satellite-sync)将Dell OpenManage yum存储库导入RHN Satellite / Spacewalk服务器,并将注册的服务器订阅到相应的OpenManage频道。 但是,不支持CentOS。 在有针对CentOS 6的补丁程序,...