A.39 library(prolog_pack): A package manager for Prolog
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(prolog_pack): A package manager for Prolog
          • pack_list_installed/0
          • pack_info/1
          • pack_search/1
          • pack_list/1
          • pack_install/1
          • pack_install/2
          • pack_url_file/2
          • ssl_verify/5
          • pack_rebuild/1
          • pack_rebuild/0
          • pack_upgrade/1
          • pack_remove/1
          • pack_property/2
          • atom_version/2
          • pack_attach/2
    • Packages
Availability::- use_module(library(prolog_pack)).(can be autoloaded)
Source[det]pack_search(+Query)
[det]pack_list(+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

Hint: ?- pack_list(''). lists all packages.

The predicates pack_list/1 and pack_search/1 are synonyms. Both contact the package server at http://www.swi-prolog.org to find available packages.

See also
pack_list_installed/0 to list installed packages without contacting the server.