Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melezhik/package-generic
Generic package manager. Install packages using OS specific package managers (yum,apt-get)
https://github.com/melezhik/package-generic
alpine-linux apt-get archlinux centos debian package-manager packman ubuntu yum
Last synced: about 1 month ago
JSON representation
Generic package manager. Install packages using OS specific package managers (yum,apt-get)
- Host: GitHub
- URL: https://github.com/melezhik/package-generic
- Owner: melezhik
- Created: 2016-05-03T11:00:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T11:11:13.000Z (over 7 years ago)
- Last Synced: 2024-11-05T21:50:18.119Z (3 months ago)
- Topics: alpine-linux, apt-get, archlinux, centos, debian, package-manager, packman, ubuntu, yum
- Language: Perl
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes.md
Awesome Lists containing this project
README
# 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/apacheOr using sparrowdo:
task-run 'install apache web server', 'package-generic', %(
list => %(
'debian' => ( 'apache2' ),
'centos7' => ( 'httpd', 'mod_ssl' ),
)
);# AUTHOR
[Alexey Melezhik](mailto:[email protected])