Skip to content

luciangreen/List-Prolog-Package-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucian Academy as Boxes in an L-Shape

List-Prolog-Package-Manager (LPPM)

Registry manager and installer for GitHub repositories (of any language) with dependencies

  • lppm.pl - starts a local or remote Prolog server to host the registry, where a repository entry on the registry can be uploaded or edited by reuploading, and GitHub repositories (a.k.a. packages) in the registry can be installed when in the same folder as the registry on the server.
  • lppm_registry.pl - contains users, repositories, descriptions and dependencies (lists of users and repositories).
  • LPPM now installs repositories needed by repositories, etc. without needing them in the first registry entry.

Getting Started

Please read the following instructions on how to install the project on your computer for installing repositories with dependencies.

Prerequisites

  • Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.

  • Check the prerequisites for the specific repository to install.

1. Install manually

  • Manually download the repositories listed under "Install manually" for the repository.

2. Or Install from List Prolog Package Manager (LPPM)

mkdir GitHub
cd GitHub/
git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
cd List-Prolog-Package-Manager
swipl
['lppm'].
lppm_install("luciangreen","<Name of Repository>").
../
halt.
  • where is replaced with the name of the repository.

Running

cd <Name of Repository> (the name of the repository) swipl <Running instructions for the repository> (see the repository instructions)

Optional Web Interface

  • Load lppm by entering ['lppm.pl']. in SWI-Prolog and run with the command e.g. lppm_start_server(8001). on the machine that is a local or remote host.
  • In the web browser, go to http://127.0.0.1:8001/ to upload registry entries. Take care to enter double quotes around all strings. The registry will not accept badly formatted input. To update an entry, re-enter it with the same user and repository.
  • In the web browser, view the registry at http://127.0.0.1:8001/registry.
  • Install packages by running lppm_install("User","Repository"). LPPM will prompt you for an installation folder. Packages are uncompressed source code from GitHub, saved to folders of the same name in the target folder. Please enter the relevant folder and follow the running instructions from the repository.

Authors

Lucian Green - Initial programmer - Lucian Academy

License

I licensed this project under the BSD3 License - see the LICENSE.md file for details

About

Registry manager and installer for repositories with dependencies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages