object
packs
ï
Pack handling predicates.
logtalk_load(packs(loader))
static, context_switching_calls
Public predicatesï
available/2
ï
Enumerates, by backtracking, all available packs.
static
available(Registry,Pack)
available(?atom,?atom)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
available/1
ï
Lists all the packs that are available for installation from the given registry.
static
available(Registry)
available(+atom)
- one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
available/0
ï
Lists all the packs that are available for installation from all defined registries.
static
available
- one
installed/4
ï
Enumerates by backtracking all installed packs.
static
installed(Registry,Pack,Version,Pinned)
installed(?atom,?atom,?compound,?boolean)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is neither a variable nor a compound term:type_error(compound,Version)
Pinned
is neither a variable nor a boolean:type_error(boolean,Pinned)
installed/3
ï
Enumerates by backtracking all installed packs.
static
installed(Registry,Pack,Version)
installed(?atom,?atom,?compound)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is neither a variable nor a compound term:type_error(compound,Version)
installed/1
ï
Lists all the packs that are installed from the given registry. Fails if the registry is unknown.
static
installed(Registry)
installed(+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
installed/0
ï
Lists all the packs that are installed.
static
installed
- one
outdated/4
ï
Enumerates by backtracking all installed but outdated packs (together with the current version installed and the latest version available).
static
outdated(Registry,Pack,Version,LatestVersion)
outdated(?atom,?atom,?compound,?compound)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is neither a variable nor a compound term:type_error(compound,Version)
LatestVersion
is neither a variable nor a compound term:type_error(compound,LatestVersion)
outdated/1
ï
Lists all the packs from the given registry that are installed but outdated.
static
outdated(Registry)
outdated(+atom)
- one
Registry
is neither a variable nor an atom:type_error(atom,Registry)
outdated/0
ï
Lists all the packs that are installed but outdated.
static
outdated
- one
orphaned/2
ï
Lists all the packs that are installed but whose registry is no longer defined.
static
orphaned(Registry,Pack)
orphaned(?atom,?atom)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
orphaned/0
ï
Lists all the packs that are installed but whose registry is no longer defined.
static
orphaned
- one
versions/3
ï
Returns a list of all available pack versions. Fails if the pack is unknown.
static
versions(Registry,Pack,Versions)
versions(+atom,+atom,-list)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
describe/2
ï
Describes a registered pack, including installed version if applicable. Fails if the pack is unknown.
static
describe(Registry,Pack)
describe(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
describe/1
ï
Describes a registered pack, including installed version if applicable. Fails if the pack is unknown.
static
describe(Pack)
describe(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
search/1
ï
Searches packs whose name or description includes the search term (case sensitive).
static
search(Term)
search(+atom)
- one
Term
is a variable:instantiation_error
Term
is neither a variable nor an atom:type_error(atom,Term)
install/4
ï
Installs a new pack using the specified options. Fails if the pack is unknown or already installed but not using update(true)
or force(true)
options. Fails also if the pack version is unknown.
static
install(Registry,Pack,Version,Options)
install(+atom,+atom,++compound,++list(compound))
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is a variable:instantiation_error
Version
is neither a variable nor a valid version:type_error(pack_version,Version)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
update(Boolean)
option: Update pack if already installed. Default isfalse
. Overrides theforce/1
option.
force(Boolean)
option: Force pack re-installation if already installed. Default isfalse
.
compatible(Boolean)
option: Restrict installation to compatible packs. Default istrue
.
clean(Boolean)
option: Clean pack archive after installation. Default isfalse
.
verbose(Boolean)
option: Verbose installing steps. Default isfalse
.
checksum(Boolean)
option: Verify pack archive checksum. Default istrue
.
checksig(Boolean)
option: Verify pack archive signature. Default isfalse
.
git(Atom)
option: Extra command-line options. Default is''
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
install/3
ï
Installs the specified version of a pack from the given registry using default options. Fails if the pack is already installed or unknown. Fails also if the pack version is unknown.
static
install(Registry,Pack,Version)
install(+atom,+atom,?compound)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is a variable:instantiation_error
Version
is neither a variable nor a valid version:type_error(pack_version,Version)
install/2
ï
Installs the latest version of a pack from the given registry using default options. Fails if the pack is already installed or unknown.
static
install(Registry,Pack)
install(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
install/1
ï
Installs a pack (if its name is unique among all registries) using default options. Fails if the pack is already installed or unknown. Fails also if the pack is available from multiple registries.
static
install(Pack)
install(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is not an atom:type_error(atom,Pack)
update/3
ï
Updates an outdated pack to the specified version using the specified options. Fails if the pack or the pack version is unknown or if the pack is not installed. Fails also if the pack is orphaned or pinned and not using a force(true)
option.
static
update(Pack,Version,Options)
update(+atom,++callable,++list(callable))
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Version
is a variable:instantiation_error
Version
is neither a variable nor a valid version:type_error(pack_version,Version)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
install(Boolean)
option: Install pack latest version if not already installed. Default isfalse
.
force(Boolean)
option: Force update if the pack is pinned or breaks installed packs. Default isfalse
.
compatible(Boolean)
option: Restrict updating to compatible packs. Default istrue
.
clean(Boolean)
option: Clean pack archive after updating. Default isfalse
.
verbose(Boolean)
option: Verbose updating steps. Default isfalse
.
checksum(Boolean)
option: Verify pack archive checksum. Default istrue
.
checksig(Boolean)
option: Verify pack archive signature. Default isfalse
.
git(Atom)
option: Extra command-line options. Default is''
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
update/2
ï
Updates an outdated pack to its latest version using the specified options. Fails if the pack is orphaned, unknown, or not installed. Fails also if the pack is pinned and not using a force(true)
option.
static
update(Pack,Options)
update(+atom,++list(callable))
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
install(Boolean)
option: Install pack latest version if not already installed. Default isfalse
.
force(Boolean)
option: Force update if the pack is pinned or breaks installed packs. Default isfalse
.
compatible(Boolean)
option: Restrict updating to compatible packs. Default istrue
.
clean(Boolean)
option: Clean pack archive after updating. Default isfalse
.
verbose(Boolean)
option: Verbose updating steps. Default isfalse
.
checksum(Boolean)
option: Verify pack archive checksum. Default istrue
.
checksig(Boolean)
option: Verify pack archive signature. Default isfalse
.
git(Atom)
option: Extra command-line options. Default is''
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
update/1
ï
Updates an outdated pack to its latest version using default options. Fails if the pack is pinned, orphaned, not installed, unknown, or breaks installed packs.
static
update(Pack)
update(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
update/0
ï
Updates all outdated packs (that are not pinned) using default options.
static
update
- zero_or_one
uninstall/2
ï
Uninstalls a pack using the specified options. Fails if the pack is unknown or not installed. Fails also if the pack is pinned or have dependents and not using a force(true)
option.
static
uninstall(Pack,Options)
uninstall(+atom,++list(compound))
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
force(Boolean)
option: Force deletion if the pack is pinned. Default isfalse
.
clean(Boolean)
option: Clean pack archive after deleting. Default isfalse
.
verbose(Boolean)
option: Verbose uninstalling steps. Default isfalse
.
uninstall/1
ï
Uninstalls a pack using default options. Fails if the pack is pinned, have dependents, not installed, or unknown.
static
uninstall(Pack)
uninstall(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
uninstall/0
ï
Uninstalls all packs using the force(true)
option.
static
uninstall
- zero_or_one
clean/2
ï
Cleans all pack archives. Fails if the the pack is unknown.
static
clean(Registry,Pack)
clean(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
clean/1
ï
Cleans all pack archives. Fails if the pack is unknown.
static
clean(Pack)
clean(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
clean/0
ï
Cleans all archives for all packs.
static
clean
- one
save/2
ï
Saves a list of all installed packs and registries plus pinning status to a file using the given options. Registries without installed packs are saved when using the option save(all)
and skipped when using the option save(installed)
(default).
static
save(File,Options)
save(+atom,++list(compound))
- one_or_error
File
is a variable:instantiation_error
File
is neither a variable nor an atom:type_error(atom,File)
File
is an existing file but cannot be written:permission_error(open,source_sink,File)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
save/1
ï
Saves a list of all installed packs and their registries plus pinning status to a file using default options.
static
save(File)
save(+atom)
- one_or_error
File
is a variable:instantiation_error
File
is neither a variable nor an atom:type_error(atom,File)
File
is an existing file but cannot be written:permission_error(open,source_sink,File)
restore/2
ï
Restores a list of registries and packs plus their pinning status from a file using the given options. Fails if restoring is not possible.
static
restore(File,Options)
restore(+atom,++list(compound))
- zero_or_one_or_error
File
is a variable:instantiation_error
File
is neither a variable nor an atom:type_error(atom,File)
File
is an atom but not an existing file:existence_error(file,File)
File
is an existing file but cannot be read:permission_error(open,source_sink,File)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
force(Boolean)
option: Force restoring if a registry is already defined or a pack is already installed. Default istrue
.
compatible(Boolean)
option: Restrict installation to compatible packs. Default istrue
.
clean(Boolean)
option: Clean registry and pack archives after restoring. Default isfalse
.
verbose(Boolean)
option: Verbose restoring steps. Default isfalse
.
checksum(Boolean)
option: Verify pack archive checksums. Default istrue
.
checksig(Boolean)
option: Verify pack archive signatures. Default isfalse
.
git(Atom)
option: Extra command-line options. Default is''
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
restore/1
ï
Restores a list of registries and packs plus their pinning status from a file using default options. Fails if restoring is not possible.
static
restore(File)
restore(+atom)
- zero_or_one_or_error
File
is a variable:instantiation_error
File
is neither a variable nor an atom:type_error(atom,File)
File
is an atom but not an existing file:existence_error(file,File)
File
is an existing file but cannot be read:permission_error(open,source_sink,File)
dependents/3
ï
Returns a list of all installed packs that depend on the given pack from the given registry. Fails if the pack is unknown.
static
dependents(Registry,Pack,Dependents)
dependents(+atom,+atom,-list(atom))
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
dependents/2
ï
Prints a list of all installed packs that depend on the given pack from the given registry. Fails if the pack is unknown.
static
dependents(Registry,Pack)
dependents(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
dependents/1
ï
Prints a list of all installed packs that depend on the given pack if unique from all defined registries. Fails if the pack is unknown or available from multiple registries.
static
dependents(Pack)
dependents(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
lint/2
ï
Checks the pack specification. Fails if the pack is unknown or if linting detects errors.
static
lint(Registry,Pack)
lint(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
lint/1
ï
Checks the pack specification. Fails if the pack is unknown, or available from multiple registries, or if linting detects errors.
static
lint(Pack)
lint(+atom)
- zero_or_one
Pack
is a variable:instantiation_error
Pack
is neither a variable nor an atom:type_error(atom,Pack)
lint/0
ï
Checks all pack specifications.
static
lint
- one
Protected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)