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
- a: as i, but installed only as dependency
- 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 known 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. Contacting the server can be avoided using the
server(false)
option.