1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Catalog Metadata | AppStream | AppStream 1.0</title><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /><link rel="stylesheet" type="text/css" href="static/css/style.css" /><link rel="stylesheet" type="text/css" href="static/css/highlight.css" /><meta name="generator" content="DAPS 3.3.2" /><meta name="product-name" content="AppStream" /><meta name="product-number" content="1.0" /><meta name="book-title" content="AppStream" /><meta name="chapter-title" content="Chapter 3. Catalog Metadata" /><meta name="description" content="Additionally to the metainfo files shipped by upstream projects, AppStream also provides an XML and YAML format to make information about not installed software components known to the system. This chapter documents this catalog metadata format and icon cache used on the client side. 3.1 AppStream C…" /><link rel="home" href="index.html" title="AppStream" /><link rel="up" href="index.html" title="AppStream" /><link rel="prev" href="sect-Metadata-Runtime.html" title="2.17. Runtime" /><link rel="next" href="sect-AppStream-YAML.html" title="3.2. AppStream Catalog YAML" />
<script src="static/js/highlight.min.js" type="text/javascript"></script><script>
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('.verbatim-wrap.highlight').forEach((block) => {
hljs.highlightBlock(block);
});
});
hljs.configure({
useBR: false
});
</script></head><body class="offline js-off"><div class="bypass-block"><a href="#_content">Jump to content</a><a href="#_bottom-navigation">Jump to page navigation: previous page [access key p]/next page [access key n]</a></div><div id="_outer-wrap"><div id="_white-bg"><div id="_header"><div id="_logo"><a href="https://www.freedesktop.org/software/appstream/docs/"><img src="static/images/logo.png" alt="Logo" /><span>AppStream</span></a></div><div class="crumbs"><a class="book-link" href="index.html" title="AppStream"><span class="book-icon">AppStream</span></a><span> › </span><a class="crumb" href="chap-CatalogData.html">Catalog Metadata</a></div><div class="clearme"></div></div></div><div id="_toolbar-wrap"><div id="_toolbar"><div id="_toc-area" class="inactive"><a id="_toc-area-button" class="tool" title="Contents" accesskey="c" href="index.html"><span class="tool-spacer"><span class="toc-icon">Contents</span><span class="clearme"></span></span><span class="tool-label">Contents</span></a><div class="active-contents bubble-corner"></div><div class="active-contents bubble"><div class="bubble-container"><h6>AppStream</h6><div id="_bubble-toc"><ol><li class="inactive"><a href="chap-AppStream-About.html"><span class="number">1 </span><span class="name">About AppStream</span></a></li><li class="inactive"><a href="chap-Metadata.html"><span class="number">2 </span><span class="name">Upstream Metadata</span></a></li><li class="inactive"><a href="chap-CatalogData.html"><span class="number">3 </span><span class="name">Catalog Metadata</span></a></li><li class="inactive"><a href="chap-AppStream-Misc.html"><span class="number">4 </span><span class="name">Miscellaneous</span></a></li><li class="inactive"><a href="chap-Quickstart.html"><span class="number">5 </span><span class="name">Metadata Quickstart</span></a></li><li class="inactive"><a href="chap-Validation.html"><span class="number">6 </span><span class="name">Data Validation</span></a></li><li class="inactive"><a href="chap-AppStream-ManualPages.html"><span class="number">7 </span><span class="name">Manual pages</span></a><ol>
<a href="re01.html#id-1.8.3.1">appstreamcli</a>
2012-2024Matthias Klumpp
AppStream
26 July,2012
appstreamcli1appstreamcliHandle AppStream metadata formats and query AppStream dataappstreamcliCOMMAND<a href="re01.html#id-1.8.3.5">Description</a>
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.
<a href="re01.html#id-1.8.3.6">Options</a>get IDGet a component from the metadata pool by its identifier.ssearch TERMSearch the AppStream component pool for a given search term.what-provides TYPE TERM
Return components which provide a given item. An item type can be specified using the
TYPE parameter, a value to search for has to be
supplied using the TERM parameter.
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
refreshrefresh-cache
Trigger a database refresh, if necessary.
In case you want to force the database to be rebuilt, supply the --force flag.
This command must be executed with root permission.status
Display various information about the installed metadata and
the metadata cache.
os-info
Show information about the current operating system from the metadata
index.
This requires the operating system to provide a operating-system
component for itself.
dump ID
Dump the complete XML descriptions of components with the given ID that were found in the
metadata pool.
validate FILES
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 --pedantic flag triggers a more pedantic
validation of the file, including minor and style issues in the report.
validate-tree DIRECTORY
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.
check-license LICENSE
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 ID
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.
remove ID
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).
put FILE
Install a metadata file into the right directory on the current machine.
compare-versionsvercmp VER1 [CMP] VER2
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:
eq - Equal tone - Not equal tolt - Less thangt - Greater thanle - Less than or equal toge - Greater than or equal tonew-template TYPE FILE
Create a metainfo file template to be used by software projects. The --from-desktop option can be used
to use a .desktop file as template for generating the example 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 or the help output
of appstreamcli for this subcommand.
make-desktop-file MI_FILE DESKTOP_FILE
Create a XDG desktop-entry file from a metainfo file.
If the desktop-entry file specified in DESKTOP_FILE already exists, it will get extended with
the new information extracted from the metainfo file. Otherwise a new file will be created.
This command will use the first binary mentioned in a provides tag of the component
for the Exec= field of the new desktop-entry file.
If this is not the desired behavior, the --exec flag can be used
to explicitly define a binary to launch. Other methods of launching the application are currently not supported.
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 <icon/> tag of type "stock" to describe
the stock icon that should be used as well as a <categories/> tag containing the categories the application should
be placed in.
news-to-metainfo NEWS_FILE MI_FILE [OUT_FILE]
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 MI_FILE already exists, it will be augmented with the new release entries, otherwise the release entries
will be written without any wrapping component.
If [OUT_FILE] is specified, instead of acting on MI_FILE the changed data will
be written to the particular file. If any of the output filenames is set to "-", the output will instead be written to stdout.
The --format option can be used to enforce reading the input file in a specific format ("text" or "yaml") in case the format autodetection fails.
The --limit option is used to limit the amount of release entries written (the newest entries will always be first).
metainfo-to-news MI_FILE NEWS_FILE
This command reverses the news-to-metainfo command and writes a NEWS file as text or YAML using the XML
contained in a metainfo file. If NEWS_FILE is set to "-", the resulting data
will be written to stdout instead of to a file.
The --format option can be used to explicitly specify the output format ("yaml" or "text"). If it is not set,
appstreamcli will guess which format is most suitable.
convert FILE1 FILE1
Converts AppStream XML metadata into its YAML representation and vice versa.
compose
Composes an AppStream metadata catalog from a directory tree with metainfo files.
This command is only available if the org.freedesktop.appstream.compose
component is installed.
See appstreamcli-compose1
for more information.
--detailsPrint out more information about a found component.--no-colorDon't print colored output.--no-netDo not access the network when validating metadata.
The same effect can be achieved by setting the AS_VALIDATE_NONET environment variable
before running appstreamcli.
--versionDisplay the version number of appstreamcli<a href="re01.html#id-1.8.3.7">See Also</a>pkcon1.<a href="re01.html#id-1.8.3.8">AUTHOR</a>
This manual page was written by Matthias Klumpp matthias@tenstral.net.
<a href="re02.html#id-1.8.4.1">appstreamcli compose</a>
2020-2024Matthias Klumpp
AppStream
28 Aug,2020
appstreamcli compose1appstreamcli-composeCompose AppStream metadata catalog from directory treesappstreamcli composeCOMMAND<a href="re02.html#id-1.8.4.5">Description</a>
This manual page documents briefly the appstreamcli compose command.
The appstreamcli compose tool is used to construct AppStream metadata catalogs from directory trees.
The tool will also perform many related metadata generation actions, like resizing icons and
screenshots and merging in data from referenced desktop-entry files as well as translation status
information.
Therefore, the tool provides a fast way to test how the final processed metadata for an application
that is shipped to users may look like.
It also provides a way to easily generate AppStream data for projects which do not need a more complex data
generator like appstream-generator.
In order for the appstreamcli compose command to be available, you may need to install the
optional compose module for appstreamcli first.
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.
<a href="re02.html#id-1.8.4.6">Options</a>SOURCE-DIRECTORIES
A list of directories to process needs to be provided as positional parameters.
Data from all directories will be combined into one output namespace.
--origin NAME
Set the AppStream data origin identifier. This can be a value like
"debian-unstable-main" or "flathub".
--result-root DIR
Sets the directory where all generated output that is deployed to a user's
machine is exported to. If this parameter is not set and we only have one
directory to process, we use that directory as default output path.
If both --data-dir and --icons-dir are
set, --result-root is not necessary and no data will be
written to that directory.
--data-dir DIR
Override the directory where the generated AppStream metadata catalog
will be written to. Data will be written directly to this directory, and
no supdirectories will be created (unlike when using --result-root
to set an output location).
--icons-dir DIR
Override the directory where the cached icons are exported to.
--hints-dir DIR
Set a directory where hints reported generated during metadata processing
are saved to. If this parameter is not set, no HTML/YAML hint reports
will be saved.
--media-dir DIR
If set, creates a directory with media content (icons, screenshots, ...) that
can be served via a webserver. The metadata will be extended to include information
about these remote media.
--media-baseurl URL
The URL under which the contents of a directory set via --media-dir
will be served. This value must be set if a media directory is created.
--prefix DIR
Set the default prefix that is used in the processed directories. If
none is set explicitly, /usr is assumed.
--print-report MODE
Print the issue hints report (that gets exported as HTML and YAML
document when --hints-dir was set) to the console
in text form.
Various print modes are supported: on-error only prints a
short report if the run failed (default), short generates
an abridged report that is always printed and full results
in a detailed report to be printed.
--no-partial-urls
If set, all URLs in the generated data will be absolute and media_baseurl will not be used.
This makes changing the media mirror harder without regenerating all data and is generally not recommended,
to increase flexibility.
--icon-policy POLICY-STRING
Override the existing icon policy with a custom one. The icon policy sets how icons of
different sizes should be dealt with. They can be in the icon cache only, be a remote icon in
the media location or be both cached and available in the remote location.
The icon-policy string is comprised of comma-separated %{size}x%{size}@%{scale}=%{state} statements.
The size and scale are that of the respective icon, with the scale being allowed to be
omitted if it is 1. The state can be one of remote, cached or
cached-remote.
By default, a policy of 48x48=cached,48x48@2=cached,64x64=cached,64x64@2=cached,128x128=cached-remote,128x128@2=cached-remote
is selected.
--allow-custom CUSTOM-KEY-NAMES
By default, all custom entries set in MetaInfo input data are removed.
This flag allows one to whitelist custom keys to be propagated to the final catalog output data.
The custom-key names should be provided as a comma-separated list.
--components COMPONENT-IDs
Set a comma-separated list of AppStream component IDs that should be
considered for the generated metadata. All components that exist in
the input data but are not mentioned in this list will be ignored
for the generated output.
--no-colorDon't print colored output.--verboseDisplay extra debugging information--versionDisplay the version number of appstreamcli compose<a href="re02.html#id-1.8.4.7">See Also</a>
appstreamcli1,
appstream-generator1.
<a href="re02.html#id-1.8.4.8">AUTHOR</a>
This manual page was written by Matthias Klumpp matthias@tenstral.net.
</ol></li><li class="inactive"><a href="chap-AppStream-API.html"><span class="number">8 </span><span class="name">AppStream API Reference</span></a></li><li class="inactive"><a href="ix01.html"><span class="number"> </span><span class="name">Index</span></a></li></ol></div><div class="clearme"></div></div></div></div><div id="_nav-area" class="inactive"><div class="tool"><span class="nav-inner"><span class="tool-label">Navigation</span><a accesskey="p" class="tool-spacer" title="2.17. Runtime" href="sect-Metadata-Runtime.html"><span class="prev-icon">←</span></a><a accesskey="n" class="tool-spacer" title="3.2. AppStream Catalog YAML" href="sect-AppStream-YAML.html"><span class="next-icon">→</span></a></span></div></div></div></div><div id="_fixed-header-wrap" class="inactive"><div id="_fixed-header"><div class="crumbs"><a class="book-link" href="index.html" title="AppStream"><span class="book-icon">AppStream</span></a><span> › </span><a class="crumb" href="chap-CatalogData.html">Catalog Metadata</a></div><div class="buttons"><a class="top-button button" href="#">Top</a><div class="button"><a accesskey="p" class="tool-spacer" title="2.17. Runtime" href="sect-Metadata-Runtime.html"><span class="prev-icon">←</span></a><a accesskey="n" class="tool-spacer" title="3.2. AppStream Catalog YAML" href="sect-AppStream-YAML.html"><span class="next-icon">→</span></a></div><div class="clearme"></div></div><div class="clearme"></div></div></div><div id="_content" class=""><div class="documentation"><div class="chapter" id="chap-CatalogData"><div class="titlepage"><div><div class="version-info">Applies to <span class="productname">AppStream</span> <span class="productnumber">1.0</span></div><div><h1 class="title"><span class="number">3 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">Catalog Metadata</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html">#</a></h1></div></div></div><div class="line"><div class="toc"><dl><dt><span class="section"><a href="chap-CatalogData.html#sect-AppStream-XML"><span class="number">3.1 </span><span class="name">AppStream Catalog XML</span></a></span></dt><dt><span class="section"><a href="sect-AppStream-YAML.html"><span class="number">3.2 </span><span class="name">AppStream Catalog YAML</span></a></span></dt><dt><span class="section"><a href="sect-AppStream-IconCache.html"><span class="number">3.3 </span><span class="name">Icon Cache</span></a></span></dt></dl></div></div><p>
Additionally to the metainfo files shipped by upstream projects, AppStream also provides an XML and YAML format
to make information about not installed software components known to the system.
</p><p>
This chapter documents this catalog metadata format and icon cache used on the client side.
</p><div class="sect1" id="sect-AppStream-XML"><div class="titlepage"><div><div><h2 class="title" id="sect-AppStream-XML"><span class="number">3.1 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">AppStream Catalog XML</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#sect-AppStream-XML">#</a></h2></div></div></div><div class="sect2" id="spec-asxml-introduction"><div class="titlepage"><div><div><h3 class="title" id="spec-asxml-introduction"><span class="number">3.1.1 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">Introduction</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#spec-asxml-introduction">#</a></h3></div></div></div><p>
AppStream catalog XML files are text files describing all available software components a software repository (usually
from a Linux distributor) offers for installation.
The XML files might be compressed with GZip.
</p></div><div class="sect2" id="spec-asxml-filenaming"><div class="titlepage"><div><div><h3 class="title" id="spec-asxml-filenaming"><span class="number">3.1.2 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">File naming and location</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#spec-asxml-filenaming">#</a></h3></div></div></div><p>
The XML files must have a unique name, which is usually the distribution's name and version, combined with the name of the repository/origin.
For example in Debian 8 (Jessie), the filename for the main repository component would be <code class="filename">debian-jessie-main.xml.gz</code>.
For Fedora 20 (Heisenbug) updates it would be <code class="filename">fedora-20-updates.xml.gz</code>.
3rd-party repositories use a vendor name and repository-name combination, for example Ubuntu PPAs might get <code class="filename">ppa-ubuntu12.04-username-foobar.xml</code>.
</p><p>
There are two valid locations to store AppStream XML data. <code class="filename">/usr/share/swcatalog/xml</code> stores all AppStream data which
has been installed via software packages, while <code class="filename">/var/lib/swcatalog/xml</code> stores application data which was downloaded
by the package manager or placed there by other tools (for example, Limba).
The <code class="filename">/var/cache/swcatalog/xml</code> location however can be used for any data that was locally generated from other sources.
The XML files can either be plain files or be compressed with gzip. It is always a good idea to compress the files, because they tend to become
quite large.
</p><div id="id-1.4.4.3.4" class="admonition important normal"><img class="symbol" alt="Important" title="Important" src="static/images/icon-important.png" /><h6>Important: Legacy Path</h6><p>
Prior to version 1.0, AppStream tools scanned the paths <code class="filename">/usr/share/app-info/(xml|xmls)</code> and <code class="filename">/var/lib/app-info/(xml|xmls)</code> path for legacy
compatibility as well. Legacy path support was dropped in version 1.0. The old locations should not be used anymore. The modern locations are supported by both the AppStream 1.x as well as AppStream 0.16.x series.
</p></div></div><div class="sect2" id="spec-asxml-general"><div class="titlepage"><div><div><h3 class="title" id="spec-asxml-general"><span class="number">3.1.3 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">General XML structure</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#spec-asxml-general">#</a></h3></div></div></div><p>
The XML starts with a <code class="code"><components></code> tag as the root element. It has all the
<code class="code"><component></code> tags of different <code class="literal">type</code>s as children.
</p><p>
Data to fill the different component elements is usually taken from their <a class="ulink" href="https://specifications.freedesktop.org/desktop-entry-spec/latest/" target="_blank">Desktop files<span class="ulink-url"> (https://specifications.freedesktop.org/desktop-entry-spec/latest/)</span></a>
and package data. However, if an upstream project ships metainfo files (see <a class="xref" href="chap-Metadata.html" title="Chapter 2. Upstream Metadata">Chapter 2, <em>Upstream Metadata</em></a>),
values defined there should override data from any other source.
</p><p>
All child elements of the <code class="code"><components></code> element, no matter of which type they are, must at least have
an <code class="literal">id</code>, <code class="literal">name</code>, <code class="literal">summary</code> and <code class="literal">pkgname</code> tag.
For applications, a <code class="literal">icon</code> tag is also required.
</p><p>
The <code class="code"><components></code> root node has these properties, where the first two are required:
</p><div class="variablelist"><dl class="variablelist"><dt id="id-1.4.4.4.6.1"><span class="term">version</span></dt><dd><p>
This property declares the AppStream spec version this file is based on (currently 0.14). The property is required.
</p></dd><dt id="id-1.4.4.4.6.2"><span class="term">origin</span></dt><dd><p>
Defines the repository ID this AppStream XML file belongs to. This usually matches the filename without extension (see the explanation on how to pick a good filename above).
It is also used to associate the right cached icons with AppStream metadata. This property is required.
</p></dd><dt id="id-1.4.4.4.6.3"><span class="term">media_baseurl</span></dt><dd><p>
The base URL for media (screenshots, icons, ...) referenced in the metadata file.
If this is set, all urls in the document referencing media will be treated relative to the base url.
</p></dd><dt id="id-1.4.4.4.6.4"><span class="term">architecture</span></dt><dd><p>
Defines the architecture this data belongs to. This information is useful to resolve AppStream-ID conflicts on multiarch systems,
which appear if the user has metadata for two architectures installed. This property is optional.
</p></dd></dl></div></div><div class="sect2" id="spec-asxml-tags"><div class="titlepage"><div><div><h3 class="title" id="spec-asxml-tags"><span class="number">3.1.4 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">Valid tags for all component types</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#spec-asxml-tags">#</a></h3></div></div></div><p>
These tags can be applied to every component type (application, component, font, inputmethod) which
is described in the AppStream metadata.
</p><p>
Additionally to the <code class="literal">type</code> property, every <code class="literal"><component/></code> tag in AppStream catalog data
may have a <code class="literal">priority</code> property, defining the priority of this specific metadata over other metadata from different
AppStream XML files (for example, from a different repository) which have the same component-id. The value of this tag is an integer, if the
property is missing, a value of <code class="code">"0"</code> is assumed.
</p><p>
In order to <span class="emphasis"><em>merge</em></span> metadata, each component in catalog data may also have a <code class="literal">merge</code> property, assuming the
values <code class="code">append</code>, <code class="code">replace</code> or <code class="code">remove-component</code>. If the value is <code class="code">append</code>, all data this component describes will be appended
to data of the component with the same ID. If the value is <code class="code">replace</code> the fields of the target component will be replaced with the
ones present in the merge component. If the merge type is <code class="code">remove-component</code>, the entore component matching the ID of the merge-component should
be removed from the metadata pool.
Merge-components with a higher priority take precedence. If a component has a <code class="literal">merge</code> property, the only tag that must
be present for it is the <code class="code"><id/></code> tag, any other metadata is optional.
</p><div class="variablelist"><dl class="variablelist"><dt id="tag-ct-component-id"><span class="term"><id/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-component-id">#</a></dt><dd><p>
The <code class="code"><id/></code> tag is a short unique and usually lower-cases identifier for the component.
Depending on the component's type, different naming conventions apply.
</p></dd><dt id="tag-ct-pkgname"><span class="term"><pkgname/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-pkgname">#</a></dt><dd><p>
The name of the package which needs to be installed in order to make this component available on the system.
</p><p>
This tag can be defined multiple times, if a component is split across multiple packages.
</p><div id="id-1.4.4.5.5.2.2.3" class="admonition important normal"><img class="symbol" alt="Important" title="Important" src="static/images/icon-important.png" /><h6>Important</h6><p>
The preferred way is to create metapackages containing the component metadata, and referencing them
from the catalog metadata, and not to use multiple <code class="literal">pkgname</code> tags.
They should only be used multiple times as a workaround or if there is no sensible way of creating a
matching metapackage.
</p></div></dd><dt id="tag-ct-source_pkgname"><span class="term"><source_pkgname/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-source_pkgname">#</a></dt><dd><p>
This optional tag is used to specify the source package the binary package this component belongs to was built from.
</p><p>
The tag can be used by software center applications to group components. It is otherwise useful for the distributor
to assign components to a source package and to fetch additional information about a package from the web.
</p></dd><dt id="tag-ct-name"><span class="term"><name/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-name">#</a></dt><dd><p>
A human-readable name for this software.
</p><p>
In case of a component of type <code class="literal">desktop-application</code>, the application name as defined in the application's
<a class="ulink" href="https://specifications.freedesktop.org/desktop-entry-spec/latest/" target="_blank">desktop file<span class="ulink-url"> (https://specifications.freedesktop.org/desktop-entry-spec/latest/)</span></a> is used.
</p></dd><dt id="tag-ct-project_license"><span class="term"><project_license/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-project_license">#</a></dt><dd><p>
The <code class="code"><project_license/></code> tag is indicating the license of the component.
It should be a <a class="ulink" href="https://spdx.org/specifications" target="_blank">SPDX license expression<span class="ulink-url"> (https://spdx.org/specifications)</span></a>.
A full list of recognized licenses and their identifiers can be found at the
<a class="ulink" href="https://spdx.org/licenses/" target="_blank">SPDX OpenSource License Registry<span class="ulink-url"> (https://spdx.org/licenses/)</span></a>.
</p><p>
You can find more information about this tag at the metainfo description for <a class="xref" href="chap-Metadata.html#tag-project_license"><project_license/></a>.
</p></dd><dt id="tag-ct-summary"><span class="term"><summary/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-summary">#</a></dt><dd><p>
The tag contains a short summary of the purpose and function of this component. In case the component is of
type <code class="literal">desktop</code>, it is usually taken from a Desktop file,
if the application does not ship an upstream metadata file.
</p><p>
For more information about this tag, take a look at the tag's definition at <a class="xref" href="chap-Metadata.html#tag-summary"><summary/></a>.
</p></dd><dt id="tag-ct-description"><span class="term"><description/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-description">#</a></dt><dd><p>
A long description of the component. It is usually taken from the package descriptions or metainfo files, if they were provided.
The description might use markup. Right now, only paragraph, ordered list and unordered list are supported.
An example description element might look like this:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><description>
<p>
Power Statistics is a program used to view historical and current battery
information and will show programs running on your computer using power.
</p>
<p>Example list:</p>
<ul>
<li>First item</li>
<li>Second item</li>
</ul>
<p>
You probably only need to install this application if you are having problems
with your laptop battery, or are trying to work out what programs are using
significant amounts of power.
</p>
</description></pre></div><p>
</p><p>
As opposed to the by-paragraph translation used in metainfo files, this tag is translated "as a whole", meaning that the
<code class="literal"><description/></code> tag itself has a language property and contains the translated paragraphs for the given language.
This allows faster parsing of the Appstream XML file, and does not increase it's size much, as long as it is compressed.
</p><p>
For more information about this tag, take a look at the tag's definition at <a class="xref" href="chap-Metadata.html#tag-description"><description/></a>.
</p></dd><dt id="tag-ct-url"><span class="term"><url/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-url">#</a></dt><dd><p>
Defines URLs for this component. This tag can be present multiple times.
</p><p>
For a list of possible url types and what they are expected to do,
take a look at the tag's description at <a class="xref" href="chap-Metadata.html#tag-url"><url/></a>.
</p></dd><dt id="tag-ct-project_group"><span class="term"><project_group/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-project_group">#</a></dt><dd><p>
The <code class="code"><project_group></code> tag identifies a project with a specific upstream umbrella project.
Known values include <code class="literal">GNOME, KDE, XFCE, LXDE, Mozilla</code> and <code class="literal">MATE</code>, although other umbrella projects
like <code class="literal">Yorba</code> would make sense too.
</p><div id="id-1.4.4.5.5.9.2.2" class="admonition note normal"><img class="symbol" alt="Note" title="Note" src="static/images/icon-note.png" /><h6>Note</h6><p>
Components should only identify with an umbrella project if you use all their infrastructure and policies, for instance
string freezes dates, bugtracker and source control instance.
</p></div></dd><dt id="tag-ct-icon"><span class="term"><icon/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-icon">#</a></dt><dd><p>
The <code class="code"><icon/></code> tag describes the component icon. It is mostly used for GUI applications (component-type <code class="literal">desktop-application</code>).
It can be of the type <code class="literal">stock</code>, <code class="literal">cached</code>, <code class="literal">local</code>,
or <code class="literal">url</code>.
</p><p>
<code class="literal">stock</code> icons are loaded from stock. The icon name should never include any file-extension or path.
</p><p>
<code class="literal">cached</code> icons are loaded from the AppStream icon cache. The icon tag should contain the icon file name, including its
extension. It must not contain a full or relative path to the icon file.
This icon type may have <code class="literal">width</code> and <code class="literal">height</code> properties.
If targeting a hi-DPI screen, this icon type may have a <code class="literal">scale</code> property.
</p><p>
<code class="literal">local</code> icons are reserved for AppStream data installed by local applications or via 3rd-party application installers.
They should specify a full file path.
This icon type may have <code class="literal">width</code> and <code class="literal">height</code> properties.
If targeting a hi-DPI screen, this icon type may have a <code class="literal">scale</code> property.
</p><p>
<code class="literal">remote</code> icons loaded from a remote URL. Currently, only HTTP urls are supported.
This icon type should have <code class="literal">width</code> and <code class="literal">height</code> properties.
If targeting a hi-DPI screen, this icon type may have a <code class="literal">scale</code> property.
</p><p>
If specified, the <code class="literal">scale</code> property is defined as in the
<a class="ulink" href="https://specifications.freedesktop.org/icon-theme-spec/latest/#definitions" target="_blank">Freedesktop Icon Theme Specification<span class="ulink-url"> (https://specifications.freedesktop.org/icon-theme-spec/latest/#definitions)</span></a>.
It’s an integer value ≥1 indicating how many pixels in the image represent a logical pixel on the display, in each dimension.
This allows icons for hi-DPI screens to be displayed at the same logical size as on lower resolution screens, but without upscaling artifacts.
</p><p>
Examples of the different methods to specify an icon:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><icon type="stock">gimp</icon>
<icon type="cached">firefox.png</icon>
<icon type="cached" width="128" height="128" scale="2">firefox.png</icon>
<icon type="remote" width="64" height="64">https://example.com/icons/foobar.png</icon>
<icon type="local" width="64" height="64">/usr/share/pixmaps/foobar.png</icon></pre></div><p>
Multiple <code class="code"><icon/></code> tags might be combined for one application, for example to define a <code class="literal">stock</code> icon
and a <code class="literal">cached</code> icon.
Software-Centers should always prefer the stock icon, if it is available, and fall back to the other icon types if they can not find it.
The <span class="emphasis"><em>libappstream</em></span> library makes it easy to do that.
</p><p>
The AppStream library will prefer <code class="literal">cached</code> over <code class="literal">local</code> over <code class="literal">remote</code>
icons when setting the non-stock icon for the application.
</p></dd><dt id="tag-ct-categories"><span class="term"><categories/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-categories">#</a></dt><dd><p>
This tag can contain one or more <code class="code"><category></code> tags, describing the categories this component
is located in. This tag is usually applied to components of type <code class="literal">desktop-application</code>, although it might be used by others later.
This data is usually taken from Desktop files, a list of categories can be found in the
<a class="ulink" href="https://specifications.freedesktop.org/menu-spec/latest/category-registry.html" target="_blank">Freedesktop menu spec<span class="ulink-url"> (https://specifications.freedesktop.org/menu-spec/latest/category-registry.html)</span></a>.
Example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><categories>
<category>Science</category>
<category>Network</category>
<category>Telephony</category>
</categories></pre></div><div id="id-1.4.4.5.5.11.2.3" class="admonition note normal"><img class="symbol" alt="Note" title="Note" src="static/images/icon-note.png" /><h6>Note: Deprecated Tags</h6><p>
The tag <code class="code"><appcategories></code> with its <code class="code"><appcategory></code> child elements is deprecated API.
AppStream parsers should handle these tags just like the <code class="literal">category</code> tags, there is no difference except for the name.
</p></div></dd><dt id="tag-ct-keywords"><span class="term"><keywords/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-keywords">#</a></dt><dd><p>
This tag can contain one or more <code class="code"><keyword></code> tags, describing keywords for the component,
to make it easier to find in a software center.
</p><p>
This tag behaves like the <a class="xref" href="chap-Metadata.html#tag-keywords"><keywords/></a> tag used in metainfo files, but is translated "as a whole",
unlike its metainfo counterpart that has individual keywords translated. This means that the <code class="literal"><keywords/></code> tag
itself has a language property and contains only the translated keywords for the given language.
</p><p>
In case of type <code class="literal">desktop-application</code> components, this data is taken from .desktop files. For <code class="literal">addon</code>
components, the upstream metadata file usually provides this tag.
</p><p>
Example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><keywords>
<keyword>IDE</keyword>
<keyword>development</keyword>
<keyword>programming</keyword>
</keywords>
<keywords xml:lang="de">
<keyword>IDE</keyword>
<keyword>entwicklung</keyword>
<keyword>programmierung</keyword>
</keywords></pre></div></dd><dt id="tag-ct-screenshots"><span class="term"><screenshots/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-screenshots">#</a></dt><dd><p>
This tag can contain one or more <code class="code"><screenshot></code> tags, describing screenshots which are available for
the software. A screenshot tag my have the attribute <code class="code">type="default"</code>, marking it as the software's default screenshot,
which primarily represents it in a software center.
</p><p>
The <code class="literal">screenshots</code> tag is described for metainfo files in <a class="xref" href="chap-Metadata.html#tag-screenshots"><screenshots/></a>. In catalog metadata, the tag
has the exact same format as in metainfo files.
The metadata generator may add an arbitrary number of resized thumbnails for <code class="literal">image</code> type screenshots though.
</p><p>
Every static-image <code class="code"><screenshot></code> is defined by several images of different sizes.
All images should have their width and hight set as arguments. Also, one of the images should be marked as <code class="code">type="source"</code>,
indicating that it is the unscaled version of the screenshot.
Images of <code class="code">type="thumbnail"</code> define thumbnails of the screenshot.
</p><p>
The metadata generator should scale the source image down to several thumbnails useful for the client to load.
The recommended widths for thumbnail images are:
</p><div class="itemizedlist"><ul class="itemizedlist"><li class="listitem"><p><span class="emphasis"><em>752</em></span> (large)</p></li><li class="listitem"><p><span class="emphasis"><em>624</em></span> (normal)</p></li><li class="listitem"><p><span class="emphasis"><em>112</em></span> (small)</p></li><li class="listitem"><p><span class="emphasis"><em>1504</em></span> (large, HiDPI)</p></li><li class="listitem"><p><span class="emphasis"><em>1248</em></span> (normal, HiDPI)</p></li><li class="listitem"><p><span class="emphasis"><em>224</em></span> (small, HiDPI)</p></li></ul></div><p>
In order to support HiDPI screens, the thumbnails should also be available in their bigger sizes. A metadata generator should, however, never attempt
to scale up a smaller image to a larger size, and just ship the smaller sizes instead.
When scaling images to the respective thumbnail width, the image aspect ratio must be preserved, padding, cropping or stretching should not happen.
</p><p>
Optionally, a screenshot can contain a <code class="code"><caption></code> tag, describing the screenshot's caption. This is usually what the user can see
on the image shown. The tag is translatable.
</p><p>
For <code class="code"><screenshot></code> tags that contain <code class="literal">video</code> elements, a catalog metadata generator may impose any restrictions to them,
including completely removing them from the output, imposing filesize limits, etc.
Upstream metainfo files should not rely on the videos being present and must always have a static screenhot for the software component as well.
</p><p>
Every image or video should have a full remote url set, usually pointing to a cache of images maintained by the repository vendor.
Example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><screenshots>
<screenshot type="default">
<caption>FooBar showing kitchen-sink functionality.</caption>
<caption xml:lang="de">FooBar beim Ausführen der Spühlbecken-Funktion.</caption>
<image type="source" width="800" height="600">https://www.example.org/en_US/main.png</image>
<image type="thumbnail" width="752" height="423">https://www.example.org/en_US/main-large.png</image>
<image type="thumbnail" width="112" height="63">https://www.example.org/en_US/main-small.png</image>
</screenshot>
<screenshot>
<video container="matroska" codec="av1" width="800" height="600">https://www.example.org/en_US/screencast.mkv</video>
</screenshot>
<screenshot>
....
</screenshot>
</screenshots></pre></div></dd><dt id="tag-ct-compulsory_for_desktop"><span class="term"><compulsory_for_desktop/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-compulsory_for_desktop">#</a></dt><dd><p>
The <code class="code"><compulsory_for_desktop></code> tag indicates that the component which the metadata belongs to is essential for the
functionality of the defined desktop environment.
</p><p>
This tag is described in detail at <a class="xref" href="chap-Metadata.html#tag-compulsory_for_desktop"><compulsory_for_desktop/></a>.
</p></dd><dt id="tag-ct-provides"><span class="term"><provides/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-provides">#</a></dt><dd><p>
This tag is described in detail at <a class="xref" href="chap-Metadata.html#sect-Metadata-GenericComponent" title="2.1. Generic Component">Section 2.1, “Generic Component”</a>.
</p><p>
Distributors and software repository vendors must ensure that all things described in this tag are present in the package referenced in
the associated <code class="literal">pkgname</code> tag (or in dependencies of it).
</p></dd><dt id="tag-ct-developer"><span class="term"><developer/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-developer">#</a></dt><dd><p>
The <code class="code"><developer/></code> tag as described in the specification for a generic component. See <a class="xref" href="chap-Metadata.html#tag-developer"><developer/></a> for more information.
</p></dd><dt id="tag-ct-launchable"><span class="term"><launchable/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-launchable">#</a></dt><dd><p>
This tag follows the same schema as described for metainfo files in <a class="xref" href="chap-Metadata.html#tag-launchable"><launchable/></a>.
</p></dd><dt id="tag-ct-releases"><span class="term"><releases/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-releases">#</a></dt><dd><p>
The <code class="literal">releases</code> tag and its <code class="literal">release</code> children are structured as described in <a class="xref" href="sect-Metadata-Releases.html" title="2.2. Release Information">Section 2.2, “Release Information”</a>.
</p><p>
Each <code class="literal">release</code> tag may have a <code class="literal">description</code> tag as child, containing a brief description of what is new in the release.
The <code class="literal">description</code> tag is structured as described in <a class="xref" href="chap-CatalogData.html#tag-ct-description"><description/></a>. This also applies to its translation rules.
</p><p>
The AppStream catalog XML generator may shorten overlong lists of releases to a smaller list, for example of 4 <code class="literal">release</code> tags.
It may also convert ISO 8601 <code class="literal">date</code> properties of the metainfo file into an UNIX timestamp <code class="literal">timestamp</code> property.
It should avoid generating metadata containing both properties on a <code class="literal">release</code> tag.
</p><p>
If a <a class="xref" href="chap-Metadata.html#tag-releases"><releases/></a> tag in a metainfo file references an <code class="literal">external</code> release description, the release description should
be read either from the release file provided locally, or, if possible and provided, be downloaded from the URL referenced in the component's <code class="literal">releases</code>
tag.
</p><p>
Example for a valid releases tag:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><releases>
<release version="1.8" timestamp="1424116753">
<description>
<p>This stable release fixes the following bug:</p>
<ul>
<li>CPU no longer overheats when you hold down spacebar</li>
</ul>
</description>
<size type="download">12345678</size>
<size type="installed">42424242</size>
</release>
<release version="1.2" timestamp="1397253600" />
<release version="1.0" timestamp="1345932000" />
</releases></pre></div><p>
In case a <code class="code"><release/></code> tag has a <code class="code"><description/></code> tag as parameter, describing the new release briefly, distributors are encouraged to provide 2-4
<code class="code"><release/></code> release tags for every component. If no description is provided, one tag is enough.
</p></dd><dt id="tag-ct-languages"><span class="term"><languages/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-languages">#</a></dt><dd><p>
This tag gives information about the translations a component provides, and to which extent the software is translated.
</p><p>
The tag is allowed to only occur once per component, and contains multiple <code class="code"><lang/></code> child nodes, which have
a <a class="ulink" href="https://www.gnu.org/software/gettext/manual/html_node/Language-Codes.html" target="_blank">language code<span class="ulink-url"> (https://www.gnu.org/software/gettext/manual/html_node/Language-Codes.html)</span></a> as value.
Each <code class="code"><lang/></code> node may have a <code class="literal">percentage</code> property, which describes the percentage value to which
a component has been translated.
</p><p>
The language data is expected to be extracted by the AppStream XML generator, and is not provided upstream. Generators may obtain the
information from processing GNU Gettext files, which should cover most translation methods.
</p><p>
Tag example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><languages>
<lang percentage="96">gu</lang>
<lang percentage="94">ca@valencia</lang>
<lang percentage="91">de</lang>
<lang percentage="93">eo</lang>
</languages></pre></div></dd><dt id="tag-ct-bundle"><span class="term"><bundle/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-bundle">#</a></dt><dd><p>
The optional <code class="literal">bundle</code> tag indicates that the described software is available as a software bundle via a
3rd-party application installer. The value of this tag is an identification string for the bundle.
</p><p>
Software centers may use the information of this tag to offer the user to install the software
from 3rd-party sources, or just update an already installed software automatically via the normal update procedure.
The <code class="literal">bundle</code> tag can coexist with the <code class="literal">pkgname</code> tag, in case a component is available from
multiple sources.
</p><p>
The <code class="literal">type</code> property of this tag indicates which 3rd-party software installation solution the bundle belongs to.
Currently supported solutions are:
</p><div class="itemizedlist"><ul class="itemizedlist"><li class="listitem"><p><code class="code">package</code> - For distribution package names.</p></li><li class="listitem"><p><code class="code">limba</code> - For <a class="ulink" href="https://people.freedesktop.org/~mak/limba/" target="_blank">Limba Project<span class="ulink-url"> (https://people.freedesktop.org/~mak/limba/)</span></a> bundles.</p></li><li class="listitem"><p><code class="code">flatpak</code> - For <a class="ulink" href="https://flatpak.org/" target="_blank">Flatpak<span class="ulink-url"> (https://flatpak.org/)</span></a> bundles.</p></li><li class="listitem"><p><code class="code">appimage</code> - For <a class="ulink" href="https://appimage.org/" target="_blank">AppImageKit<span class="ulink-url"> (https://appimage.org/)</span></a> bundles.</p></li><li class="listitem"><p><code class="code">snap</code> - For <a class="ulink" href="https://snapcraft.io/" target="_blank">Snappy<span class="ulink-url"> (https://snapcraft.io/)</span></a> snap bundles.</p></li><li class="listitem"><p><code class="code">tarball</code> - For plain and possibly compressed tarballs.</p></li><li class="listitem"><p><code class="code">cabinet</code> - For cabinet firmware deployments.</p></li><li class="listitem"><p><code class="code">linglong</code> - For <a class="ulink" href="https://linglong.dev/" target="_blank">Linglong<span class="ulink-url"> (https://linglong.dev/)</span></a> bundles.</p></li><li class="listitem"><p><code class="code">sysupdate</code> - For <a class="ulink" href="https://www.freedesktop.org/software/systemd/man/latest/systemd-sysupdate.html" target="_blank">systemd-sysupdate<span class="ulink-url"> (https://www.freedesktop.org/software/systemd/man/latest/systemd-sysupdate.html)</span></a> bundles.</p></li></ul></div><p>
</p><p>
Example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><bundle type="limba">foobar-1.0.2</bundle></pre></div></dd><dt id="tag-ct-suggests"><span class="term"><suggests/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-suggests">#</a></dt><dd><p>
The optional <code class="literal">suggests</code> tag provides suggestions of other software made by this component.
It follows the same schema as described for metainfo files in <a class="xref" href="chap-Metadata.html#tag-suggests"><suggests/></a>.
</p><p>
Additionally to the <code class="literal">upstream</code> type allowed for metainfo files, the catalog data also allows a
<code class="literal">heuristic</code> type, which is added by automatic recommendation services, and might be based on the user's
preferences. It is commonly injected into existing metadata via a <code class="literal">merge</code> pseudo-component.
</p><p>
Example:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting"><suggests type="upstream">
<id>org.kde.gwenview.desktop</id>
<id>org.inkscape.Inkscape</id>
</suggests>
<suggests type="heuristic">
<id>org.gimp.gimp.desktop</id>
</suggests></pre></div></dd><dt id="tag-ct-content_rating"><span class="term"><content_rating/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-content_rating">#</a></dt><dd><p>
This optional tag follows the same schema as described for metainfo files in <a class="xref" href="chap-Metadata.html#tag-content_rating"><content_rating/></a>.
</p></dd><dt id="tag-ct-agreement"><span class="term"><agreement/></span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#tag-ct-agreement">#</a></dt><dd><p>
This optional tag follows the same schema as described for metainfo files in <a class="xref" href="chap-Metadata.html#tag-agreement"><agreement/></a>, with the exception
of <code class="literal">description</code> tags in its <code class="literal">agreement_section</code> child tags now following the same translation
rules as the toplevel <a class="xref" href="chap-CatalogData.html#tag-ct-description"><description/></a> tag in catalog metadata.
</p></dd></dl></div></div><div class="sect2" id="spec-asxml-example"><div class="titlepage"><div><div><h3 class="title" id="spec-asxml-example"><span class="number">3.1.5 </span><span xmlns:dm="urn:x-suse:ns:docmanager" class="name">Example file</span> <a title="Permalink" class="permalink" href="chap-CatalogData.html#spec-asxml-example">#</a></h3></div></div></div><p>
This is an example AppStream metadata file:
</p><div class="verbatim-wrap highlight XML"><pre class="programlisting">
<?xml version="1.0"?>
<components version="0.10">
<component type="desktop-application">
<id>org.mozilla.Firefox</id>
<pkgname>firefox-bin</pkgname>
<name>Firefox</name>
<name lang="en_GB">Firefoux</name>
<summary>Web browser</summary>
<summary lang="fr_FR">Navigateur web</summary>
<project_license>MPL-2.0</project_license>
<keywords>
<keyword>internet</keyword>
<keyword>web</keyword>
<keyword>browser</keyword>
<keyword lang="fr_FR">navigateur</keyword>
</keywords>
<icon type="stock">web-browser</icon>
<icon type="cached">firefox.png</icon>
<categories>
<category>network</category>
<category>web</category>
</categories>
<url type="homepage">https://www.mozilla.com</url>
<screenshots>
<screenshot type="default">
<image type="source" width="800" height="600">https://www.awesomedistro.example.org/en_US/firefox.desktop/main.png</image>
<image type="thumbnail" width="200" height="150">https://www.awesomedistro.example.org/en_US/firefox.desktop/main-small.png</image>
</screenshot>
</screenshots>
<provides>
<binary>firefox</binary>
<mediatype>text/html</mediatype>
<mediatype>text/xml</mediatype>
<mediatype>application/xhtml+xml</mediatype>
<mediatype>application/vnd.mozilla.xul+xml</mediatype>
<mediatype>text/mml</mediatype>
<mediatype>application/x-xpinstall</mediatype>
<mediatype>x-scheme-handler/http</mediatype>
<mediatype>x-scheme-handler/https</mediatype>
</provides>
</component>
<component>
<id>org.freedesktop.PulseAudio</id>
<name>PulseAudio</name>
<summary>The PulseAudio sound server</summary>
<url type="homepage">https://www.freedesktop.org/wiki/Software/PulseAudio/</url>
<project_license>GPL-2.0+</project_license>
<provides>
<library>libpulse-simple.so.0</library>
<library>libpulse.so.0</library>
<binary>start-pulseaudio-kde</binary>
<binary>start-pulseaudio-x11</binary>
</provides>
<release version="2.0"/>
</component>
<component type="font">
<id>org.linuxlibertine.LinuxLibertine</id>
<name>Linux Libertine</name>
<summary>Linux Libertine Open fonts</summary>
<provides>
<font>LinLibertine_M.otf</font>
</provides>
</component>
<!-- more components here! -->
</components></pre></div></div></div></div></div><div class="page-bottom"><div id="_bottom-navigation"><a class="nav-link" href="sect-AppStream-YAML.html"><span class="next-icon">→</span><span class="nav-label">AppStream Catalog YAML</span></a><a class="nav-link" href="sect-Metadata-Runtime.html"><span class="prev-icon">←</span><span class="nav-label">Runtime</span></a></div></div></div><div id="_inward"></div></div><div id="_footer-wrap"><div id="_footer"><p>©
2025
Freedesktop.org, the AppStream Project</p></div></div></body></html>
|