Skip to content

Packages

Alexander Karpukhin edited this page May 22, 2023 · 2 revisions

Install

When installing a package we download a json file from a remote repository. This repository is https://GitHub.com/thealexdev23/japm-official-packages however this can be changed by modifying lib/libjapml/init.c and recompiling.

A package’s json file should be located under {repo}/packages/{package_name}/package.json JAPML will fetch from that location and if it doesn’t exist the package will be considered not found.

Json should be present in the following format. Json was chosen due to the ease of implementing a parsing system of json files with the json-c library.

After a successful install packages are added to the local database under /var/japml/local.db this is a SQL database managed with SQLite once again, due to the ease of doing so.

Removal

Removal instructions are gathered from the previously mentioned database upon removal.

Update

Update involves removing and reinstalling the selected packages.

Clone this wiki locally