Install MongoDB 3 with gpg check?
Hi, I have some troubles after my MongoDB 3 installation in F23. Basically I've followed these instructions and the crucial command is this one:
dnf install mongodb-org --nogpgcheck
On each dnf update
I now get this message:
warning: /var/cache/dnf/repo.mongodb.org_yum_redhat_7_mongodb-org_3.0_x86_64_-f13c178f04772646/packages/mongodb-org-3.0.9-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID [A_WEIRD_HASH_LIKE_THING]: NOKEY
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Public key for mongodb-org-3.0.9-1.el7.x86_64.rpm is not installed
dnf repolist
shows this entry:
repo.mongodb.org_yum_redhat_7_mongodb-org_3.0_x86_64_ created by dnf config-manager from https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.0/ 60
My questions are:
- do I actually need to wait to install MongoDB 3 in Fedora until a GPG key is provided
- do I need to to something like
rpm --import ...
and if yes, how can I figure out, whether any source is relieable? - is there any smart way to handle this situation with dnf without adding a GPG key for Mongo, but also without dangers for the other packages?
You're trying to use an unsigned repository for an entirely different linux distribution; I wouldn't expect it to work properly, regardless of the specific way it fails. mongodb is already packaged in the default repos, use that.
@randomuser This is a good hint, thanks! But AFAIK even the F23 repo does include a quite old version of MongoDB (2.4). This is the reason, for which I've added this special repo.
aaahh, I didn't think about versions. Upstream is 3.2.3, f23 has 3.0.9, but f24 should be a lot closer... Out of curiosity, are you going for the latest because of any specific feature?