$ echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
|
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse
|
|
$ sudo apt-get update
|
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
|
Get:1 http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
|
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
|
Ign http://repo.mongodb.org trusty/mongodb-org/3.2 InRelease
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release
|
Get:3 http://repo.mongodb.org trusty/mongodb-org/3.2 Release.gpg [801 B]
|
Get:4 http://repo.mongodb.org trusty/mongodb-org/3.2 Release [3,462 B]
|
Get:5 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources [383 kB]
|
Get:6 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources [169 kB]
|
Get:7 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages [905 kB]
|
Get:8 http://security.ubuntu.com trusty-security/main Sources [121 kB]
|
Get:9 http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse amd64 Packages [8,327 B]
|
Get:10 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages [387 kB]
|
Get:11 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en [440 kB]
|
Get:12 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en [205 kB]
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Sources
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Sources
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en
|
Get:13 http://security.ubuntu.com trusty-security/universe Sources [44.3 kB]
|
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en
|
Ign http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse Translation-en_US
|
Ign http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse Translation-en
|
Get:14 http://security.ubuntu.com trusty-security/main amd64 Packages [536 kB]
|
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US
|
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
|
Get:15 http://security.ubuntu.com trusty-security/universe amd64 Packages [140 kB]
|
Get:16 http://security.ubuntu.com trusty-security/main Translation-en [296 kB]
|
Get:17 http://security.ubuntu.com trusty-security/universe Translation-en [83.8 kB]
|
Fetched 3,855 kB in 5s (680 kB/s)
|
Reading package lists... Done
|
|
$ sudo apt-get install -y mongodb-org
|
Reading package lists... Done
|
Building dependency tree
|
Reading state information... Done
|
The following extra packages will be installed:
|
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
|
The following NEW packages will be installed:
|
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
|
0 upgraded, 5 newly installed, 0 to remove and 177 not upgraded.
|
Need to get 50.6 MB of archives.
|
After this operation, 210 MB of additional disk space will be used.
|
Get:1 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-shell amd64 3.2.10 [5,261 kB]
|
Get:2 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-server amd64 3.2.10 [9,585 kB]
|
Get:3 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-mongos amd64 3.2.10 [4,349 kB]
|
Get:4 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org-tools amd64 3.2.10 [31.4 MB]
|
Get:5 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org amd64 3.2.10 [3,556 B]
|
Fetched 50.6 MB in 4s (11.8 MB/s)
|
Selecting previously unselected package mongodb-org-shell.
|
(Reading database ... 137511 files and directories currently installed.)
|
Preparing to unpack .../mongodb-org-shell_3.2.10_amd64.deb ...
|
Unpacking mongodb-org-shell (3.2.10) ...
|
Selecting previously unselected package mongodb-org-server.
|
Preparing to unpack .../mongodb-org-server_3.2.10_amd64.deb ...
|
Unpacking mongodb-org-server (3.2.10) ...
|
Selecting previously unselected package mongodb-org-mongos.
|
Preparing to unpack .../mongodb-org-mongos_3.2.10_amd64.deb ...
|
Unpacking mongodb-org-mongos (3.2.10) ...
|
Selecting previously unselected package mongodb-org-tools.
|
Preparing to unpack .../mongodb-org-tools_3.2.10_amd64.deb ...
|
Unpacking mongodb-org-tools (3.2.10) ...
|
Selecting previously unselected package mongodb-org.
|
Preparing to unpack .../mongodb-org_3.2.10_amd64.deb ...
|
Unpacking mongodb-org (3.2.10) ...
|
Processing triggers for man-db (2.6.7.1-1) ...
|
Processing triggers for ureadahead (0.100.0-16) ...
|
Setting up mongodb-org-shell (3.2.10) ...
|
Setting up mongodb-org-server (3.2.10) ...
|
Adding system user `mongodb' (UID 108) ...
|
Adding new user `mongodb' (UID 108) with group `nogroup' ...
|
Not creating home directory `/home/mongodb'.
|
Adding group `mongodb' (GID 117) ...
|
Done.
|
Adding user `mongodb' to group `mongodb' ...
|
Adding user mongodb to group mongodb
|
Done.
|
mongod start/running, process 3059
|
Setting up mongodb-org-mongos (3.2.10) ...
|
Setting up mongodb-org-tools (3.2.10) ...
|
Processing triggers for ureadahead (0.100.0-16) ...
|
Setting up mongodb-org (3.2.10) ...
|
|
$
|