1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY appstream-download-http "https://www.freedesktop.org/software/appstream/releases/AppStream-&appstream-version;.tar.xz">
|
---|
8 | <!ENTITY appstream-download-ftp " ">
|
---|
9 | <!ENTITY appstream-md5sum "00e749276887f816b6d68a7a150e6c97">
|
---|
10 | <!ENTITY appstream-size "2.5 MB">
|
---|
11 | <!ENTITY appstream-buildsize "27 MB">
|
---|
12 | <!ENTITY appstream-time "0.2 SBU (Using parallelism=4)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="appstream" xreflabel="AppStream-&appstream-version;">
|
---|
16 | <?dbhtml filename="appstream.html"?>
|
---|
17 |
|
---|
18 | <title>AppStream-&appstream-version;</title>
|
---|
19 |
|
---|
20 | <indexterm zone="appstream">
|
---|
21 | <primary sortas="a-appstream">AppStream</primary>
|
---|
22 | </indexterm>
|
---|
23 |
|
---|
24 | <sect2 role="package">
|
---|
25 | <title>Introduction to AppStream</title>
|
---|
26 |
|
---|
27 | <para>
|
---|
28 | The <application>AppStream</application> package contains a library and
|
---|
29 | tool that is useful for retrieving software metadata and making it
|
---|
30 | easily accessible to programs which need it.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | <!-- Remember to update the org.linuxfromscratch.lfs.xml file in
|
---|
34 | configuration section when tagging this. -->
|
---|
35 | &lfs121_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&appstream-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&appstream-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &appstream-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &appstream-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &appstream-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &appstream-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">AppStream Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
74 | <para role="required">
|
---|
75 | <xref linkend="curl"/>,
|
---|
76 | <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
---|
77 | <xref linkend="itstool"/>,
|
---|
78 | <xref linkend="libxml2"/>,
|
---|
79 | <xref linkend="libxmlb"/>, and
|
---|
80 | <xref linkend="libyaml"/>
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para role="optional">
|
---|
85 | <xref linkend="gi-docgen"/>,
|
---|
86 | &qt5-deps;,
|
---|
87 | <xref linkend="qt6"/>,
|
---|
88 | <ulink url="https://github.com/openSUSE/daps">DAPS</ulink>, and
|
---|
89 | <ulink url="https://github.com/zvelo/libstemmer">libstemmer</ulink>
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <!-- Only use this if you want to note something in the wiki
|
---|
93 | <para condition="html" role="usernotes">
|
---|
94 | Editor Notes: <ulink url="&blfs-wiki;/TEMPLATE"/>
|
---|
95 | </para>
|
---|
96 | -->
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 role="installation">
|
---|
100 | <title>Installation of AppStream</title>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | Install <application>AppStream</application> by running the following
|
---|
104 | commands:
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <screen><userinput>mkdir build &&
|
---|
108 | cd build &&
|
---|
109 |
|
---|
110 | meson setup --prefix=/usr \
|
---|
111 | --buildtype=release \
|
---|
112 | -Dapidocs=false \
|
---|
113 | -Dstemming=false .. &&
|
---|
114 | ninja</userinput></screen>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | To test the results, issue: <command>ninja test</command>.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>ninja install &&
|
---|
125 | mv -v /usr/share/doc/appstream{,-&appstream-version;}</userinput></screen>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="commands">
|
---|
130 | <title>Command Explanations</title>
|
---|
131 |
|
---|
132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
133 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | <parameter>-Dapidocs=false</parameter>: This switch disables building the
|
---|
137 | API documentation. Remove it if you have
|
---|
138 | <xref linkend="gi-docgen" role="nodep"/> installed and wish to
|
---|
139 | regenerate the API documentation. When the API documentation is
|
---|
140 | not regenerated, a pre-built copy is installed anyway.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | <parameter>-Dstemming=false</parameter>: This switch disables stemming
|
---|
145 | support. Remove this switch if you have
|
---|
146 | <ulink url="https://github.com/zvelo/libstemmer">libstemmer</ulink>
|
---|
147 | installed and want faster searches.
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | <para>
|
---|
151 | <option>-Dqt5=true</option>: Use this option if you have &qt5-deps;
|
---|
152 | installed and you want to build support for Qt-5 applications into this
|
---|
153 | package.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | <option>-Dqt=true</option>: Use this option if you have
|
---|
158 | <xref linkend="qt6" role="nodep"/> installed and you want to build support
|
---|
159 | for Qt6 applications into this package. This option conflicts with
|
---|
160 | <option>-Dqt5=true</option>.
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | </sect2>
|
---|
164 |
|
---|
165 | <sect2 role="configuration">
|
---|
166 | <title>Configuring AppStream</title>
|
---|
167 |
|
---|
168 | <sect3 id="appstream-config">
|
---|
169 | <title>Config Files</title>
|
---|
170 |
|
---|
171 | <para>
|
---|
172 | <filename>/usr/share/metainfo/org.linuxfromscratch.lfs.xml</filename>
|
---|
173 | </para>
|
---|
174 | </sect3>
|
---|
175 |
|
---|
176 | <sect3>
|
---|
177 | <title>Configuration Information</title>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | <application>AppStream</application> expects an operating system
|
---|
181 | metainfo file describing the GNU/Linux distribution. As the
|
---|
182 | &root; user, create the file describing LFS:
|
---|
183 | </para>
|
---|
184 |
|
---|
185 | <indexterm zone="appstream appstream-config">
|
---|
186 | <primary sortas="e-usr-share-metainfo-org-linuxfromscratch-lfs-xml">
|
---|
187 | /usr/share/metainfo/org.linuxfromscratch.lfs.xml
|
---|
188 | </primary>
|
---|
189 | </indexterm>
|
---|
190 |
|
---|
191 | <screen role="root"><userinput>install -vdm755 /usr/share/metainfo &&
|
---|
192 | cat > /usr/share/metainfo/org.linuxfromscratch.lfs.xml << EOF
|
---|
193 | <literal><?xml version="1.0" encoding="UTF-8"?>
|
---|
194 | <component type="operating-system">
|
---|
195 | <id>org.linuxfromscratch.lfs</id>
|
---|
196 | <name>Linux From Scratch</name>
|
---|
197 | <summary>A customized Linux system built entirely from source</summary>
|
---|
198 | <description>
|
---|
199 | <p>
|
---|
200 | Linux From Scratch (LFS) is a project that provides you with
|
---|
201 | step-by-step instructions for building your own customized Linux
|
---|
202 | system entirely from source.
|
---|
203 | </p>
|
---|
204 | </description>
|
---|
205 | <url type="homepage">https://www.linuxfromscratch.org/lfs/</url>
|
---|
206 | <metadata_license>MIT</metadata_license>
|
---|
207 | <developer id='linuxfromscratch.org'>
|
---|
208 | <name>The Linux From Scratch Editors</name>
|
---|
209 | </developer>
|
---|
210 |
|
---|
211 | <releases>
|
---|
212 | <release version="12.2" type="development" date="2024-09-01">
|
---|
213 | <description>
|
---|
214 | <p>The next release of Linux From Scratch.</p>
|
---|
215 | </description>
|
---|
216 | </release>
|
---|
217 |
|
---|
218 | <release version="12.1" type="stable" date="2024-03-01">
|
---|
219 | <description>
|
---|
220 | <p>Now contains Binutils 2.42, GCC-13.2.0, Glibc-2.39, and Linux
|
---|
221 | kernel 6.7.</p>
|
---|
222 | </description>
|
---|
223 | </release>
|
---|
224 | </releases>
|
---|
225 | </component></literal>
|
---|
226 | EOF</userinput></screen>
|
---|
227 |
|
---|
228 | </sect3>
|
---|
229 | </sect2>
|
---|
230 |
|
---|
231 | <sect2 role="content">
|
---|
232 | <title>Contents</title>
|
---|
233 |
|
---|
234 | <segmentedlist>
|
---|
235 | <segtitle>Installed Programs</segtitle>
|
---|
236 | <segtitle>Installed Libraries</segtitle>
|
---|
237 | <segtitle>Installed Directories</segtitle>
|
---|
238 |
|
---|
239 | <seglistitem>
|
---|
240 | <seg>
|
---|
241 | appstreamcli
|
---|
242 | </seg>
|
---|
243 | <seg>
|
---|
244 | libappstream.so
|
---|
245 | </seg>
|
---|
246 | <seg>
|
---|
247 | /usr/include/appstream,
|
---|
248 | /usr/share/doc/appstream-&version;, and
|
---|
249 | /usr/share/installed-tests/appstream
|
---|
250 | </seg>
|
---|
251 | </seglistitem>
|
---|
252 | </segmentedlist>
|
---|
253 |
|
---|
254 | <variablelist>
|
---|
255 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
256 | <?dbfo list-presentation="list"?>
|
---|
257 | <?dbhtml list-presentation="table"?>
|
---|
258 |
|
---|
259 | <varlistentry id="appstreamcli">
|
---|
260 | <term><command>appstreamcli</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | queries information from AppStream metadata and from the AppStream
|
---|
264 | component index
|
---|
265 | </para>
|
---|
266 | <indexterm zone="appstream appstreamcli">
|
---|
267 | <primary sortas="b-appstreamcli">appstreamcli</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="libappstream">
|
---|
273 | <term><filename class="libraryfile">libappstream.so</filename></term>
|
---|
274 | <listitem>
|
---|
275 | <para>
|
---|
276 | contains functions that handle AppStream metadata queries and
|
---|
277 | request information from the AppStream component index
|
---|
278 | </para>
|
---|
279 | <indexterm zone="appstream libappstream">
|
---|
280 | <primary sortas="c-libappstream">libappstream.so</primary>
|
---|
281 | </indexterm>
|
---|
282 | </listitem>
|
---|
283 | </varlistentry>
|
---|
284 | </variablelist>
|
---|
285 | </sect2>
|
---|
286 | </sect1>
|
---|