salt.modules.cyg
Manage cygwin packages.
Module file to accompany the cyg state.
-
Check if the package is valid on the given mirrors.
- Parameters
-
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>
salt.modules.cyg.check_valid_package(package, cyg_arch='x86_64', mirrors=None)
-
Install one or several packages.
- packagesNone
-
The packages to install
- cyg_archx86_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.install(packages=None, cyg_arch='x86_64', mirrors=None)
-
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.list_(package='', cyg_arch='x86_64')
-
Uninstall one or several packages.
- packages
-
The packages to uninstall.
- cyg_archx86_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.uninstall(packages, cyg_arch='x86_64', mirrors=None)
-
Update all packages.
- cyg_archx86_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}]"
salt.modules.cyg.update(cyg_arch='x86_64', mirrors=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.cyg.html