CentOS6.8上安装epel

前端之家收集整理的这篇文章主要介绍了CentOS6.8上安装epel前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

实验环境:

  1. [root@bogonzhi]#uname-a
  2. Linuxbogon2.6.32-642.11.1.el6.i686#1SMPFriNov1818:48:28UTC2016i686i686i386GNU/Linux
  3. [root@bogonzhi]#cat/etc/redhat-release
  4. CentOSrelease6.8(Final)

一、安装Wget   

  1. [root@bogonzhi]#yuminstallwget
  2. 已加载插件fastestmirror,refresh-packagekit
  3. 设置安装进程
  4. Loadingmirrorspeedsfromcachedhostfile
  5. *base:mirror.bit.edu.cn
  6. *epel:mirror.lzu.edu.cn
  7. *extras:mirrors.btte.net
  8. *updates:mirrors.btte.net
  9. 解决依赖关系
  10. -->执行事务检查
  11. --->Packagewget.i6860:1.12-8.el6willbe安装
  12. -->完成依赖关系计算
  13.  
  14. 依赖关系解决
  15.  
  16. =================================================================================================================================================================================
  17. 软件包架构版本仓库大小
  18. =================================================================================================================================================================================
  19. 正在安装:
  20. wgeti6861.12-8.el6base483k
  21.  
  22. 事务概要
  23. =================================================================================================================================================================================
  24. Install1Package(s)
  25.  
  26. 总下载量:483k
  27. Installedsize:1.8M
  28. 确定吗?[y/N]:y
  29. 下载软件包:
  30. wget-1.12-8.el6.i686.rpm|483kB00:00
  31. 运行rpm_check_debug
  32. 执行事务测试
  33. 事务测试成功
  34. 执行事务
  35. 正在安装:wget-1.12-8.el6.i6861/1
  36. Verifying:wget-1.12-8.el6.i6861/1
  37.  
  38. 已安装:
  39. wget.i6860:1.12-8.el6
  40. 完毕!

二、下载repel

  CentOS6.8_32位epel下载地址:https://mirrors.tuna.tsinghua.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm

  CentOS6.8_64位epel下载地址:https://mirrors.tuna.tsinghua.edu.cn/epel/6Server/x86_64/epel-release-6-8.noarch.rpm

  1. [root@bogonzhi]#wgethttps://mirrors.tuna.tsinghua.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm--2016-12-0601:44:43--https://mirrors.tuna.tsinghua.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm正在解析主机mirrors.tuna.tsinghua.edu.cn...166.111.206.63,2402:f000:1:416:166:111:206:63正在连接mirrors.tuna.tsinghua.edu.cn|166.111.206.63|:443...已连接。
  2. 已发出HTTP请求,正在等待回应...200OK
  3. 长度:14540(14K)[application/x-redhat-package-manager]
  4. 正在保存至:“epel-release-6-8.noarch.rpm.1100%[=======================================================================================================================================>]14,540--.-K/sin0s
  5.  
  6. 2016-12-0601:44:43(262MB/s)-已保存“epel-release-6-8.noarch.rpm.1”[14540/14540])
  7.  
  8. [root@bogonzhi]#lsDesktopDocumentsDownloadsepel-release-6-8.noarch.rpmepel-release-6-8.noarch.rpm.1MusicPicturesPublicTemplatesVideos

三、安装epel

  1. [root@bogonzhi]#rpm-ivhepel-release-6-8.noarch.rpm                  #安装下载好的epelrpm包
  2. Preparing...###########################################[100%]
  3. packageepel-release-6-8.noarchisalreadyinstalled
  4. [root@bogonzhi]#rpm-eepel-release-6-8.noarch.rpm
  5. error:packageepel-release-6-8.noarch.rpmisnotinstalled
  6. [root@bogonzhi]#rpm-eepel
  7. error:packageepelisnotinstalled
  8. [root@bogonzhi]#rpm-qa|grepepel
  9. epel-release-6-8.noarch
  10. [root@bogonzhi]#rpm-eepel-release-6-8.noarch
  11. [root@bogonzhi]#rpm-ivhepel-release-6-8.noarch.rpm
  12. Preparing...###########################################[100%]1:epel-release###########################################[100%]
  13. [root@bogonzhi]#rpm-qa|grepepel                            #安装成功       
  14. epel-release-6-8.noarch[root@bogonzhi]#ll/etc/yum.repos.d/                           #查看额外源   总用量32-rw-r--r--.1rootroot19915月192016CentOS-Base.repo-rw-r--r--.1rootroot6475月192016CentOS-Debuginfo.repo-rw-r--r--.1rootroot2895月192016CentOS-fasttrack.repo-rw-r--r--.1rootroot6305月192016CentOS-Media.repo-rw-r--r--.1rootroot62595月192016CentOS-Vault.repo-rw-r--r--.1rootroot95711月52012epel.repo-rw-r--r--.1rootroot105611月52012epel-testing.repo[root@bogonzhi]#cat/etc/yum.repos.d/epel.repo
  15. [epel]
  16. name=ExtraPackagesforEnterpriseLinux6-$basearch
  17. #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchmirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-6&arch=$basearchfailovermethod=priority
  18. enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6[epel-debuginfo]
  19. name=ExtraPackagesforEnterpriseLinux6-$basearch-Debug
  20. #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debugmirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-debug-6&arch=$basearchfailovermethod=priority
  21. enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6gpgcheck=1[epel-source]
  22. name=ExtraPackagesforEnterpriseLinux6-$basearch-Source
  23. #baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMSmirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-source-6&arch=$basearchfailovermethod=priority
  24. enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6gpgcheck=1

猜你在找的CentOS相关文章