
It is always a good idea to upgrade often. $ sudo apt-get install -y mongodb-org=3.6.17 mongodb-org-server=3.6.17 mongodb-org-shell=3.6.17 mongodb-org-mongos=3.6.17 mongodb-org-tools=3.6.17Įxample: adding mongodb PPA binaries and installing a particular binary version # To install specific version(3.6.17 in our example) of mongodb, the following command helps # Updating libraries and make the actual install $ echo "deb trusty/mongodb-org/3.6 multiverse" | sudo tee /etc/apt//mongodb-org-3.6.list

# create and add list for mongodb (version 3.6, but variations can differ from version to version, the same applies to architecture) # gnupg should be available in the system Sudo may be skipped if the current user has permission to write and execute programs # Add public key used by the aptitude for further updates Updating/Upgrading or first time fresh install of mongodb can follow next scripts. Installing software can be done by installing binaries, or using Ubuntu package manager. Except Packages whose PPA have been removed or not available in the registry. $ apt-get dist-upgrade # Installs only new updatesĪt this point most of packages should be installed or upgraded. $ apt-get upgrade # Upgrades current packages That can be achieved on Ubuntu and Aptitude enabled systems as following: $ apt-get update # Fetch list of available updates There is no exception, even when a daily task updates automatically binaries. It is always a good idea to update the system before start working. How to load mongodb on Docker and Kubernetes.

