apt_rpm - apt_rpm package manager

Author:Evgenii Terechkov

Synopsis

New in version 1.5.

Manages packages with apt-rpm. Both low-level (rpm) and high-level (apt-get) package manager binaries required.

Options

parameter required default choices comments
pkg yes
    name of package to install, upgrade or remove.
    state no present
    • absent
    • present
    Indicates the desired package state
    update_cache no
    • yes
    • no
    update the package database first apt-get update.

    Examples


    # install package foo
    - apt_rpm: pkg=foo state=present
    # remove package foo
    - apt_rpm: pkg=foo state=absent
    # description: remove packages foo and bar
    - apt_rpm: pkg=foo,bar state=absent
    # description: update the package database and install bar (bar will be the updated if a newer version exists)
    - apt_rpm: name=bar state=present update_cache=yes

    Table Of Contents

    Previous topic

    apt_repository - Add and remove APT repositories

    Next topic

    composer - Dependency Manager for PHP