'\" t .\" Title: appstream-generator .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 18 April,2016 .\" Manual: appstream-generator .\" Source: AppStream Generator .\" Language: English .\" .TH "APPSTREAM\-GENERATOR" "1" "" "AppStream Generator" "appstream-generator" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" appstream-generator \- Generate AppStream metadata from distribution repositories .SH "SYNOPSIS" .HP \w'\fBappstream\-generator\fR\ 'u \fBappstream\-generator\fR [\fBCOMMAND\fR] .SH "DESCRIPTION" .PP This manual page documents briefly the \fBappstream\-generator\fR command\&. .PP \fBappstream\-generator\fR generates AppStream metadata from the repositories of a software distribution\&. It currently supports the following repository formats / distributions: Debian, Ubuntu, Arch Linux, RPM\-MD (Fedora, Mageia)\&. .PP The generator will produce AppStream collection metadata files in the AppStream YAML or XML format to be shipped to users, as well as detailed HTML reports about found components and HTML and JSON reports on issues found while compiling the metadata\&. It reads \&.desktop files as well as metainfo files, renders fonts, scales images, caches screenshots etc\&. to produce high\-quality metadata for AppStream based software centers and other tools to consume\&. Usually, \fBappstream\-generator\fR is integrated with the existing software build & delivery workflow of a distribution\&. .PP The \fBappstream\-generator\fR tool is based on the libappstream library for metadata conversion and analysis\&. If you just want to embed AppStream metadata processing into another tool, using libappstream directly is likely a better choice\&. The generator tool does some heavy lifting like rendering fonts and scaling images, which might not be necessary for simple cases\&. .PP To use \fBappstream\-generator\fR, a asgen\-config\&.json file is required\&. Its format is described in detail in \m[blue]\fBthe asgen\-config\&.json documentation\fR\m[]\&\s-2\u[1]\d\s+2\&. .PP The generator supports a wide range of features that can individually configured to fit the needs of different projects and adjust the generated metadata to specific use cases\&. Refer to the configuration file documentation for information on what options are available\&. .PP For more information about the AppStream project and the other components which are part of it, take a look at the AppStream pages at \m[blue]\fBFreedesktop\&.org\fR\m[]\&\s-2\u[2]\d\s+2\&. .SH "OPTIONS" .PP \fBrun \fR\fB\fISUITE\fR\fR\fB \fR\fB\fI[SECTION]\fR\fR .RS 4 Process new metadata for the given distribution suite and publish it\&. .RE .PP \fBcleanup\fR .RS 4 Cleanup old/expired metadata and media files from the cache and directories\&. It is recommended to run this command every week, or at least every month, depending on how many changes happen in the software repository\&. .RE .PP \fBpublish \fR\fB\fISUITE\fR\fR\fB \fR\fB\fI[SECTION]\fR\fR .RS 4 Export all metadata and publish reports in the export directories\&. .sp You usually do not want to run this task explicitly, because it is already automatically performed by the \fBrun\fR command\&. .RE .PP \fBremove\-found \fR\fB\fISUITE\fR\fR .RS 4 Drop all valid processed metadata and hints from the selected suite\&. .RE .PP \fBforget \fR\fB\fIPKID\fR\fR .RS 4 Drop all information we have about this (partial) package\-id\&. .sp A package\-id consists of a name/version/arch triplet\&. For this command, the version and architecture can be omitted to forget all packages that match a particular name or name\-version combination\&. .RE .PP \fBinfo \fR\fB\fIPKID\fR\fR .RS 4 Show information associated with this (full) package\-id\&. .sp A package\-id consists of a name/version/arch triplet\&. .RE .PP \fB\-w|\-\-workspace \fR\fB\fIDIR\fR\fR .RS 4 Define the workspace location\&. .sp If this flag is omitted, and no workspace directory is given in the generator configuration file, the current directory is assumed as the workspace location\&. .sp This parameter, if given, overrides any workspace location defined elsewhere\&. .RE .PP \fB\-c|\-\-config \fR\fB\fIFILE\fR\fR .RS 4 Define a configuration file\&. .sp Explicitly set a generator configuration JSON file\&. If this flag is omitted, the asgen\-config\&.json file in the current workspace directory is used\&. .sp If no workspace directory is defined in the configuration file itself, the directory it is located in is used as workspace\&. This can be overridden by defining a workspace explicitly with \fB\-w\fR\&. .RE .PP \fB\-\-force\fR .RS 4 Enforce the command\&. .RE .PP \fB\-\-verbose\fR .RS 4 Show extra debugging information\&. .RE .PP \fB\-\-version\fR .RS 4 Display the version number of appstream\-generator\&. .RE .SH "SEE ALSO" .PP appstreamcli (1)\&. .SH "AUTHOR" .PP This manual page was written by Matthias Klumpp \&. .SH "COPYRIGHT" .br Copyright \(co 2016-2018 Matthias Klumpp .br .SH "NOTES" .IP " 1." 4 the asgen-config.json documentation .RS 4 \%https://github.com/ximion/appstream-generator/blob/master/docs/asgen-config.md .RE .IP " 2." 4 Freedesktop.org .RS 4 \%http://www.freedesktop.org/wiki/Distributions/AppStream/ .RE