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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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:
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.