openbsd_pkg - Manage packages on OpenBSD.

Author:Patrik Lundin

Synopsis

New in version 1.1.

Manage packages on OpenBSD using the pkg tools.

Options

parameter required default choices comments
name yes
    Name of the package.
    state yes
    • present
    • latest
    • absent
    present will make sure the package is installed. latest will make sure the latest version of the package is installed. absent will make sure the specified package is not installed.

    Examples


    # Make sure nmap is installed
    - openbsd_pkg: name=nmap state=present
    
    # Make sure nmap is the latest version
    - openbsd_pkg: name=nmap state=latest
    
    # Make sure nmap is not installed
    - openbsd_pkg: name=nmap state=absent
    
    # Specify a pkg flavour with '--'
    - openbsd_pkg: name=vim--nox11 state=present
    
    # Specify the default flavour to avoid ambiguity errors
    - openbsd_pkg: name=vim-- state=present

    Table Of Contents

    Previous topic

    npm - Manage node.js packages with npm

    Next topic

    opkg - Package manager for OpenWrt