Module yum

Ensure that a yum managed package is present, absent or updated.

Info:

Functions

add_repo(None)
Add custom repository. See yum-config-manager(1).

Promiser:

    Location (file or URL) of the repository

Parameters:

  • None

Usage:

    yum.add_repo("http://openresty.org/yum/centos/OpenResty.repo")
clean(None)
Run clean mode. See yum(8) for possible options.

Promiser:

    option to pass to yum clean

Parameters:

  • None

Usage:

    yum.clean("all")!
present(cleanall, config, nogpgcheck, security, bugfix, proxy, update, update_minimal)
Install a package via the Yum package manager. See yum(8) for full description of options and parameters

Promiser:

    package

Aliases:

  • installed
  • install

Parameters:

  • cleanall run yum clean all before proceeding [CHOICES: "yes", "no"]
  • config yum config file location
  • nogpgcheck disable GPG signature checking [CHOICES: "yes","no"]
  • security include packages with security related errata (yum-plugin-security) [CHOICES: "yes","no"]
  • bugfix include packages with bugfix related updates (yum-plugin-security) [CHOICES: "yes","no"]
  • proxy HTTP proxy to use for connections. Passed as an environment variable.
  • update update all packages to the latest version [CHOICES: "yes","no"]
  • update_minimal only update to the version with a bugfix or security errata [CHOICES: "yes","no"]

Usage:

    yum.present("strace")
         update: "yes"
absent(config)
Remove a package via the Yum package manager.

Promiser:

    package

Aliases:

  • removed
  • remove

Parameters:

  • config yum config file location

Usage:

    yum.absent("strace"){
        config = "/etc/yum.conf"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38