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
Next revision Both sides next revision
tutorial:program:oppm [2014/08/18 14:11]
vexatos [Tutorial: The OpenPrograms Package Manager (OPPM)]
tutorial:program:oppm [2015/02/04 16:58]
vexatos [Registering packages globally]
Line 2: Line 2:
 ============================================ ============================================
  
-The OpenPrograms Package Manager, called OPPM, is a program available through a dungeon loot disk in OpenComputers. It provides a large variety of programs, ​henceforth ​called "​packages",​ for you to download and install easily. It is meant to make users able to easily distribute their programs, it is supposed to make installing, updating and uninstalling packages just as easy as creating and registering them.+The OpenPrograms Package Manager, called OPPM, is a program available through a dungeon loot disk in OpenComputers. It provides a large variety of programs, ​from now on called "​packages",​ for you to download and install easily. It is meant to make users able to easily distribute their programs, it is supposed to make installing, updating and uninstalling packages just as easy as creating and registering them.
  
 ##Using OPPM ##Using OPPM
 For OPPM to work, you will need at least a Tier 2 case and an Internet card inserted.  ​ For OPPM to work, you will need at least a Tier 2 case and an Internet card inserted.  ​
-The first thing to do once you have acquired the floppy disk containing OPPM, the first thing you should do after insertsion ​is run `oppm install oppm` to install the latest version of the package manager onto your main hard drive. Once that is done, you can shut down your computer, remove the floppy disk and restart.  ​+Once you have acquired the floppy disk containing OPPM, the first thing you should do after insertion ​is run `oppm install oppm` to install the latest version of the package manager onto your main hard drive. Once that is done, you can shut down your computer, remove the floppy disk and restart.  ​
 OPPM supports a few arguments, which will be explained now: OPPM supports a few arguments, which will be explained now:
  
 - `oppm list [filter] [-i]`  ​ - `oppm list [filter] [-i]`  ​
-This command lists all the available packages ​that you can download, every package has a unique name listed here. The list is sorted by alphabet. The optional argument `filter` will make the list only display the packages which have the specified filter in their name. The option -i makes the command only list packages which have already been installed.+This command lists all the available packages ​by their unique name. The list is sorted by alphabet. The optional argument `filter` will make the list only display the packages which have the specified filter in their name. The option -i makes the command only list packages which have already been installed.
  
 -  `oppm info <​package>​`  ​ -  `oppm info <​package>​`  ​
Line 19: Line 19:
  
 - `oppm update <​package>​`  ​ - `oppm update <​package>​`  ​
-This command uninstalls the specified package and re-downloads it, making sure you have the very-most up-to-date version of the package. ​if `package` is "​all",​ every package that is currently installed will be updated.+This command uninstalls the specified package and re-downloads it, making sure you have the very-most up-to-date version of the package. ​If `package` is "​all",​ every package that is currently installed will be updated.
  
 - `oppm uninstall <​package>​`  ​ - `oppm uninstall <​package>​`  ​
Line 27: Line 27:
 _Note_: If you only want to use packages provided by other people and do not want to make any packages yourself, you can stop reading now. _Note_: If you only want to use packages provided by other people and do not want to make any packages yourself, you can stop reading now.
  
-_Note 2_: General knowledge of using Lua and GitHub is henceforth presupposed.+_Note 2_: General knowledge of using Lua and GitHub is being required.
  
 To register a package yourself, you need to have every file the program needs to run on some repository on [[https://​github.com/​|GitHub]]. To register a package yourself, you need to have every file the program needs to run on some repository on [[https://​github.com/​|GitHub]].
Line 58: Line 58:
         },         },
         dependencies = {         dependencies = {
-          ["some-dependency"] = "/​lib"​--This package is installed into the specified subfolder+          ["GML"] = "/​lib"​--This package is installed into the specified subfolder
         },         },
         name = "​Package name",​--This is for "oppm info"         name = "​Package name",​--This is for "oppm info"
Line 68: Line 68:
       },       },
       ["​yet-another-package"​] = {       ["​yet-another-package"​] = {
-                    --...--+              ​...
       }       }
     },     },
Line 115: Line 115:
   },   },
   ["​yet-another-package"​] = {   ["​yet-another-package"​] = {
-      ​...+          ​...
   }   }
 } }