Skip to content

DFabric/dppm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DP logo

Gitter ISC

DPPM

The DPlatform's Package Manager

Features

  • easy install, modification and backup of the applications
  • support a wide range of systems (UN*Xes, x86, ARM) - distribution agnostic
  • can use systemd or OpenRC for system services
  • independent of your system's package manager

Install

For now only the x86-64 architecture is available. An issue is open to support armhf and aarch64.

Automatic

Get the helper:

wget https://raw.githubusercontent.com/DFabric/apps-static/master/helper.sh -O /tmp/helper.sh

or curl -SL https://raw.githubusercontent.com/DFabric/apps-static/master/helper.sh -o /tmp/helper.sh

Download dppm:

sh /tmp/helper.sh dppm-static

The binary is bin/dppm on the directory. Place it wherever you want (e.g. /usr/local/bin)

Manual

Get the pre-compiled binary called dppm-static_*, and extract it.

Usage

To show the help:

dppm --help

To list available packages (applications and libraries):

dppm list

A typical installation can be:

dppm install [application] prefix=/opt owner=myapp # install a new application in /opt as `myapp`
dppm service [application] run true                # start the service
dppm service [application] boot true               # auto start the service at boot

The user and group used by the application here is myapp. Read more about security recommendations

Note that install will build the package, and then add it to the system.

Root execution is needed to add a system service (systemd or OpenRC)

How to build

Intall dependencies:

shards install

Build a dppm executable:

crystal build src/dppm.cr -o dppm

Run it

./dppm --help

For more informations, see the official docs

License

Copyright (c) 2018 Julien Reichardt - ISC License