| APPSTREAMCLI(1) | appstreamcli | APPSTREAMCLI(1) |
NAME¶
appstreamcli - Handle AppStream metadata and the AppStream indexSYNOPSIS¶
appstreamcli [COMMAND]
DESCRIPTION¶
This manual page documents briefly the appstreamcli command.appstreamcli is a small helper tool to work with AppStream metadata and access the AppStream component index from the command-line. The AppStream component index contains a list of all available software components for your distribution, matched to their package names. It is generated using AppStream XML or Debian DEP-11 data, which is provided by your distributor.
For more information about the AppStream project and the other components which are part of it, take a look at the AppStream pages at Freedesktop.org[1].
OPTIONS¶
statusget ID
s, search TERM
what-provides TYPE TERM
Examples:
Get components which handle the "text/xml" mimetype.
appstreamcli what-provides mimetype "text/xml"
Get component which provides the "libfoo.so.2" library.
appstreamcli what-provides lib libfoo.so.2
refresh, refresh-cache
This command must be executed with root permission.
dump ID
validate FILES
Both XML metadata types, upstream and distro XML, are handled. The filetype which should be validated is determined automatically.
The --pedantic flag triggers a more pedantic validation of the file, including minor and style issues in the report.
validate-tree DIRECTORY
This performs a standard validation of all found metadata, but also checks for additional errors, like the presence of .desktop files and validity of other additional metadata.
install ID
This resolves the AppStream component ID to the package name which provides it and then calls the distribution's package manager to install the software.
This feature is experimental.
put FILE
compare-versions VER1 [CMP] VER2
If a version number, a comparison operator and another version number are passed in as parameter, the result of the comparison operation will be printed to stdout, and appstreamcli will exit with a non-zero exit status in case the comparison failed. The comparison operator can be one of the following:
new-template TYPE FILE
The generated files contain example entries which need to be filed in with the actual desired values by the project author.
The first TYPE parameter is the name of an AppStream component type. For a complete list check out the documentation[2] or the help output of appstreamcli for this subcommand.
--details
--no-color
--no-net
The same effect can be achieved by setting the AS_VALIDATE_NONET environment variable before running appstreamcli.
--version
SEE ALSO¶
pkcon (1).AUTHOR¶
This manual page was written by Matthias Klumpp <matthias@tenstral.net>.COPYRIGHT¶
Copyright © 2012-2018 Matthias KlumppNOTES¶
- 1.
- Freedesktop.org
- 2.
- the documentation
| AppStream |