Problem installing mongod on centos

Posted October 10, 2015 6.2k views

When I tried to install mongodb it’s giving me this “Package mongodb-org-mongos-3.0.6-1.el7.x86_64.rpm is not signed” what is this mean?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

RPM packages are usually signed by a gpg key to verify that they were created by the person or organization that it claims to be from. You can run into this error if you are trying to install an RPM that was not signed (e.g. a local build). If you need to install an unsigned package which you trust, pass the --nogpgcheck flag, e.g.:

  • sudo yum install --nogpgcheck package-name.rpm

MongoDB does sign their packages, so this may be a matter of misconfiguration. To install MongoDB from their upstream yum repository, first create a file named /etc/yum.repos.d/mongodb-org-3.2.repo with the contents:

name=MongoDB Repository

Notice that gpgcheck is enabled and we point to MongoDB’s public signing package key. You should now be able to install it with:

  • sudo yum install -y mongodb-org