diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-31 12:57:41 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-31 12:57:41 -0500 |
commit | 5126cdc3c7385f01fe0839d63e2621914812dd26 (patch) | |
tree | 339f1350e456aa07e87d93bbc00761fe92cca4d3 /README.md | |
parent | 14e3176507d9e5a1c7ad92c668ba90db3df302fd (diff) | |
download | spmc-5126cdc3c7385f01fe0839d63e2621914812dd26.tar.gz |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 98 |
1 files changed, 95 insertions, 3 deletions
@@ -1,5 +1,97 @@ -# SPM (C port) +# Simple Package Manager (SPM) + +(Original project: https://github.com/jhunkeler/spm) + +A basic userland package management system with a few humble goals: + +- To be simple and easy to use +- To support Linux, MacOS (not yet), and Windows (not yet) +- To avoid using `root` (or administrative accounts in general) to install software +- To keep your Monday mornings and Fridays evenings pain free + +## Build requirements + +- cmake (https://cmake.org) +- curl (https://curl.haxx.se) +- gcc (https://gcc.gnu.org) +- openssl (https://www.openssl.org) + +## Runtime Requirements + +- file (http://darwinsys.com/file) +- patchelf (https://nixos.org/patchelf.html) +- reloc (https://github.com/jhunkeler/reloc) +- rsync (https://rsync.samba.org) +- tar (https://www.gnu.org/software/tar) + +## Installation + +### Dependencies + +#### CentOS + +```bash +$ yum install epel-release +$ yum install cmake curl-devel file gcc openssl-devel patchelf rsync tar +``` + +#### Arch + +```bash +$ pacman -S cmake curl file gcc openssl patchelf rsync tar +``` + +### Install reloc + +```bash +$ git clone https://github.com/jhunkeler/reloc +$ cd reloc +$ mkdir build +$ cd build +$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release +``` + +### Install SPM + +```bash +$ git clone https://github.com/jhunkeler/spm +$ cd spm +$ mkdir build +$ cd build +$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release +$ make install +``` + +## Configuration + +_TODO_ + +## Usage + +```bash +$ ./spm --help +usage: spm [-hVvBIrLS] + -h, --help show this help message + -V, --version show version + -v, --verbose show more information + -B, --build build package(s) + -I, --install install package(s) + -r, --root installation prefix (requires --install) + -L, --list list available packages + -S, --search search for a package +``` + +## Building SPM Packages + +_TODO_ + +## Development + +```bash +$ git clone https://github.com/jhunkeler/spm +$ cd spm +$ mkdir build +$ make +``` -Original project: https://github.com/jhunkeler/spm -WORK-IN-PROGRESS |