Manage cygwin packages.
Module file to accompany the cyg state.
Check if the package is valid on the given mirrors.
package -- The name of the package
cyg_arch -- The cygwin architecture
mirrors -- any mirrors to check
Returns (bool): True if Valid, otherwise False
CLI Example:
salt '*' cyg.check_valid_package <package name>
Install one or several packages.
The packages to install
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}]'
List locally installed packages.
package name to check. else all
Cygwin architecture to use Options are x86 and x86_64
CLI Example:
salt '*' cyg.list
Uninstall one or several packages.
The packages to uninstall.
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}]"
Update all packages.
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}]"