65. cdist-type__package_opkg(7)

Manage packages with opkg

Giel van Schijndel <giel+cdist--@--mortis.eu>

65.1. DESCRIPTION

opkg is usually used on OpenWRT to manage packages.

65.2. REQUIRED PARAMETERS

None

65.3. OPTIONAL PARAMETERS

name
If supplied, use the name and not the object id as the package name.
state
Either “present” or “absent”, defaults to “present”

65.4. EXAMPLES

# Ensure lsof is installed
__package_opkg lsof --state present

# Remove obsolete package
__package_opkg dnsmasq --state absent

65.6. COPYING

Copyright (C) 2012 Giel van Schijndel. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).