Step 2: Remove Packages. Remove any MongoDB packages that you had previously installed. 

sudo apt-get purge mongodb-enterprise * 

Step 3: Remove Data Directories. Remove MongoDB databases and log files. 

sudo rm -r /var/log/mongodb sudo rm -r /var/lib/mongodb 

## Install MongoDB Enterprise on Debian 

## Overview 

Use this tutorial to install MongoDB Enterprise 20 from .deb packages on Debian 7 “Wheezy”. 

This installation guide only supports 64-bit systems. See Platform Support (page 809) for details. 

## Packages 

MongoDB provides officially supported Enterprise packages in their own repository. This repository contains the following packages: 

• mongodb-enterprise 

This package is a metapackage that will automatically install the four component packages listed below. 

• mongodb-enterprise-server 

This package contains the mongod daemon and associated configuration and init scripts. 

• mongodb-enterprise-mongos 

This package contains the mongos daemon. 

• mongodb-enterprise-shell 

This package contains the mongo shell. 

• mongodb-enterprise-tools 

This package contains the following MongoDB tools: mongoimport bsondump , mongodump , mongoexport , mongofiles , mongoimport , mongooplog , mongoperf , mongorestore , mongostat , and mongotop . 

## Control Scripts 

The mongodb-enterprise package includes various control scripts , including the init script /etc/rc.d/init.d/mongod . 

The package configures MongoDB using the /etc/mongod.conf file in conjunction with the control scripts. See the Configuration File reference for documentation of settings available in the configuration file. 

As of version 3.0.4, there are no control scripts for mongos . The mongos process is used only in sharding (page 667). You can use the mongod init script to derive your own mongos control script. 

