From the Snap Support Team: Package Upgrades


At the Snap support desk, we commonly get requests related to package versions. It could be a package of a language (such as Ruby, PHP, etc.), a browser (Firefox, ChromeDriver, etc) or it could be database-related. As mentioned earlier, Snap gives you full “sudo” access through which you can get any package version compatible with our OS.

To work through an example, let’s see how we can get a higher, OS-compatible version of MongoDB. Currently, most of our users are using v2.4 and there are some upgrades in higher versions which are no longer supported in v2.4. Because of this, we don’t want to break users’ build and so keep v2.4 for now.

Step 1 : Create a secure file mongodb.repo and add below content to the file.

[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=0
enabled=1

Step 2 : Add below command to install Mongodb and start it.

sudo mv mongodb.repo /etc/yum.repos.d/
sudo yum install -y mongodb-org
mongod --version

That’s it! You’ve done it. If not, you can always contact us for help.

Read more from our From the Snap Support Team series.

Posted by Ankit Srivastava

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.