mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update documentation
This commit is contained in:
parent
6e3743dce6
commit
ba64df4def
1 changed files with 8 additions and 0 deletions
|
@ -100,12 +100,20 @@ def info_installed(*names, **attr):
|
|||
'''
|
||||
Return the information of the named package(s), installed on the system.
|
||||
|
||||
:names names of the packages to get information about.
|
||||
:attr attributes. If no 'attr' is specified, all available attributes returned.
|
||||
Valid attributes are:
|
||||
version, vendor, release, build_date, install_date, build_host, group, source_rpm,
|
||||
size, license, signature, packager, url, summary, description.
|
||||
|
||||
CLI example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' pkg.info_installed <package1>
|
||||
salt '*' pkg.info_installed <package1> <package2> <package3> ...
|
||||
salt '*' pkg.info_installed <package1> attr=version,vendor
|
||||
salt '*' pkg.info_installed <package1> <package2> <package3> ... attr=version,vendor
|
||||
'''
|
||||
ret = dict()
|
||||
for pkg_name, pkg_nfo in __salt__['lowpkg.info'](*names, **attr).items():
|
||||
|
|
Loading…
Add table
Reference in a new issue