mongo db installer code example Example 1: mongo install sudo apt install mongodb-clients Example 2: install mongodb 2018 instructions mongo --version