package-generic summary

Plugin Name: package-generic
Version: 0.3.10
Author: @melezhik
Realease Date: 2017-10-11 14:09:09
Short Description: Generic package manager. Installs packages using OS specific package managers (yum,apt-get,apk)
Category: sparrowdo
Plugin web page: https://github.com/melezhik/package-generic
 
Download link: package-generic-v0.003010.tar.gz
Latest version link: https://sparrowhub.org/info/package-generic

# 0.3.8-10

Issue warning instead of fall-back to yum, when unknown OS

# 0.3.7

Minoca OS support

package-generic documentation

SYNOPSIS

Generic package manager. Installs packages using OS specific package managers.

OS supported:

  • Debian, Ubuntu - apt
  • CentOS, Fedora - yum
  • Alpine Linux - apk
  • Archlinux - pacman

INSTALL

  $ sparrow plg install package-generic

USAGE

Manually

  $ sparrow plg run package-generic --param list='curl telnet nano'

Sparrowdo

  task-run 'install my packages', 'package-generic', %(
    list => 'nano hunspell mc'
  );

Plugin parameters

list

Should be space separated list of packages to install. Example of usage by sparrow task:

  list nano hunspell mc

action

Should be one of two: install|autoremove. Autoremove is only supported for Debian, Ubuntu systems. Default value install;

Installing OS depended packages

You may pass list as HASH with keys related to OS distribution names to handle packages respectively to OS, here is the example with using YAML format:

  $ sparrow project create packages
  $ sparrow task add package apache package-generic
  $ sparrow task ini packages/apache

  list:
    debian:
      - apache2
    centos:
      - httpd 
      - mod_ssl

  $ sparrow task run packages/apache

Or using sparrowdo:

  task-run 'install apache web server', 'package-generic', %(
    list => %(
      'debian' => ( 'apache2' ),
      'centos7' => ( 'httpd', 'mod_ssl' ),
    )
  );

AUTHOR

Alexey Melezhik