Centos yum 找不到rpm包怎么办
发布网友
发布时间:2022-04-24 01:58
我来回答
共1个回答
热心网友
时间:2023-10-20 10:59
Centos EPEL安装和配置
安装Centos后,使用yum搜索某些rpm包,很有可能找不到。因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。安装EPEL后可以很好的解决这个问题。
EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,但是当与其它第三方软件库混合使用时,可能会出现一些问题,不过就目前的体验来看,安装完这个以后基本常用的rpm都可以找到了^_^。
下载与安装EPEL的rpm文件包
1,下载
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
附:查看Linux系统内核,请使用 uname -a 命令。
查看Linux发行版本:lsb_release -a
2,导入DAG的PGP Key
[root@localhost ~]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
3,设置/etc/yum.repos.d/epel.repo文件中源的级别
即添加priority=11这句。
epel.repo配置举例:
view plaincopy to clipboardprint?
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
priority=11
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
下载与安装相应rpmforge的rpm文件包
1,下载rpmforge的rpm文件包
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
2,安装DAG的PGP Key
view plaincopy to clipboardprint?
[root@localhost ~]# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
3,验证rpmforge的rpm文件包
[root@localhost ~]# rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm
4,安装rpmforge的rpm文件包
[root@localhost ~]# rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm
5,设置/etc/yum.repos.d/rpmforge.repo文件中源的级别
即添加priority=12。
rpmforge.repo配置举例:
view plaincopy to clipboardprint?
### Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
### URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12
测试
[root@localhost ~]# yum check-update
输出信息应该会有以下两行:
Loading “priorities” plugin
…
XXX packages excluded e to repository priority protections
证明安装EPEL成功。
Related posts:
热心网友
时间:2023-10-20 10:59
Centos EPEL安装和配置
安装Centos后,使用yum搜索某些rpm包,很有可能找不到。因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。安装EPEL后可以很好的解决这个问题。
EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,但是当与其它第三方软件库混合使用时,可能会出现一些问题,不过就目前的体验来看,安装完这个以后基本常用的rpm都可以找到了^_^。
下载与安装EPEL的rpm文件包
1,下载
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
附:查看Linux系统内核,请使用 uname -a 命令。
查看Linux发行版本:lsb_release -a
2,导入DAG的PGP Key
[root@localhost ~]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
3,设置/etc/yum.repos.d/epel.repo文件中源的级别
即添加priority=11这句。
epel.repo配置举例:
view plaincopy to clipboardprint?
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
priority=11
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
下载与安装相应rpmforge的rpm文件包
1,下载rpmforge的rpm文件包
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
2,安装DAG的PGP Key
view plaincopy to clipboardprint?
[root@localhost ~]# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
3,验证rpmforge的rpm文件包
[root@localhost ~]# rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm
4,安装rpmforge的rpm文件包
[root@localhost ~]# rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm
5,设置/etc/yum.repos.d/rpmforge.repo文件中源的级别
即添加priority=12。
rpmforge.repo配置举例:
view plaincopy to clipboardprint?
### Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
### URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12
测试
[root@localhost ~]# yum check-update
输出信息应该会有以下两行:
Loading “priorities” plugin
…
XXX packages excluded e to repository priority protections
证明安装EPEL成功。
Related posts:
热心网友
时间:2023-10-20 10:59
Centos EPEL安装和配置
安装Centos后,使用yum搜索某些rpm包,很有可能找不到。因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。安装EPEL后可以很好的解决这个问题。
EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,但是当与其它第三方软件库混合使用时,可能会出现一些问题,不过就目前的体验来看,安装完这个以后基本常用的rpm都可以找到了^_^。
下载与安装EPEL的rpm文件包
1,下载
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
附:查看Linux系统内核,请使用 uname -a 命令。
查看Linux发行版本:lsb_release -a
2,导入DAG的PGP Key
[root@localhost ~]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
3,设置/etc/yum.repos.d/epel.repo文件中源的级别
即添加priority=11这句。
epel.repo配置举例:
view plaincopy to clipboardprint?
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
priority=11
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
下载与安装相应rpmforge的rpm文件包
1,下载rpmforge的rpm文件包
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
2,安装DAG的PGP Key
view plaincopy to clipboardprint?
[root@localhost ~]# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
3,验证rpmforge的rpm文件包
[root@localhost ~]# rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm
4,安装rpmforge的rpm文件包
[root@localhost ~]# rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm
5,设置/etc/yum.repos.d/rpmforge.repo文件中源的级别
即添加priority=12。
rpmforge.repo配置举例:
view plaincopy to clipboardprint?
### Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
### URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12
测试
[root@localhost ~]# yum check-update
输出信息应该会有以下两行:
Loading “priorities” plugin
…
XXX packages excluded e to repository priority protections
证明安装EPEL成功。
Related posts:
热心网友
时间:2023-10-20 10:59
Centos EPEL安装和配置
安装Centos后,使用yum搜索某些rpm包,很有可能找不到。因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。安装EPEL后可以很好的解决这个问题。
EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,但是当与其它第三方软件库混合使用时,可能会出现一些问题,不过就目前的体验来看,安装完这个以后基本常用的rpm都可以找到了^_^。
下载与安装EPEL的rpm文件包
1,下载
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
附:查看Linux系统内核,请使用 uname -a 命令。
查看Linux发行版本:lsb_release -a
2,导入DAG的PGP Key
[root@localhost ~]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
3,设置/etc/yum.repos.d/epel.repo文件中源的级别
即添加priority=11这句。
epel.repo配置举例:
view plaincopy to clipboardprint?
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
priority=11
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
下载与安装相应rpmforge的rpm文件包
1,下载rpmforge的rpm文件包
32位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
64位系统
view plaincopy to clipboardprint?
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
2,安装DAG的PGP Key
view plaincopy to clipboardprint?
[root@localhost ~]# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
3,验证rpmforge的rpm文件包
[root@localhost ~]# rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm
4,安装rpmforge的rpm文件包
[root@localhost ~]# rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm
5,设置/etc/yum.repos.d/rpmforge.repo文件中源的级别
即添加priority=12。
rpmforge.repo配置举例:
view plaincopy to clipboardprint?
### Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
### URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=12
测试
[root@localhost ~]# yum check-update
输出信息应该会有以下两行:
Loading “priorities” plugin
…
XXX packages excluded e to repository priority protections
证明安装EPEL成功。
Related posts: