appstreamcliappstreamcli — Handle AppStream metadata formats and query AppStream data |
appstreamcli
[COMMAND
]
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.
|
Get a component from the metadata pool by its identifier. |
|
Search the AppStream component pool for a given search term. |
|
Return components which provide a given item. An item type can be specified using the
Examples: Get components which handle the "text/xml" mediatype. appstreamcli what-provides mediatype "text/xml" Get component which provides the "libfoo.so.2" library. appstreamcli what-provides lib libfoo.so.2 |
|
Trigger a database refresh, if necessary.
In case you want to force the database to be rebuilt, supply the This command must be executed with root permission. |
|
Display various information about the installed metadata and the metadata cache. |
|
Show information about the current operating system from the metadata
index.
This requires the operating system to provide a |
|
Dump the complete XML descriptions of components with the given ID that were found in the metadata pool. |
|
Validate AppStream XML metadata for compliance with the specification. Both XML metadata types, upstream and distro XML, are handled. The format type which should be validated is determined automatically.
The |
|
Validate AppStream XML metadata found in a file-tree. 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. |
|
Test a license string or license expression for validity and display details about it. This will check whether the license string is considered to be valid for AppStream, and return a non-zero exit code if it is not. The command will also display useful information like the canonical ID of a license, whether it is suitable as license for AppStream metadata, and whether the license is considered to be for Free and Open Source software or proprietary software. AppStream will consider any license as Free and Open Source that is marked as suitable by either the Free Software Foundation (FSF), Open Source Initiative (OSI) or explicit license list of the Debian Free Software Guidelines (DFSG). |
|
Install a software component by its ID using the package manager or Flatpak. This resolves the AppStream component ID to an installation candidate and then calls either the native package manager or Flatpak (if available) to install the component. |
|
Uninstall a software component by its ID using the package manager or Flatpak. This will uninstall software matching the selected ID using either the native package manager or Flatpak (if available). |
|
Install a metadata file into the right directory on the current machine. |
|
Compare two version numbers. If two version numbers are given as parameters, the versions will be compared and the comparison result will be printed to stdout. 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:
|
|
Create a metainfo file template to be used by software projects. The The generated files contain example entries which need to be filed in with the actual desired values by the project author.
The first |
|
Create a XDG desktop-entry file from a metainfo file.
If the desktop-entry file specified in
This command will use the first
In order to generate a proper desktop-entry, this command assumes that not only the minimally required tags for an
AppStream component are set, but also that it has an |
|
This command converts a NEWS file as used by many open source projects into the XML used by AppStream. Since NEWS files are free text,
a lot of heuristics will be applied to get reasonable results. The converter can also read a YAML version of the AppStream release
description and convert it to XML as well.
If the metainfo file
The |
|
This command reverses the
The |
|
Converts AppStream XML metadata into its YAML representation and vice versa. |
|
Composes an AppStream metadata catalog from a directory tree with metainfo files.
This command is only available if the |
|
Print out more information about a found component. |
|
Don't print colored output. |
|
Do not access the network when validating metadata.
The same effect can be achieved by setting the |
|
Display the version number of appstreamcli |