[det]pack_list(+Query)
[det]pack_list(+Query,
+Options)
[det]pack_search(+Query)Query package server and installed packages and display
results.
Query is matches case-insensitively against the name and
title of known and installed packages. For each matching package, a
single line is displayed that provides:
- Installation status
- p: package, not installed
- i: installed package; up-to-date with public version
- U: installed package; can be upgraded
- A: installed package; newer than publically available
- l: installed package; not on server
- Name@Version
- Name@Version(ServerVersion)
- Title
Options processed:
- installed(true)
- Only list packages that are locally installed. Contacts the server to
compare our local version to the latest available version.
- outdated(true)
- Only list packages that need to be updated. This option implies
installed(true)
.
- server(Server
|
false) - If
false
, do not contact the server. This implies
installed(true)
. Otherwise, use the given pack server.
Hint: ?- pack_list('').
lists all packages.
The predicates pack_list/1
and pack_search/1
are synonyms. Both contact the package server at https://www.swi-prolog.org
to find available packages.
- See also
- pack_list_installed/0
to list installed packages without contacting the server.