Question

Primary Content Reference: "http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/"

Beginner at linux cmd and MongoDB on Virtual Machines here.

The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure

Is an easy follow until you reach

The Section: Install and run MongoDB on the virtual machine

As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo or sudo yum install mongo-10gen mongo-10gen-server. Can someone please respond with a ELI5 format?

Related Resources: "https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb"

Was it helpful?

Solution

You need to create the repository file with sudo as well.

Try this:

$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo

$ sudo yum update

And then:

sudo yum install mongo-10gen mongo-10gen-server

Hope it helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top