yum install mongodb 3.2 fails

后端 未结 13 1322
自闭症患者
自闭症患者 2021-02-08 00:04

I am trying to install mongodb 3.2 on a CentOS 7 machine and facing issues in locating the packages.

I have updated the repo file as per the documentation:



        
13条回答
  •  执笔经年
    2021-02-08 00:44

    Create a mongodb-org.repo file sudo vi /etc/yum.repos.d/mongodb-org.repo

    Add following content
    [mongodb-org-3.4]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-
    org/3.4/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
    Then execute sudo yum install mongodb-org
    

    Reference:docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/

提交回复
热议问题