{"id":13513846,"url":"https://github.com/fortran-lang/fpm","last_synced_at":"2026-02-13T08:46:38.916Z","repository":{"id":37015855,"uuid":"233763778","full_name":"fortran-lang/fpm","owner":"fortran-lang","description":"Fortran Package Manager (fpm)","archived":false,"fork":false,"pushed_at":"2024-12-01T05:47:59.000Z","size":44567,"stargazers_count":909,"open_issues_count":213,"forks_count":104,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-01-31T06:18:38.227Z","etag":null,"topics":["build-system","fortran","fortran-package-manager","fpm","package-manager"],"latest_commit_sha":null,"homepage":"https://fpm.fortran-lang.org","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fortran-lang.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T05:30:22.000Z","updated_at":"2025-01-30T19:28:27.000Z","dependencies_parsed_at":"2023-10-13T13:02:18.862Z","dependency_job_id":"fa4e17b2-e575-4eb1-a947-7ef1d25f0d87","html_url":"https://github.com/fortran-lang/fpm","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortran-lang%2Ffpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortran-lang%2Ffpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortran-lang%2Ffpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortran-lang%2Ffpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fortran-lang","download_url":"https://codeload.github.com/fortran-lang/fpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239776273,"owners_count":19695070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-system","fortran","fortran-package-manager","fpm","package-manager"],"created_at":"2024-08-01T05:00:38.690Z","updated_at":"2025-10-05T02:07:34.454Z","avatar_url":"https://github.com/fortran-lang.png","language":"Fortran","funding_links":[],"categories":["Build","package-manager","Fortran","Package Management"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://fpm.fortran-lang.org/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/fortran-lang/assets/main/fpm/logo/2-color-alt/png/full-color-alt.png\" width=\"800\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# [Fortran Package Manager](https://fpm.fortran-lang.org/)\n\nFortran Package Manager (fpm) is a package manager and build system for Fortran.\nIts key goal is to improve the user experience of Fortran programmers.\nIt does so by making it easier to build your Fortran program or library, run the\nexecutables, tests, and examples, and distribute it as a dependency to other\nFortran projects.\nFpm's user interface is modeled after [Rust's Cargo](https://doc.rust-lang.org/cargo/),\nso if you're familiar with that tool, you will feel at home with fpm.\nFpm's long term vision is to nurture and grow the ecosystem of modern Fortran\napplications and libraries.\n\nFpm is an early prototype and is evolving rapidly.\nYou can use it to build and package your Fortran projects, as well as to use\n[existing fpm packages](https://github.com/fortran-lang/fpm-registry) as dependencies.\nFpm's behavior and user interface may change as it evolves, however as fpm\nmatures and we enter production, we will aim to stay backwards compatible.\nPlease follow the [issues](https://github.com/fortran-lang/fpm/issues) to\ncontribute and/or stay up to date with the development.\nBefore opening a bug report or a feature suggestion, please read our\n[Contributor Guide](CONTRIBUTING.md). You can also discuss your ideas and\nqueries with the community in\n[fpm discussions](https://github.com/fortran-lang/fpm/discussions),\nor more broadly on [Fortran-Lang Discourse](https://fortran-lang.discourse.group/).\n\nFortran Package Manager is not to be confused with\n[Jordan Sissel's fpm](https://github.com/jordansissel/fpm), a more general,\nnon-Fortran related package manager.\n\n**Website: \u003chttps://fpm.fortran-lang.org/\u003e**\n\n## [Download](https://fpm.fortran-lang.org/install/index.html)\n\nFpm is available on many platforms and through multiple package managers, see our Documentation\nwebpage for a list of **[All Supported Installations](https://fpm.fortran-lang.org/install/index.html)**.\n\nThe easiest installation routes are shown below.\n\n### [Binary](https://github.com/fortran-lang/fpm/releases)\n\nBinaries for the latest stable release are available [to download](https://github.com/fortran-lang/fpm/releases/latest) for Windows, MacOS, and Linux.\n\n**Note:** On Linux and MacOS, you will need to enable executable permission before you can use the binary.\n\n_e.g._ `$ chmod u+x fpm-0.6.0-linux-x86_64`\n\nThe binaries at the [current tag](https://github.com/fortran-lang/fpm/releases/tag/current) are updated automatically to always provide the current git version from the default branch.\n\n### [Conda]\n\nFpm is available on [conda-forge], to add `conda-forge` to your channels use:\n\n```sh\nconda config --add channels conda-forge\n```\n\nFpm can be installed with:\n\n```sh\nconda create -n fpm fpm\nconda activate fpm\n```\n\nThe conda package manager can be installed from [miniforge](https://github.com/conda-forge/miniforge/releases)\nor from [miniconda](https://docs.conda.io/en/latest/miniconda.html).\n\n[Conda]: https://conda.io\n[conda-forge]: https://conda-forge.org/\n\n### [Homebrew](https://brew.sh/)\n\nThe Fortran Package Manager (fpm) is available for the [Homebrew](https://brew.sh/) package manager via an additional tap.\nTo install fpm via brew, include the new tap and install using\n\n```sh\nbrew tap fortran-lang/fortran\nbrew install fpm\n```\n\nBinary distributions are available for MacOS 11 (Catalina) and 12 (Big Sur) for x86_64 architectures. For other platforms fpm will be built locally from source automatically.\n\nFpm should be available and functional after those steps.\nFor more details checkout the tap [here](https://github.com/fortran-lang/homebrew-fortran).\n\n## [Get started](https://fpm.fortran-lang.org/tutorial/index.html)\n\n**Follow our [Quickstart Tutorial](https://fpm.fortran-lang.org/tutorial/hello-fpm.html) to get familiar with fpm**.\n\n### Start a new project\n\nCreating a new *fpm* project is as simple as running the command\n`fpm new project_name`. This will create a new folder in your current directory\nwith the following contents and initialized as a git repository.\n\n* `fpm.toml` – with your project’s name and some default standard meta-data\n* `README.md` – with your project’s name\n* `.gitignore`\n* `src/project_name.f90` – with a simple hello world subroutine\n* `app/main.f90` (if `--app` flag used) – a program that calls the subroutine\n* `test/main.f90` (if `--test` flag used) – an empty test program\n\n### Building your Fortran project with fpm\n\n*fpm* understands the basic commands:\n\n* `fpm build` – build your library, executables and tests\n* `fpm run` – run executables\n* `fpm test` – run tests\n* `fpm install` - installs the executables locally\n\nThe command `fpm run` can optionally accept the name of the specific executable\nto run, as can `fpm test`; like `fpm run specific_executable`. Command line\narguments can also be passed to the executable(s) or test(s) with the option\n`-- some arguments`.\n\nSee additional instructions in the [Packaging guide](PACKAGING.md) or\nthe [manifest reference](https://fpm.fortran-lang.org/spec/manifest.html).\n\n\u003c!-- \n### Bootstrapping instructions\n\nThis guide explains the process of building *fpm* on a platform for the first time.\nTo build *fpm* without a prior *fpm* version a single source file version is available\nat each release.\n\nTo build manually using the single source distribution, run the following code (from within the current directory)\n\n```sh\nmkdir _tmp\ncurl -LJ https://github.com/fortran-lang/fpm/releases/download/current/fpm.F90 \u003e _tmp/fpm.F90\ngfortran -J _tmp _tmp/fpm.F90 -o _tmp/fpm\n_tmp/fpm install --flag \"-g -fbacktrace -O3\"\nrm -r _tmp\n```\n\nTo automatically bootstrap using this appoach run the install script\n\n```sh\n./install.sh\n``` --\u003e\n\n## Environmental variables\n\nThe table below lists the environment variables that control `fpm`'s choice of compilers, \ncompiler flags, archiver locations, and link flags, each of which can be overridden by \npassing `fpm` flags also shown in the table.\n\n| Environment Variable | Defines               | Overridden by    |\n| :------------------- | :-------------------- | :--------------- |\n| `FPM_FC`             | Fortran compiler path | `--compiler`     |\n| `FPM_CC`             | C compiler path       | `--c-compiler`   |\n| `FPM_CXX`            | C++ compiler path     | `--cxx-compiler` |\n| `FPM_FFLAGS`         | Fortran compiler flags| `--flag`         |\n| `FPM_CFLAGS`         | C compiler flags      | `--c-flag`       |\n| `FPM_CXXFLAGS`       | C++ compiler flags    | `--cxx-flag`     |\n| `FPM_AR`             | Archiver path         | `--archiver`     |\n| `FPM_LDFLAGS`        | Link flags            | `--link-flag`    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffortran-lang%2Ffpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffortran-lang%2Ffpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffortran-lang%2Ffpm/lists"}