Module Expr Str ImportFrom alias alias alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Dict Str Dict NameLoad NameLoad Str Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Dict Str Dict NameLoad NameLoad Str Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad With Call NameLoad Call NameLoad Str Str Str Str keyword NameLoad body Assign NameStore Call NameLoad BinOpMod Str Call NameLoad If AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call NameLoad BinOpMod Str Call NameLoad orelse Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore NameLoad With Call NameLoad Call NameLoad Str Str body If NameLoad body Assign NameStore Call NameLoad BinOpMod Str Call NameLoad orelse Assign NameStore Call NameLoad BinOpMod Str Call NameLoad Return Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num SubscriptLoad Call AttributeLoad NameLoad attr Slice Num decorator_list
N/A N/A 
RPM packages
============

This module provides tools to manage CentOS/RHEL/SL/Fedora packages
and repositories.

 fabric.api hide run settings fabtools.utils run_as_root N/A MANAGER yum -y --color=never update N/A N/A kernel N/A False N/A N/A 
    Upgrade all packages, skip obsoletes if ``obsoletes=0`` in ``yum.conf``.

    Exclude *kernel* upgrades by default.
     N/A manager MANAGER N/A cmds N/A yum -y --color=never N/A False True --exclude=kernel* update update N/A cmd N/A N/A cmds N/A manager N/A kernel N/A N/A run_as_root N/A %(manager)s %(cmd)s N/A locals N/A upgrade N/A N/A kernel N/A False N/A N/A 
    Upgrade all packages, including obsoletes.

    Exclude *kernel* upgrades by default.
     N/A manager MANAGER N/A cmds N/A yum -y --color=never N/A False True --exclude=kernel* upgrade upgrade N/A cmd N/A N/A cmds N/A manager N/A kernel N/A N/A run_as_root N/A %(manager)s %(cmd)s N/A locals N/A groupupdate N/A N/A group options N/A None N/A N/A 
    Update an existing software group, skip obsoletes if ``obsoletes=1`` in ``yum.conf``.

    Extra *options* may be passed to ``yum`` if necessary.
     N/A manager MANAGER N/A N/A options None N/A N/A options N/A N/A N/A N/A isinstance options str N/A N/A options N/A options N/A options N/A N/A join options N/A N/A run_as_root N/A %(manager)s %(options)s groupupdate "%(group)s" N/A locals N/A is_installed N/A N/A pkg_name N/A N/A N/A 
    Check if an RPM package is installed.
     N/A manager MANAGER N/A N/A settings N/A hide running stdout stderr warnings warn_only True N/A N/A res N/A run N/A rpm --query %(pkg_name)s N/A locals N/A N/A res succeeded N/A N/A True N/A False N/A install N/A N/A packages repos yes options N/A None None None N/A N/A 
    Install one or more RPM packages.

    Extra *repos* may be passed to ``yum`` to enable extra repositories at install time.

    Extra *yes* may be passed to ``yum`` to validate license if necessary.

    Extra *options* may be passed to ``yum`` if necessary
    (e.g. ``['--nogpgcheck', '--exclude=package']``).

    ::

        import fabtools

        # Install a single package, in an alternative install root
        fabtools.rpm.install('emacs', options='--installroot=/my/new/location')

        # Install multiple packages silently
        fabtools.rpm.install([
            'unzip',
            'nano'
        ], '--quiet')

     N/A manager MANAGER N/A N/A options None N/A N/A options N/A N/A N/A N/A isinstance options str N/A N/A options N/A options N/A N/A N/A isinstance packages basestring N/A N/A packages N/A N/A join packages N/A repos N/A N/A repo repos N/A N/A N/A N/A options append N/A --enablerepo=%(repo)s N/A locals N/A options N/A N/A join options N/A N/A isinstance yes str N/A N/A N/A run_as_root N/A yes %(yes)s | %(manager)s %(options)s install %(packages)s N/A locals N/A N/A N/A run_as_root N/A %(manager)s %(options)s install %(packages)s N/A locals N/A groupinstall N/A N/A group options N/A None N/A N/A 
    Install a group of packages.

    You can use ``yum grouplist`` to get the list of groups.

    Extra *options* may be passed to ``yum`` if necessary like
    (e.g. ``['--nogpgcheck', '--exclude=package']``).

    ::

        import fabtools

        # Install development packages
        fabtools.rpm.groupinstall('Development tools')

     N/A manager MANAGER N/A N/A options None N/A N/A options N/A N/A N/A N/A isinstance options str N/A N/A options N/A options N/A options N/A N/A join options N/A N/A run_as_root N/A %(manager)s %(options)s groupinstall "%(group)s" N/A locals pty False N/A uninstall N/A N/A packages options N/A None N/A N/A 
    Remove one or more packages.

    Extra *options* may be passed to ``yum`` if necessary.

     N/A manager MANAGER N/A N/A options None N/A N/A options N/A N/A N/A N/A isinstance options str N/A N/A options N/A options N/A N/A N/A isinstance packages basestring N/A N/A packages N/A N/A join packages N/A options N/A N/A join options N/A N/A run_as_root N/A %(manager)s %(options)s remove %(packages)s N/A locals N/A groupuninstall N/A N/A group options N/A None N/A N/A 
    Remove an existing software group.

    Extra *options* may be passed to ``yum`` if necessary.

     N/A manager MANAGER N/A N/A options None N/A N/A options N/A N/A N/A N/A isinstance options str N/A N/A options N/A options N/A options N/A N/A join options N/A N/A run_as_root N/A %(manager)s %(options)s groupremove "%(group)s" N/A locals N/A repolist N/A N/A status media N/A None N/A N/A 
    Get the list of ``yum`` repositories.

    Returns enabled repositories by default. Extra *status* may be passed
    to list disabled repositories if necessary.

    Media and debug repositories are kept disabled, except if you pass *media*.

    ::

        import fabtools

        # Install a package that may be included in disabled repositories
        fabtools.rpm.install('vim', fabtools.rpm.repolist('disabled'))

     N/A manager MANAGER N/A N/A settings N/A hide running stdout N/A N/A media N/A N/A repos N/A run_as_root N/A %(manager)s repolist %(status)s | sed '$d' | sed -n '/repo id/,$p' N/A locals N/A N/A repos N/A run_as_root N/A %(manager)s repolist %(status)s | sed '/Media\|Debug/d' | sed '$d' | sed -n '/repo id/,$p' N/A locals N/A N/A map N/A N/A N/A line N/A N/A N/A N/A line split N/A 0 N/A N/A N/A repos splitlines N/A 1 N/A