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_install(+Spec:atom)
Install a package. Spec is one of

  • Archive file name
  • HTTP URL of an archive file name. This URL may contain a star (*) for the version. In this case pack_install asks for the directory content and selects the latest version.
  • GIT URL (not well supported yet)
  • A local directory name given as file:// URL or '.'
  • A package name. This queries the package repository at http://www.swi-prolog.org

After resolving the type of package, pack_install/2 is used to do the actual installation.