salt.modules.cyg

Manage cygwin packages.

Module file to accompany the cyg state.

salt.modules.cyg.check_valid_package(package, cyg_arch='x86_64', mirrors=None)

Check if the package is valid on the given mirrors.

salt.modules.cyg.install(packages=None, cyg_arch='x86_64', mirrors=None)

Install one or several packages.

packages : None
The packages to install
cyg_arch : x86_64
Specify the architecture to install the package under Current options are x86 and x86_64

CLI Example:

salt '*' cyg.install dos2unix
salt '*' cyg.install dos2unix mirrors=[{'http://mirror': 'http://url/to/public/key}]
salt.modules.cyg.list_(package='', cyg_arch='x86_64')

List locally installed packages.

package : ''
package name to check. else all
cyg_arch :
Cygwin architecture to use Options are x86 and x86_64

CLI Example:

salt '*' cyg.list
salt.modules.cyg.uninstall(packages, cyg_arch='x86_64', mirrors=None)

Uninstall one or several packages.

packages
The packages to uninstall.
cyg_arch : x86_64
Specify the architecture to remove the package from Current options are x86 and x86_64

CLI Example:

salt '*' cyg.uninstall dos2unix
salt '*' cyg.uninstall dos2unix mirrors=[{'http://mirror': 'http://url/to/public/key}]
salt.modules.cyg.update(cyg_arch='x86_64', mirrors=None)

Update all packages.

cyg_arch : x86_64
Specify the cygwin architecture update Current options are x86 and x86_64

CLI Example:

salt '*' cyg.update
salt '*' cyg.update dos2unix mirrors=[{'http://mirror': 'http://url/to/public/key}]