2. Install LAMMPS — LAMMPS documentation

\(\renewcommand{\AA}{\text{Å}}\)

# 2. Install LAMMPS

You can download LAMMPS as an executable or as source code.

When downloading the LAMMPS source code, you also have to build LAMMPS. But you have more flexibility as to what features to include or exclude in the build. When you download and install pre-compiled LAMMPS executables, you are limited to install which version of LAMMPS is available and which features are included of these builds. If you plan to modify or extend LAMMPS, then you must build LAMMPS from the source code.

Note

If you have questions about the pre-compiled LAMMPS executables, you need to contact the people preparing those executables. The LAMMPS developers have no control over their choices of how they configure and build their packages and when they update them.

- 2.1. Download an executable for Linux
- 2.2. Download an executable for macOS
- 2.3. Download an executable for Windows
- 2.4. Download an executable for Linux or macOS via Conda
- 2.5. Download source and documentation as a tarball
- 2.6. Download the LAMMPS source with git

These are the files and subdirectories in the LAMMPS distribution:

README | Short description of the LAMMPS package
LICENSE | GNU General Public License (GPL)
SECURITY.md | Security policy for the LAMMPS package
bench | benchmark inputs
cmake | CMake build files
doc | documentation and tools to build the manual
examples | example input files
fortran | Fortran module for LAMMPS library interface
lib | additional provided or external libraries
potentials | selected interatomic potential files
python | Python module for LAMMPS library interface
src | LAMMPS source files
tools | pre- and post-processing tools
unittest | source code and inputs for testing LAMMPS

You will have all of these if you downloaded the LAMMPS source code. You will have only some of them if you downloaded executables, as explained on the pages listed above.