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
| Option | Value | Default | Description |
|---|---|---|---|
--version | TEXT | A version range (^1.2) or an exact tag. | |
--compiler | TEXT | gnu | Compiler family (gnu, intel_nextgen, ...). |
--fc | TEXT | The Fortran compiler command (default: the family's). | |
--mpi | Build with the MPI wrapper (mpif90). | ||
--cflags | TEXT | Flags added to the package's own (part of the key). | |
--lflags | TEXT | Link flags added (part of the key). | |
--mode | TEXT | Mode of the package's fobos to build. | |
--bin-dir | TEXT | Where applications are linked. | |
--no-shims | Do not link applications. | ||
--force | Rebuild even when installed. | ||
--verbose | Show the build's own output. | ||
--config | TEXT | User configuration file (default ~/.config/fobis/config.ini). | |
--json | Machine-readable output. |
fobis pkg list
List the installed packages (name, version, toolchain key, build system).
| Option | Value | Default | Description |
|---|---|---|---|
--json | Machine-readable output. |
fobis pkg path
Print the install prefix of a package (for scripts, CMAKE_PREFIX_PATH, PKG_CONFIG_PATH).
Arguments: NAME
| Option | Value | Default | Description |
|---|---|---|---|
--key | TEXT | Toolchain key (when installed for several). | |
--version | TEXT | The installed version. | |
--pkgconfig | Print its pkg-config directory instead. |
fobis pkg uninstall
Remove an installed package: exactly the files and links its install recorded.
Arguments: NAME
| Option | Value | Default | Description |
|---|---|---|---|
--key | TEXT | Toolchain key (when installed for several). | |
--version | TEXT | The installed version. |
fobis pkg upgrade
Install the newest version allowed by the original request, for the same toolchain; remove the old one.
Arguments: NAME
| Option | Value | Default | Description |
|---|---|---|---|
--config | TEXT | User configuration file (default ~/.config/fobis/config.ini). | |
--bin-dir | TEXT | Where applications are linked. | |
--verbose | Show the build's own output. |