Skip to content

pkg command ​

Packages built for your compiler and installed in a store (install, list, uninstall, upgrade, path).

bash
fobis pkg <install|list|path|upgrade|uninstall> [options]

How to use it, with examples: Packages and indexes.

All options ​

fobis pkg install ​

Build a package with your compiler and install it into the store.

Arguments: PACKAGE

OptionValueDefaultDescription
--versionTEXTA version range (^1.2) or an exact tag.
--compilerTEXTgnuCompiler family (gnu, intel_nextgen, ...).
--fcTEXTThe Fortran compiler command (default: the family's).
--mpiBuild with the MPI wrapper (mpif90).
--cflagsTEXTFlags added to the package's own (part of the key).
--lflagsTEXTLink flags added (part of the key).
--modeTEXTMode of the package's fobos to build.
--bin-dirTEXTWhere applications are linked.
--no-shimsDo not link applications.
--forceRebuild even when installed.
--verboseShow the build's own output.
--configTEXTUser configuration file (default ~/.config/fobis/config.ini).
--jsonMachine-readable output.

fobis pkg list ​

List the installed packages (name, version, toolchain key, build system).

OptionValueDefaultDescription
--jsonMachine-readable output.

fobis pkg path ​

Print the install prefix of a package (for scripts, CMAKE_PREFIX_PATH, PKG_CONFIG_PATH).

Arguments: NAME

OptionValueDefaultDescription
--keyTEXTToolchain key (when installed for several).
--versionTEXTThe installed version.
--pkgconfigPrint its pkg-config directory instead.

fobis pkg uninstall ​

Remove an installed package: exactly the files and links its install recorded.

Arguments: NAME

OptionValueDefaultDescription
--keyTEXTToolchain key (when installed for several).
--versionTEXTThe installed version.

fobis pkg upgrade ​

Install the newest version allowed by the original request, for the same toolchain; remove the old one.

Arguments: NAME

OptionValueDefaultDescription
--configTEXTUser configuration file (default ~/.config/fobis/config.ini).
--bin-dirTEXTWhere applications are linked.
--verboseShow the build's own output.