fabtools.opkg

opkg packages

This module provides tools to manage opkg packages and repositories.

fabtools.opkg.update_index(quiet=True)[source]

Update opkg package definitions.

fabtools.opkg.upgrade()[source]

Upgrade all packages.

fabtools.opkg.is_installed(pkg_name)[source]

Check if a package is installed.

fabtools.opkg.install(packages, update=False, options=None)[source]

Install one or more packages.

If update is True, the package definitions will be updated first, using update_index().

Extra options may be passed to opkg if necessary.

Example:

import fabtools

# Update index, then install a single package
fabtools.opkg.install('build-essential', update=True)

# Install multiple packages
fabtools.opkg.install([
    'mc',
    'htop',
])
fabtools.opkg.uninstall(packages, options=None)[source]

Remove one or more packages.

Extra options may be passed to opkg if necessary.