Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias ImportFrom alias TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return TupleLoad NameLoad Str TryExcept body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr handlers ExceptHandler type NameLoad body Return TupleLoad NameLoad Str Assign NameStore TupleLoad Str Str Str If BoolOpOr CompareIn NameLoad ListLoad Str Str CompareIn NameLoad NameLoad body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If Call SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore NameLoad orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Str Str Assign NameStore Call SubscriptLoad NameLoad Index Str ListLoad Str Str Str NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Dict Assign NameStore ListLoad Str IfExp NameLoad Str Str Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str keyword NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str body If CompareIn Str NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad If NameLoad body Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListLoad Str Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str keyword NameLoad keyword NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str body Assign NameStore Dict Str ListLoad If CompareIn Str NameLoad body Assign NameStore BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Delete SubscriptDel NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Slice Num If CompareIn SubscriptLoad NameLoad Slice Num Num NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index SubscriptLoad NameLoad Slice Num Num If BoolOpOr CompareNotIn Str NameLoad CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str BinOpAdd ListLoad Str Str Call NameLoad NameLoad keyword Str keyword NameLoad Assign NameStore Dict If CompareGt SubscriptLoad NameLoad Index Str Num body Delete SubscriptDel NameLoad Index Str Return NameLoad orelse If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameStore NameStore NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore NameLoad orelse Assign TupleStore NameStore NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Continue If BoolOpOr BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad NameLoad BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Assign NameStore NameLoad Break If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str If UnaryOpNot NameLoad body Assign NameStore ListLoad Str Str orelse Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call SubscriptLoad NameLoad Index Str NameLoad keyword Str keyword NameLoad attr Return Dict Str Str ListLoad NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore ListLoad Str IfExp NameLoad Str Str Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str keyword NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Dict Str SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad Str Str NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str ListLoad Str Str NameLoad keyword Str keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str If UnaryOpNot NameLoad body Return Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore ListLoad Str Str Str Str NameLoad Assign SubscriptStore NameLoad Index NameLoad Call SubscriptLoad NameLoad Index Str NameLoad keyword Str keyword NameLoad If CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad Call SubscriptLoad NameLoad Index Str ListLoad Str Str keyword NameLoad attr If CompareIn Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str BinOpAdd BinOpAdd Str NameLoad Str Str Str Str Str Str Str Str Str Assign NameStore BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad Assign NameStore Call NameLoad If NameLoad body For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str orelse For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpOr BoolOpAnd NameLoad CompareIn Str NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call SubscriptLoad NameLoad Index Str BinOpAdd NameLoad Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad keyword Str keyword Dict Str Str keyword NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Num body Assign NameStore Str If CompareIn Str NameLoad body AugAssignAdd NameStore BoolOpOr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse If CompareIn Str SubscriptLoad NameLoad Index Str body Raise Call NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Continue Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotEq Call NameLoad NameLoad Num body Continue Assign TupleStore NameStore NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Continue If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareIn NameLoad ListLoad Str Str body TryExcept body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Continue If CompareIn NameLoad ListLoad Str Str body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Continue If BoolOpAnd CompareNotIn NameLoad ListLoad Str Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpOr BoolOpAnd NameLoad CompareIn Str NameLoad UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad Call NameLoad NameLoad keyword Lambda arguments args NameParam NameParam defaults Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Delete SubscriptDel SubscriptLoad NameLoad Index NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore BoolOpOr BoolOpAnd CompareIs NameLoad NameLoad Num Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotIn NameLoad TupleLoad Num Num Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list
N/A N/A 
Support for rpm
 __future__ absolute_import N/A logging N/A os N/A re N/A datetime N/A salt.utils N/A salt.utils.itertools N/A salt.utils.decorators decorators N/A salt.utils.pkg.rpm salt.ext.six.moves zip N/A N/A N/A rpm N/A HAS_RPM True N/A N/A N/A ImportError N/A N/A HAS_RPM False N/A N/A N/A rpmUtils.miscutils N/A HAS_RPMUTILS True N/A N/A N/A ImportError N/A N/A HAS_RPMUTILS False salt.exceptions CommandExecutionError SaltInvocationError N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ lowpkg __virtual__ N/A N/A N/A N/A N/A 
    Confine this module to rpm based systems
     N/A N/A N/A N/A N/A salt utils which rpm N/A N/A N/A False The rpm execution module failed to load: rpm binary is not in the path. N/A N/A N/A os_grain N/A N/A N/A __grains__ N/A os lower N/A os_family N/A N/A N/A __grains__ N/A os_family lower N/A N/A N/A Exception N/A N/A N/A False The rpm execution module failed to load: failed to detect os or os_family grains. N/A enabled N/A amazon xcp xenserver N/A N/A N/A os_family N/A redhat suse N/A os_grain enabled N/A N/A __virtualname__ N/A N/A False The rpm execution module failed to load: only available on redhat/suse type systems or amazon, xcp or xenserver. N/A bin_pkg_info N/A N/A path saltenv N/A base N/A N/A 
    .. versionadded:: 2015.8.0

    Parses RPM metadata and returns a dictionary of information about the
    package (name, version, etc.).

    path
        Path to the file. Can either be an absolute path to a file on the
        minion, or a salt fileserver URL (e.g. ``salt://path/to/file.rpm``).
        If a salt fileserver URL is passed, the file will be cached to the
        minion so that it can be examined.

    saltenv : base
        Salt fileserver envrionment from which to retrieve the package. Ignored
        if ``path`` is a local file path on the minion.

    CLI Example:

    .. code-block:: bash

        salt '*' lowpkg.bin_pkg_info /root/salt-2015.5.1-2.el7.noarch.rpm
        salt '*' lowpkg.bin_pkg_info salt://salt-2015.5.1-2.el7.noarch.rpm
     N/A N/A N/A __salt__ N/A config.valid_fileproto path N/A N/A newpath N/A N/A __salt__ N/A cp.cache_file path saltenv N/A N/A newpath N/A N/A N/A CommandExecutionError N/A N/A Unable to retrieve {0} from saltenv '{1}' format path saltenv N/A path newpath N/A N/A N/A N/A N/A N/A os path exists path N/A N/A N/A CommandExecutionError N/A N/A {0} does not exist on minion format path N/A N/A N/A N/A N/A N/A os path isabs path N/A N/A N/A SaltInvocationError N/A N/A {0} does not exist on minion format path N/A queryformat N/A N/A N/A N/A N/A N/A salt utils pkg rpm QUERYFORMAT replace %{REPOID} none N/A output N/A N/A __salt__ N/A cmd.run_stdout N/A rpm -qp --queryformat queryformat path output_loglevel trace ignore_retcode True python_shell False N/A ret N/A N/A pkginfo N/A N/A N/A N/A N/A salt utils pkg rpm parse_pkginfo output osarch N/A __grains__ N/A osarch N/A field N/A pkginfo _fields N/A N/A N/A ret N/A field N/A getattr pkginfo field N/A ret N/A list_pkgs N/A N/A N/A packages N/A N/A 
    List the packages currently installed in a dict::

        {'<package_name>': '<version>'}

    CLI Example:

    .. code-block:: bash

        salt '*' lowpkg.list_pkgs
     N/A pkgs N/A N/A cmd N/A rpm N/A packages -q -qa --queryformat %{NAME} %{VERSION}\n N/A packages N/A N/A N/A N/A cmd extend packages N/A out N/A N/A __salt__ N/A cmd.run cmd output_loglevel trace python_shell False N/A line N/A N/A N/A N/A salt utils itertools split out N/A N/A N/A is not installed line N/A N/A N/A comps N/A N/A line split N/A N/A pkgs N/A N/A comps N/A 0 N/A comps N/A 1 N/A pkgs N/A verify N/A N/A N/A packages kwargs N/A N/A 
    Runs an rpm -Va on a system, and returns the results in a dict

    Files with an attribute of config, doc, ghost, license or readme in the
    package header can be ignored using the ``ignore_types`` keyword argument

    CLI Example:

    .. code-block:: bash

        salt '*' lowpkg.verify
        salt '*' lowpkg.verify httpd
        salt '*' lowpkg.verify httpd postfix
        salt '*' lowpkg.verify httpd postfix ignore_types=['config','doc']
     N/A ftypes N/A c d g l r config doc ghost license readme N/A ret N/A N/A ignore_types N/A N/A kwargs get ignore_types N/A N/A packages N/A N/A cmd N/A rpm -V N/A N/A N/A cmd extend packages N/A N/A cmd N/A rpm -Va N/A out N/A N/A __salt__ N/A cmd.run cmd output_loglevel trace ignore_retcode True python_shell False N/A line N/A N/A N/A N/A salt utils itertools split out N/A N/A fdict N/A mismatch N/A N/A N/A missing line N/A N/A line N/A line N/A N/A fdict N/A missing True N/A N/A fdict N/A mismatch N/A fname N/A line N/A 13 N/A N/A N/A line N/A 11 12 ftypes N/A N/A N/A fdict N/A type N/A ftypes N/A N/A line N/A 11 12 N/A N/A N/A type fdict N/A N/A fdict N/A type ignore_types N/A N/A N/A N/A line N/A 0 1 S N/A N/A N/A N/A N/A fdict N/A mismatch append size N/A N/A N/A line N/A 1 2 M N/A N/A N/A N/A N/A fdict N/A mismatch append mode N/A N/A N/A line N/A 2 3 5 N/A N/A N/A N/A N/A fdict N/A mismatch append md5sum N/A N/A N/A line N/A 3 4 D N/A N/A N/A N/A N/A fdict N/A mismatch append device major/minor number N/A N/A N/A line N/A 4 5 L N/A N/A N/A N/A N/A fdict N/A mismatch append readlink path N/A N/A N/A line N/A 5 6 U N/A N/A N/A N/A N/A fdict N/A mismatch append user N/A N/A N/A line N/A 6 7 G N/A N/A N/A N/A N/A fdict N/A mismatch append group N/A N/A N/A line N/A 7 8 T N/A N/A N/A N/A N/A fdict N/A mismatch append mtime N/A N/A N/A line N/A 8 9 P N/A N/A N/A N/A N/A fdict N/A mismatch append capabilities N/A N/A ret N/A fname fdict N/A ret N/A modified N/A N/A N/A packages flags N/A N/A 
    List the modified files that belong to a package. Not specifying any packages
    will return a list of _all_ modified files on the system's RPM database.

    .. versionadded:: 2015.5.0

    CLI examples:

    .. code-block:: bash

        salt '*' lowpkg.modified httpd
        salt '*' lowpkg.modified httpd postfix
        salt '*' lowpkg.modified
     N/A ret N/A N/A __salt__ N/A cmd.run_all N/A N/A rpm -Va N/A list packages output_loglevel trace python_shell False N/A data N/A N/A N/A N/A ret N/A retcode 1 N/A N/A N/A ret N/A stdout N/A ret N/A N/A N/A N/A ret N/A retcode N/A N/A data N/A ptrn N/A N/A re compile \s+ N/A changes cfg f_name None N/A f_info N/A N/A N/A N/A salt utils itertools split N/A ret N/A stdout N/A N/A f_info N/A N/A ptrn split f_info N/A N/A N/A len f_info 3 N/A N/A N/A changes cfg f_name f_info N/A N/A N/A changes f_name f_info N/A cfg None N/A keys N/A size mode checksum device symlink owner group time capabilities N/A changes N/A list changes N/A N/A N/A len changes 8 N/A N/A N/A N/A changes append . N/A stats N/A N/A N/A k v N/A zip keys changes N/A N/A N/A v . N/A N/A N/A N/A stats append k N/A N/A cfg None N/A N/A N/A N/A stats append config N/A N/A data N/A f_name stats N/A N/A flags N/A N/A data N/A filtered_data N/A N/A N/A f_name stats N/A N/A data items N/A N/A include True N/A N/A param pval N/A N/A flags items N/A N/A N/A N/A param startswith _ N/A N/A N/A N/A N/A N/A pval N/A param stats N/A pval N/A param stats N/A N/A include False N/A N/A include N/A N/A N/A filtered_data N/A f_name stats N/A filtered_data N/A file_list N/A N/A N/A packages N/A N/A 
    List the files that belong to a package. Not specifying any packages will
    return a list of _every_ file on the system's rpm database (not generally
    recommended).

    CLI Examples:

    .. code-block:: bash

        salt '*' lowpkg.file_list httpd
        salt '*' lowpkg.file_list httpd postfix
        salt '*' lowpkg.file_list
     N/A N/A packages N/A N/A cmd N/A rpm -qla N/A N/A cmd N/A rpm -ql N/A N/A N/A cmd extend packages N/A ret N/A N/A N/A N/A __salt__ N/A cmd.run cmd output_loglevel trace python_shell False splitlines N/A N/A errors files N/A ret N/A file_dict N/A N/A N/A packages N/A N/A 
    List the files that belong to a package, sorted by group. Not specifying
    any packages will return a list of _every_ file on the system's rpm
    database (not generally recommended).

    CLI Examples:

    .. code-block:: bash

        salt '*' lowpkg.file_dict httpd
        salt '*' lowpkg.file_dict httpd postfix
        salt '*' lowpkg.file_dict
     N/A errors N/A N/A ret N/A N/A pkgs N/A N/A cmd N/A rpm N/A packages -q -qa --queryformat %{NAME} %{VERSION}\n N/A packages N/A N/A N/A N/A cmd extend packages N/A out N/A N/A __salt__ N/A cmd.run cmd output_loglevel trace python_shell False N/A line N/A N/A N/A N/A salt utils itertools split out N/A N/A N/A is not installed line N/A N/A N/A N/A errors append line N/A N/A comps N/A N/A line split N/A N/A pkgs N/A N/A comps N/A 0 N/A version N/A comps N/A 1 N/A pkg pkgs N/A N/A files N/A N/A cmd N/A rpm -ql pkg N/A out N/A N/A __salt__ N/A cmd.run N/A rpm -ql pkg output_loglevel trace python_shell False N/A N/A ret N/A pkg N/A N/A out splitlines N/A N/A errors packages errors ret N/A owner N/A N/A N/A paths N/A N/A 
    Return the name of the package that owns the file. Multiple file paths can
    be passed. If a single path is passed, a string will be returned,
    and if multiple paths are passed, a dictionary of file/package name pairs
    will be returned.

    If the file is not owned by a package, or is not present on the minion,
    then an empty string will be returned for that path.

    CLI Examples:

    .. code-block:: bash

        salt '*' lowpkg.owner /usr/bin/apachectl
        salt '*' lowpkg.owner /usr/bin/apachectl /etc/httpd/conf/httpd.conf
     N/A N/A paths N/A N/A N/A ret N/A N/A path paths N/A N/A cmd N/A rpm -qf --queryformat %{name} path N/A N/A ret N/A path N/A N/A __salt__ N/A cmd.run_stdout cmd output_loglevel trace python_shell False N/A N/A not owned N/A N/A N/A ret N/A path lower N/A N/A N/A ret N/A path N/A N/A N/A len ret 1 N/A N/A N/A N/A list N/A N/A ret values N/A 0 N/A ret N/A diff N/A N/A package path N/A N/A N/A 
    Return a formatted diff between current file and original in a package.
    NOTE: this function includes all files (configuration and not), but does
    not work on binary content.

    :param package: The name of the package
    :param path: Full path to the installed file
    :return: Difference or empty string. For binary files only a notification.

    CLI example:

    .. code-block:: bash

        salt '*' lowpkg.diff apache2 /etc/apache2/httpd.conf
     N/A cmd rpm2cpio {0} | cpio -i --quiet --to-stdout .{1} | diff -u --label 'A {1}' --from-file=- --label 'B {1}' {1} N/A res N/A N/A __salt__ N/A cmd.shell N/A N/A cmd format package path output_loglevel trace N/A N/A res N/A N/A res startswith Binary file N/A N/A N/A N/A File '{0}' is binary and its content has been modified. format path N/A res N/A N/A N/A decorators which rpm2cpio N/A N/A decorators which cpio N/A N/A decorators which diff info N/A N/A N/A packages attr N/A N/A 
    Return a detailed package(s) summary information.
    If no packages specified, all packages will be returned.

    :param packages:

    :param attr:
        Comma-separated package attributes. If no 'attr' is specified, all available attributes returned.

        Valid attributes are:
            version, vendor, release, build_date, build_date_time_t, install_date, install_date_time_t,
            build_host, group, source_rpm, arch, epoch, size, license, signature, packager, url, summary, description.

    :return:

    CLI example:

    .. code-block:: bash

        salt '*' lowpkg.info apache2 bash
        salt '*' lowpkg.info apache2 bash attr=version
        salt '*' lowpkg.info apache2 bash attr=version,build_date_iso,size
     N/A rpm_tags N/A N/A N/A N/A __salt__ N/A cmd.run_stdout N/A rpm --querytags python_shell False splitlines N/A N/A LONGSIZE rpm_tags N/A N/A size_tag %{LONGSIZE} N/A N/A size_tag %{SIZE} N/A cmd N/A N/A packages N/A N/A rpm -q {0} format N/A N/A join packages rpm -qa N/A attr_map N/A name relocations version vendor release epoch build_date_time_t build_date install_date_time_t install_date build_host group source_rpm size arch license signature packager url summary description edition name: %{NAME}\n relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n version: %{VERSION}\n vendor: %{VENDOR}\n release: %{RELEASE}\n %|EPOCH?{epoch: %{EPOCH}\n}| build_date_time_t: %{BUILDTIME}\n build_date: %{BUILDTIME}\n install_date_time_t: %|INSTALLTIME?{%{INSTALLTIME}}:{(not installed)}|\n install_date: %|INSTALLTIME?{%{INSTALLTIME}}:{(not installed)}|\n build_host: %{BUILDHOST}\n group: %{GROUP}\n source_rpm: %{SOURCERPM}\n N/A N/A size:  size_tag \n arch: %{ARCH}\n %|LICENSE?{license: %{LICENSE}\n}| signature: %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n %|PACKAGER?{packager: %{PACKAGER}\n}| %|URL?{url: %{URL}\n}| summary: %{SUMMARY}\n description:\n%{DESCRIPTION}\n edition: %|EPOCH?{%{EPOCH}:}|%{VERSION}-%{RELEASE}\n N/A attr N/A N/A N/A N/A attr get attr None N/A N/A N/A attr N/A attr split , None N/A query N/A list N/A attr N/A N/A attr_k attr N/A N/A N/A N/A attr_k attr_map N/A attr_k description N/A N/A N/A N/A query append N/A attr_map N/A attr_k N/A N/A query N/A N/A N/A CommandExecutionError No valid attributes found. N/A N/A name attr N/A N/A N/A N/A attr append name N/A N/A N/A query append N/A attr_map N/A name N/A N/A edition attr N/A N/A N/A N/A attr append edition N/A N/A N/A query append N/A attr_map N/A edition N/A N/A N/A attr_k attr_v N/A N/A attr_map iteritems N/A N/A N/A attr_k description N/A N/A N/A N/A query append attr_v N/A N/A N/A attr N/A description attr N/A attr N/A N/A N/A N/A query append N/A attr_map N/A description N/A N/A N/A query append -----\n N/A call N/A N/A __salt__ N/A cmd.run_all N/A cmd N/A N/A  --queryformat '{0}' format N/A N/A join query output_loglevel trace env N/A TZ UTC clean_env True N/A N/A N/A call N/A retcode 0 N/A N/A comment N/A N/A stderr call N/A N/A comment N/A N/A call N/A stderr N/A call N/A stdout N/A N/A CommandExecutionError N/A N/A {0} format comment N/A N/A N/A error N/A call N/A stderr N/A N/A N/A CommandExecutionError N/A call N/A stderr N/A N/A out N/A call N/A stdout N/A _ret N/A list N/A pkg_info N/A N/A re split ----* out N/A N/A pkg_info N/A N/A pkg_info strip N/A N/A pkg_info N/A N/A N/A pkg_info N/A N/A pkg_info split N/A os linesep N/A N/A N/A N/A N/A N/A pkg_info N/A -1 lower startswith distribution N/A N/A pkg_info N/A pkg_info N/A -1 N/A pkg_data N/A dict N/A pkg_name None N/A descr_marker False N/A descr N/A list N/A line pkg_info N/A N/A descr_marker N/A N/A N/A N/A descr append line N/A N/A line N/A N/A N/A item strip N/A item N/A N/A line split : 1 N/A N/A N/A len line 2 N/A N/A N/A N/A key value line N/A N/A key description N/A N/A descr_marker True N/A N/A N/A key name N/A N/A pkg_name value N/A N/A key N/A build_date install_date N/A N/A N/A N/A N/A pkg_data N/A key N/A N/A N/A N/A N/A N/A datetime datetime fromtimestamp N/A int value isoformat Z N/A N/A N/A ValueError N/A N/A N/A N/A log warning N/A N/A Could not convert "{0}" into Unix time format value N/A N/A N/A key N/A build_date_time_t install_date_time_t N/A N/A N/A N/A N/A pkg_data N/A key N/A int value N/A N/A N/A ValueError N/A N/A N/A N/A log warning N/A N/A Could not convert "{0}" into Unix time format value N/A N/A N/A N/A key N/A description name value N/A N/A N/A pkg_data N/A key value N/A N/A N/A attr N/A description attr N/A attr N/A N/A N/A pkg_data N/A description N/A N/A N/A os linesep join descr N/A pkg_name N/A N/A N/A pkg_data N/A name pkg_name N/A N/A N/A _ret append pkg_data N/A ret N/A dict N/A pkg_data N/A reversed N/A sorted _ret cmp N/A N/A N/A a_vrs b_vrs N/A N/A version_cmp N/A a_vrs N/A edition N/A b_vrs N/A edition N/A N/A pkg_name N/A N/A pkg_data pop name N/A N/A pkg_name ret N/A N/A N/A ret N/A pkg_name N/A N/A pkg_data copy N/A N/A N/A ret N/A pkg_name N/A edition N/A ret N/A version_cmp N/A N/A ver1 ver2 N/A N/A N/A 
    .. versionadded:: 2015.8.9

    Do a cmp-style comparison on two packages. Return -1 if ver1 < ver2, 0 if
    ver1 == ver2, and 1 if ver1 > ver2. Return None if there was a problem
    making the comparison.

    CLI Example:

    .. code-block:: bash

        salt '*' pkg.version_cmp '0.2-001' '0.2.0.1-002'
     N/A N/A N/A HAS_RPM N/A N/A cmp_func N/A rpm labelCompare N/A N/A HAS_RPMUTILS N/A N/A cmp_func N/A N/A rpmUtils miscutils compareEVR N/A N/A cmp_func None N/A cmp_result N/A N/A N/A cmp_func None 2 N/A cmp_func N/A N/A N/A salt utils str_version_to_evr ver1 N/A N/A N/A salt utils str_version_to_evr ver2 N/A N/A cmp_result N/A -1 0 1 N/A N/A N/A Exception N/A N/A Comparison result '{0}' is invalid format cmp_result N/A cmp_result N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log warning N/A N/A Failed to compare version '{0}' to '{1}' using RPM: {2} format ver1 ver2 exc N/A N/A N/A N/A salt utils version_cmp ver1 ver2 N/A