Alternative: Obtain Release Version with Tarball#

Tarball which contains only the source. Documentation available online.

Tarball which includes all documentation, recommended for offline use.

Tarball to enable a separate installation of petsc4py.

To extract the sources use:

$ tar xf petsc-<version number>.tar.gz

Current and older release tarballs are available at:


Older release tarballs of PETSc should only be used for applications that have not been updated to the latest release. We urge you, whenever possible, to upgrade to the latest version of PETSc.

Advanced: Obtain PETSc Development Version With Git#

Improvements and new features get added to main branch of PETSc git repository. To obtain development sources, use:

$ git clone petsc

or if you already have a local clone of petsc git repository

$ git checkout main
$ git pull

More details on contributing to PETSc development are at Contributing to PETSc. The development version of the documentation, which is largely the same as the release documentation is available.

Release Schedule#

We intend to provide new releases every 6 months, and patch updates to current release every month.

New releases (for example: 3.20.0, 3.21.0, 3.22.0, etc.):

  • March (end of the month)

  • September (end of the month)

New patch updates (for example: 3.21.1, 2.21.2, 3.21.3, etc.):

  • Last week of every month (or first week on next month - if delayed)

And with a new release of PETSc the old version will no longer get patch updates. I.e., when 3.22.0 is released, bug fixes and any updates will go to 3.22.x - and petsc-3.21, petsc-3.20, etc., will not get any additional patch updates.