[det]pack_install(+Name,
+Options)Install package Name. Processes the options below. Default
options as would be used by pack_install/1
are used to complete the provided Options.
- url(+URL)
- Source for downloading the package
- package_directory(+Dir)
- Directory into which to install the package.
- global(+Boolean)
- If
true
, install in the XDG common application data path,
making the pack accessible to everyone. If false
, install
in the XDG user application data path, making the pack accessible for
the current user only. If the option is absent, use the first existing
and writable directory. If that doesn't exist find locations where it
can be created and prompt the user to do so.
- insecure(+Boolean)
- When
true
(default false
), do not perform any
checks on SSL certificates when downloading using https
.
- interactive(+Boolean)
- Use default answer without asking the user if there is a default action.
- silent(+Boolean)
- If
true
(default false), suppress informational progress
messages.
- upgrade(+Boolean)
- If
true
(default false
), upgrade package if it
is already installed.
- rebuild(Condition)
- Rebuild the foreign components. Condition is one of
if_absent
(default, do nothing if the directory with
foreign resources exists), make
(run make
) or true
(runāmake distclean` followed by the default configure and build
steps).
- test(Boolean)
- If
true
(default), run the pack tests.
- git(+Boolean)
- If
true
(default false
unless URL
ends with =.git=), assume the URL is a GIT repository.
- link(+Boolean)
- Can be used if the installation source is a local directory and the file
system supports symbolic links. In this case the system adds the current
directory to the pack registration using a symbolic link and performs
the local installation steps.
Non-interactive installation can be established using the option
interactive(false)
. It is adviced to install from a
particular
trusted URL instead of the plain pack name for unattented
operation.