red hat linux使用yum 出现Loaded plugins: rhnplugin, security
2011-01-05 16:15
471 查看
添加centos源
vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl是你的YUM源地址
enabled=0
是否启用这个仓库,1为起用,0为禁用
gpgcheck=1
设置gpgcheck=1会让yum检查每个下载的RPM的GnuPG签名。这么做是因为你需要适当的GnuPG key注册到您的RPM数据库。可以防止被欺骗,如:非法入侵发行版网站,木马导入软件包,使不知情用户下载
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
GPGKEY 的存放地址
以上默认有的,复制添加以下更新点插入到rhel-debuginfo.repo文本里后面
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://ftp.twaren.net/Linux/CentOS/5/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://ftp.twaren.net/Linux/CentOS/5/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://ftp.twaren.net/Linux/CentOS/5/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://ftp.twaren.net/Linux/CentOS/5/addons/$basearch/
gpgcheck=1
[root@localhost~]#yum clean all 清除缓存及旧的包
[root@localhost ~]# yum install httpd 测试是否能更新软件
vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl是你的YUM源地址
enabled=0
是否启用这个仓库,1为起用,0为禁用
gpgcheck=1
设置gpgcheck=1会让yum检查每个下载的RPM的GnuPG签名。这么做是因为你需要适当的GnuPG key注册到您的RPM数据库。可以防止被欺骗,如:非法入侵发行版网站,木马导入软件包,使不知情用户下载
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
GPGKEY 的存放地址
以上默认有的,复制添加以下更新点插入到rhel-debuginfo.repo文本里后面
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://ftp.twaren.net/Linux/CentOS/5/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://ftp.twaren.net/Linux/CentOS/5/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://ftp.twaren.net/Linux/CentOS/5/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://ftp.twaren.net/Linux/CentOS/5/addons/$basearch/
gpgcheck=1
[root@localhost~]#yum clean all 清除缓存及旧的包
[root@localhost ~]# yum install httpd 测试是否能更新软件
相关文章推荐
- red hat linux使用yum 出现Loaded plugins: rhnplugin, security
- CentOS 使用yum命令安装出现错误提示:Loaded plugins: fastestmirror, refresh-packagekit, security
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support wi
- Loaded plugins: rhnplugin, security This system is not registered with RHN.
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- 关于Red Hat Enterprise Linux Server 5 使用国内163 yum 源
- linux下yum命令出现Loaded plugins: fastestmirror
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
- linux下yum命令出现Loaded plugins: fastestmirror
- linux下yum命令出现Loaded plugins: fastestmirror Determining fastest mirrors
- linux下yum命令出现Loaded plugins: fastestmirror Determining fastest mirrors
- linux下yum命令出现Loaded plugins: fastestmirror
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- linux下yum命令出现Loaded plugins: fastestmirror
- linux下yum命令出现Loaded plugins: fastestmirror
- 解决Redhat Linux AS使用yum时出现This system is not registered with RHN的问题(改用CentOS的yum)
- Top 10 “Yum” installables to be productive as a developer on Red Hat Enterprise Linux
- linux笔记----red hat yum 本地源配置
- Red Hat Enterprise Linux AS release 4 配置YUM(rhel as 4 安装yum)