1(doc_install)= 2 3# Install 4 5:::{note} 6PETSc is available from multiple package managers. 7Depending on your exact needs (for example limited use of {any}`external packages <doc_externalsoftware>`) they are possibly the easiest way for 8you to install PETSc. 9Always verify that the package manager is providing a recent enough release of PETSc with support for the external packages you need. 10Some package managers provide separate packages for the complex number installation of PETSc. 11 12- Archlinux <https://aur.archlinux.org/packages/petsc> 13- Conda: <https://anaconda.org/conda-forge/petsc> 14 : `conda install -c conda-forge petsc` 15- Debian: <https://packages.debian.org/petsc-dev> 16 : `sudo apt install petsc-dev` 17- E4S: <https://e4s.io/download.html> 18- Fedora: <https://packages.fedoraproject.org/pkgs/petsc/petsc> 19 : `sudo yum install petsc-mpich-devel` 20- Homebrew: <https://formulae.brew.sh/formula/petsc> 21 : `brew install petsc` 22- MacPorts: <https://ports.macports.org/port/petsc> 23 : `sudo port install petsc` 24- MSYS2 (Windows) <https://packages.msys2.org/package/mingw-w64-x86_64-petsc> 25- openSUSE <https://software.opensuse.org/package/petsc> 26- Python: <https://pypi.org/project/petsc> 27 : `python -m pip install petsc petsc4py` 28- Slackware: <https://slackbuilds.org/repository/15.0/academic/petsc/?search=petsc> 29- Spack: <https://spack.io> 30 : - debug install - `spack install petsc +debug` 31 - optimized install -`spack install petsc cflags='-g -O3 -march=native -mtune=native' fflags='-g -O3 -march=native -mtune=native' cxxflags='-g -O3 -march=native -mtune=native'` 32 - install with some external packages - `spack install petsc +superlu-dist +metis +hypre +hdf5` 33 - list available variants (configurations) - `spack info petsc` 34- Ubuntu: <https://packages.ubuntu.com/petsc-dev> 35 : `sudo apt install petsc-dev` 36::: 37 38Information and tutorials on setting up a PETSc installation. 39 40```{toctree} 41:maxdepth: 2 42 43download 44install_tutorial 45install 46windows 47multibuild 48external_software 49license 50``` 51