salt.modules.brew

salt.modules.brew.install(pkgs, refresh=False, repo='', skip_verify=False, **kwargs)

Install the passed package(s) with brew install

pkgs
The names of the packages to be installed

Return a dict containing the new package names and versions:

{'<package>': {'old': '<old-version>',
           'new': '<new-version>']}

CLI Example:

salt '*' pkg.install 'package package package'
salt.modules.brew.list_pkgs(*args)

List the packages currently installed in a dict:

{'<package_name>': '<version>'}

CLI Example:

salt '*' pkg.list_pkgs
salt.modules.brew.list_upgrades()

Check whether or not an upgrade is available for all packages

CLI Example:

salt '*' pkg.list_upgrades
salt.modules.brew.remove(pkgs)

Removes packages with brew uninstall

Return a list containing the removed packages:

CLI Example:

salt '*' pkg.remove <package,package,package>
salt.modules.brew.upgrade_available(pkg)

Check whether or not an upgrade is available for a given package

CLI Example:

salt '*' pkg.upgrade_available <package name>
salt.modules.brew.version(name)

Returns a version if the package is installed, else returns an empty string

CLI Example:

salt '*' pkg.version <package name>

Comments

comments powered by Disqus

Parent topic

Previous topic

salt.modules.bluez

Next topic

salt.modules.butterkvm