yum install mongodb 3.2 fails

后端 未结 13 1317
自闭症患者
自闭症患者 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:48

    You need to configure the package management system (yum).

    Create a /etc/yum.repos.d/mongodb.repo file to hold the following configuration information for the MongoDB repository:

    If you have a 64bit system, use the following config:

    [mongodb]
    name=MongoDB Repository
    baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
    gpgcheck=0
    enabled=1
    

    32bit isn't recommended for production deployments, but you may use:

    [mongodb]
    name=MongoDB Repository
    baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
    gpgcheck=0
    enabled=1
    

    When you install the packages, you choose whether to install the current release or a previous one. This step provides the commands for both.

    To install the latest stable version of MongoDB, run:

    sudo yum install mongodb-org
    

    To install a specific release of MongoDB, specify each component package individually and append to it the version number to the package name, as in the following example that installs the 3.2.0 release:

    yum install mongodb-org-3.2.0 mongodb-org-server-3.2.0 mongodb-org-shell-3.2.0 mongodb-org-mongos-3.2.0 mongodb-org-tools-3.2.0
    

    If you are still stuck, following this carefully might be helpful.

提交回复
热议问题