• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

15.3 library(prolog_pack): A package manager for Prolog
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Packs: community add-ons
        • library(prolog_pack): A package manager for Prolog
          • pack_list_installed/0
          • pack_info/1
          • pack_list/1
          • pack_list/2
          • pack_search/1
          • pack_install/1
          • pack_install/2
          • pack_install_local/3
          • pack_url_file/2
          • pack_rebuild/0
          • pack_rebuild/1
          • pack_upgrade/1
          • pack_remove/1
          • pack_remove/2
          • pack_publish/2
          • pack_property/2
    • Packages
Availability::- use_module(library(prolog_pack)).(can be autoloaded)
Source[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
    • 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.

ClioPatria (version V3.1.1-51-ga0b30a5)