CentOS添加IUS软件源以安装新版本软件

Kevin 教程 1,584 次浏览 43条评论

CentOS默认源里的软件版本低是众所周知的,虽然基础软件得到长期安全支持。但有时没法满足使用需求。若要安装新版本软件,除手动编译和使用软件官方源(如果提供的话),可以通过第三方软件源安装。现在比较知名且广泛使用的源有EPELIUSSCLRemi,更多介绍可以查看这个页面

笔者平时偏好于用EPEL+IUS,前者补充默认源里没有的软件,后者安装需要新版本的软件。

添加 IUS 源

IUS源和EPEL存在依赖关系,添加IUS前需要启用EPEL源。

sudo yum install epel-release

运行下面命令添加IUS源。RHEL商业版系统安装方法见这里介绍

# CentOS 7
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm

# CentOS 6
sudo yum install https://centos6.iuscommunity.org/ius-release.rpm

通过 IUS 源安装软件

安装软件前先查询软件版本和包名称,IUS为了与默认源里的软件区分,命名方式有所不同(软件安装路径和配置文件名称没有区别),由软件名+版本号+小版本号+u组成。

例如我们用yum search mariadb命令搜索MariaDB软件。以下是从搜索结果找到的软件版本(过滤了无关信息)。根据IUS软件命名规范,后两个是IUS源里的软件。可以用yum info 包名称查看详情。

mariadb-server.x86_64
mariadb100u-server.x86_64
mariadb101u-server.x86_64

如果只想搜索IUS源里的软件,不同时搜索其它软件源,使用下面命令。

yum --disablerepo="*" --enablerepo="ius" search all 关键词

知道软件包名称就好办了,直接用Yum安装即可。IUS不会替换基础源里的软件,因此可以放心使用。更多IUS运作方式建议看下官方FAQ

sudo yum install mariadb100u-server

如果你希望在安装所需软件后关闭IUS源,请编辑/etc/yum.repos.d目录下的软件源配置文件,将enabled参数改为0,之后用sudo yum repolist all命令检查软件源状态。如果你想用Yum命令操作,而非修改文件,可以参考这个帖子

评论列表

  1. #1

    india generic careprost by phone https://carepro1st.com/

  2. #2

    what does dapoxetine do to blood pressure https://salemeds24.wixsite.com/dapoxetine

  3. #3

    ivermectin prices human https://ivermectin.mlsmalta.com/

  4. #4

    order hydroxychloroquine https://hydroxychloroquine.webbfenix.com/

  5. #5

    dapoxetine coupons 2020 https://ddapoxetine.com/

  6. #6

    vidalista 2.60 mg daily review https://vidalista40mg.mlsmalta.com/

  7. #7

    cialis 20 mg when to take https://wisig.org/

  8. #8

    hydroxychloroquine purchase online https://hydroxychloroquinee.com/

  9. #9

    Best Place To Buy Generic Viagra Uk Easettenex cialis for sale Alicky Clotrimazole Pills

  10. #10

    is 100 mg of cenforce too much http://cavalrymenforromney.com/

  11. #11

    online dr visit free https://edmeds.buszcentrum.com/

  12. #12

    online dr visit free https://buymeds.mlsmalta.com/

  13. #13

    price for prednisone https://bvsinfotech.com/

  14. #14

    what countries sell hydroxychloroquine over the counter https://hydroxychloroquine.mymvrc.org/

  15. #15

    daily cialis for bph flush http://cialis.anafassia.com/

  16. #16

    daily cialis for bph flush https://cialis.mlsmalta.com/

  17. #17

    Hi my friend! I want to say that this article is awesome, nice written and include approximately all vital infos. I’d like to see more posts like this.

    http://www.vreyrolinomit.com/

  18. #18

    I’m not sure exactly why but this blog is loading incredibly slow for me.
    Is anyone else having this issue or is it a problem on my end?
    I’ll check back later on and see if the problem still
    exists. http://antiibioticsland.com/Stromectol.htm

  19. #19

    cheap cialis without prescription http://edbuy.online/

  20. #20

    Yay google is my king aided me to find this great site! .

    http://www.zortilonrel.com/

  21. #21

    tadalafil 20mg – compare cialis and tadalafil tadalafil generic online

  22. #22

    cost of viagra where to buy viagra
    buying viagra online

  23. #23

    cheap ed pills in mexico buy erection pills
    buy ed pills from canada

  24. #24

    ed pills without a doctor prescription ed pills that really work
    ed medicine

  25. #25

    Zozxxg – ivermectin 1 topical cream Judfjs wnguwg

  26. #26

    buy ed pills order ed pills
    cheap ed pills

  27. #27

    Plutoy – acheter tadalafil en ligne france Sdzqkb pguyge

  28. #28

    Zybqyp – furosempi.com Xapryc avhzoa

  29. #29

    http://ponlinecialisk.com/ – cialis online without prescription

  30. #30

    Luiznc – buy generic tadalafil online cheap Hmeopu pxtoxf

  31. #31

    Very well written post. It will be supportive to anyone who utilizes it, including myself. Keep up the good work – can’r wait to read more posts.

    https://alan-solarsh.webflow.io/

  32. #32

    Vnvfwr – buy a research paper today Dgtwym azcska

  33. #33

    Uvvjjb – where to buy real viagra online Glathf vzaxul

  34. #34

    order nitrofurantoin online: ampicillin tablets
    ceftin online

  35. #35

    Uwdegc – personal statement length Kezftw ozilvm

  36. #36

    Lnspjy – will i get in trouble if i order propecia online Scnpsi hmjizd

  37. #37

    meds from india: generic pills india india pharmacies shipping to usa

  38. #38

    I think this internet site has very good indited subject material posts.

    http://www.vreyrolinomit.com/

  39. #39

    how to order vidalista online http://vidallista.com/

  40. #40

    Have you ever heard of second life (sl for short). It is basically a online game where you can do anything you want. Second life is literally my second life (pun intended lol). If you would like to see more you can see these Second Life articles and blogs

    wiki.jokaydia.com/?title=LiteratureCompositionCreative_Writing

  41. #41

    Have you ever heard of second life (sl for short). It is essentially a online game where you can do anything you want. sl is literally my second life (pun intended lol). If you want to see more you can see these second life websites and blogs

    wiki.jokaydia.com/index.php?title=LiteratureCompositionCreative_Writing&direction=next&oldid=435&printable=yes

  42. #42

    img

  43. #43

    You are my inhalation, I possess few web logs and sometimes run out from brand :). “He who controls the past commands the future. He who commands the future conquers the past.” by George Orwell.

    https://www.youtube.com/watch?v=1fjWgYz9egs

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。