PHPackages                             falc/robo-system-package - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. falc/robo-system-package

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

falc/robo-system-package
========================

Robo tasks related to system package management.

v1.0.0(10y ago)233MITPHP

Since Sep 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Falc/RoboSystemPackage)[ Packagist](https://packagist.org/packages/falc/robo-system-package)[ RSS](/packages/falc-robo-system-package/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Robo System Package Tasks
=========================

[](#robo-system-package-tasks)

[![License](https://camo.githubusercontent.com/72d359edd53b5ecf7687ff343d7447f67217206fd9608b7521d6f9ea7f7599e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66616c632f726f626f2d73797374656d2d7061636b6167652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/66564df0975e084b94e222f8e130386836f708f4eec3918f8d5a0b623a237f35/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f46616c632f526f626f53797374656d5061636b6167652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Falc/RoboSystemPackage)[![Coverage Status](https://camo.githubusercontent.com/eb9313f5d4cc0cff089595ea43e52186dafe5910cbf2f3aa2d22b070760129dd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f46616c632f526f626f53797374656d5061636b6167652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Falc/RoboSystemPackage/)[![Quality Score](https://camo.githubusercontent.com/ab52ca8599a6fd3730894f7f6c442a403582a731cdf21dd05a69df25cad36069/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f46616c632f526f626f53797374656d5061636b6167652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Falc/RoboSystemPackage/)

Collection of tasks for interacting with system package managers.

Requirements
------------

[](#requirements)

- [Robo](http://robo.li/) ~0.5 (0.5.0 or higher)

Installation
------------

[](#installation)

Add the `falc/robo-system-package` package to your `composer.json`:

```
composer require falc/robo-system-package

```

Add the `Falc\Robo\Package\loadTasks` trait to your `RoboFile`:

```
class RoboFile extends \Robo\Tasks
{
    use Falc\Robo\Package\loadTasks;

    // ...
}
```

Tasks
-----

[](#tasks)

### Install

[](#install)

Installing a single package:

```
$this->taskPackageInstall()
    ->packageManager('yum')
    ->package('package1')
    ->run();
```

Installing many packages:

```
$this->taskPackageInstall()
    ->packageManager('yum')
    ->packages(['package1', 'package2'])
    ->run();
```

Compact form:

```
$this->taskPackageInstall('yum', ['package1', 'package2'])->run();
```

It allows to specify packages conditionally:

```
$install = $this->taskPackageInstall('yum', ['package1']);

if ($requiresPackage2) {
    $install->package('package2');
}

$install->run();
```

It is possible to specify a pattern:

```
$this->taskPackageInstall()
    ->packageManager('yum')
    ->package('package1-*') // Installs all packages starting with "package1-"
    ->run();
```

You can combine it with `taskSshExec()` to install packages in a remote server:

```
$installTask = $this->taskPackageInstall()
    ->packageManager('yum')
    ->packages(['package1', 'package2']);

$this->taskSshExec('remote.example.com')
    ->remoteDir('/home/user')
    ->printed(false) // Do not display output
    ->exec($installTask)
    ->run();
```

### Uninstall

[](#uninstall)

Uninstalling a single package:

```
$this->taskPackageUninstall()
    ->packageManager('yum')
    ->package('package1')
    ->run();
```

Uninstalling many packages:

```
$this->taskPackageUninstall()
    ->packageManager('yum')
    ->packages(['package1', 'package2'])
    ->run();
```

Compact form:

```
$this->taskPackageUninstall('yum', ['package1', 'package2'])->run();
```

It is possible to specify a pattern:

```
$this->taskPackageUninstall()
    ->packageManager('yum')
    ->package('package1-*') // Uninstalls all packages starting with "package1-"
    ->run();
```

You can combine it with `taskSshExec()` to uninstall packages from a remote server:

```
$uninstallTask = $this->taskPackageUninstall()
    ->packageManager('yum')
    ->packages(['package1', 'package2']);

$this->taskSshExec('remote.example.com')
    ->remoteDir('/home/user')
    ->printed(false) // Do not display output
    ->exec($uninstallTask)
    ->run();
```

### Update

[](#update)

Updating a single package:

```
$this->taskPackageUpdate()
    ->packageManager('yum')
    ->package('package1')
    ->run();
```

Updating many packages:

```
$this->taskPackageUpdate()
    ->packageManager('yum')
    ->packages(['package1', 'package2'])
    ->run();
```

Do not specify any package in order to perform a full update:

```
$this->taskPackageUpdate()
    ->packageManager('yum')
    ->run();
```

Compact form:

```
// Update some packages
$this->taskPackageUpdate('yum', ['package1', 'package2'])->run();

// Update everything
$this->taskPackageUpdate('yum')->run();
```

It is possible to specify a pattern:

```
$this->taskPackageUpdate()
    ->packageManager('yum')
    ->package('package1-*') // Updates all packages starting with "package1-"
    ->run();
```

You can combine it with `taskSshExec()` to update packages in a remote server:

```
$updateTask = $this->taskPackageUpdate()
    ->packageManager('yum')
    ->packages(['package1', 'package2']);

$this->taskSshExec('remote.example.com')
    ->remoteDir('/home/user')
    ->printed(false) // Do not display output
    ->exec($updateTask)
    ->run();
```

Methods
-------

[](#methods)

All the tasks implement these methods:

- `packageManager($packageManager)`: Sets the package manager to use.
- `package()`: Adds a package to the package list.
- `packages()`: Adds packages to the package list.
- `verbose()`: Enables the verbose mode.

Package managers
----------------

[](#package-managers)

Every task requires to set a package manager either in the constructor or using the `packageManager($packageManager)` method.

At the moment these are the supported package managers:

- [apt](https://wiki.debian.org/Apt)
- [dnf](http://dnf.readthedocs.org/)
- [pacman](https://wiki.archlinux.org/index.php/Pacman)
- [yum](https://fedoraproject.org/wiki/Yum)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be271db0bc92d30320293f761662e84dec7d3ef5ae3f7b037cba1c2f1c2ac8d5?d=identicon)[Falc](/maintainers/Falc)

---

Top Contributors

[![Falc](https://avatars.githubusercontent.com/u/246051?v=4)](https://github.com/Falc "Falc (21 commits)")

---

Tags

systemtaskpackagesroboaptdnfpacmanyum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/falc-robo-system-package/health.svg)

```
[![Health](https://phpackages.com/badges/falc-robo-system-package/health.svg)](https://phpackages.com/packages/falc-robo-system-package)
```

###  Alternatives

[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k21.7M876](/packages/phing-phing)[laravel-admin-ext/scheduling

Task scheduling extension for laravel-admin

93247.1k6](/packages/laravel-admin-ext-scheduling)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[rewieer/taskschedulerbundle

Task Scheduler with CRON for Symfony

63242.1k](/packages/rewieer-taskschedulerbundle)[ttree/scheduler

Simple task scheduler for Neos Flow Framework

21108.8k1](/packages/ttree-scheduler)[trentrichardson/cakephp-scheduler

Makes scheduling tasks in CakePHP much simpler.

3137.0k](/packages/trentrichardson-cakephp-scheduler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
