Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tutorial:program:oppm [2017/01/12 17:42]
vexatos
tutorial:program:oppm [2021/01/20 17:32]
hawk777 [Using OPPM] Add register and unregister commands
Line 23: Line 23:
 - `oppm uninstall <​package>​`  ​ - `oppm uninstall <​package>​`  ​
 Removes every file of the specified package from your system. Removes every file of the specified package from your system.
 +
 +- `oppm register <​userorgroup>/<​repository>​`
 +Adds the Github repository found at `https://​github.com/<​userorgroup>/<​repository>​` as an additional source of programs. The repository must have a branch named `master`, and that branch must contain a properly structured file named `programs.cfg` in its root directory.
 +
 +- `oppm unregister <​userorgroup>/<​repository>​`
 +Removes the Github repository found at `https://​github.com/<​userorgroup>/<​repository>​` from the list of additional repositories to search.
  
 ##​Registering packages locally ##​Registering packages locally
Line 106: Line 112:
       [":​master/​otherfolder"​] = "//​etc/​something",​ -- This also works with absolute paths       [":​master/​otherfolder"​] = "//​etc/​something",​ -- This also works with absolute paths
       ["​master/​somefolder/​barlib.lua"​] = "/​subfolder",​--Places the file in a subfolder in the user-specified folder       ["​master/​somefolder/​barlib.lua"​] = "/​subfolder",​--Places the file in a subfolder in the user-specified folder
-      ["​master/​somefolder/​libfolder/"] = "/"​+      ["?master/​somefolder/​something.cfg"] = "/" ​-- This file will only be installed or updated if it doesn'​t exist already, unless option -f is specified
     },     },
     dependencies = {     dependencies = {