==Automated installation (recommended)==
Performing a complete installation of Herwig can be done using the following commands:
```
mkdir Herwig
cd Herwig
export LOC_HERWIG=$PWD
wget https://herwig.hepforge.org/downloads/herwig-bootstrap
chmod +x herwig-bootstrap
./herwig-bootstrap $LOC_HERWIG -j 4
```
with "4" being the number of processors that can be tasked with this installation. Afterward, the installation can be checked by:
```
source $LOC_HERWIG/bin/activate
cd $LOC_HERWIG/share/Herwig
Herwig read LHC-Matchbox.in
Herwig run LHC_Matchbox.run -N 100
```
==Manual installation==
1. System requirements: please check that your machine has access to the [[ https://herwig.hepforge.org/tutorials/installation/system.html | minimum requirements of Herwig 7.1 ]].
- **gcc**, **g++** and **gfortran** at least version 4.9 (we recommend version 6.5 or higher)
- **python** and **python-dev** or python-devel
- **svn**, **git** and **zlib**
2. Prerequisites of the Herwig program: at this stage, you should install whatever dependencies that you may require while working with Herwig. You can find a complete list of these dependencies alongside their installation methods [[ https://herwig.hepforge.org/tutorials/installation/prerequisite.html | here ]].
3. Manual installation of the Herwig program: which can be done either via a tarball or by cloning from the Mercurial repository. The details are presented [[ https://herwig.hepforge.org/tutorials/installation/manual.html | here ]].