source: general/sysutils/pciutils.xml@ 514a9c4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 514a9c4 was eae7f55, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Add the dependencies to pciutils to allow the pciutils script to function. This is mostly for consistency between books. The systemd book has a timer and unit to allow the pci.ids file to be updated Sundays at 2:30AM Local Time, and without wget, lynx, or curl installed - the script fails to function.

In addition, add wget to the list of dependencies for usbutils in systemd (again, as a result of the units)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20756 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 pciutils-download-http "&kernel-dl;/software/utils/pciutils/pciutils-&pciutils-version;.tar.xz">
8 <!ENTITY pciutils-download-ftp " ">
9 <!ENTITY pciutils-md5sum "77963796d1be4f451b83e6da28ba4f82">
10 <!ENTITY pciutils-size "340 KB">
11 <!ENTITY pciutils-buildsize "3.5 MB">
12 <!ENTITY pciutils-time "less than 0.1 SBU">
13]>
14
15<sect1 id="pciutils" xreflabel="pciutils-&pciutils-version;">
16 <?dbhtml filename="pciutils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>pciutils-&pciutils-version;</title>
24
25 <indexterm zone="pciutils">
26 <primary sortas="a-pciutils">pciutils</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to PCI Utils</title>
31
32 <para>
33 The <application>PCI Utils</application> package contains
34 a set of programs for listing PCI devices, inspecting
35 their status and setting their configuration registers.
36 </para>
37
38 &lfs83_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&pciutils-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&pciutils-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &pciutils-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &pciutils-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &pciutils-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &pciutils-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73<!-- Needed to update the pci-ids. systemd has a unit and timer for this,
74 but for anyone who updates this file on either platform, it's needed
75 to download the pci.ids file. -->
76
77 <bridgehead renderas="sect3">pciutils Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="curl"/>,
82 <xref linkend="wget"/>,
83 OR <xref linkend="lynx"/>
84 (for the update-pciids script to function correctly).
85 </para>
86
87 <para condition="html" role="usernotes">User Notes:
88 <ulink url="&blfs-wiki;/pciutils"/>
89 </para>
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of PCI Utils</title>
94
95 <para>
96 Install <application>PCI Utils</application> by
97 running the following commands:
98 </para>
99
100<screen><userinput>make PREFIX=/usr \
101 SHAREDIR=/usr/share/hwdata \
102 SHARED=yes</userinput></screen>
103
104 <para>
105 This package does not come with a test suite.
106 </para>
107
108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
111
112<screen role="root"><userinput>make PREFIX=/usr \
113 SHAREDIR=/usr/share/hwdata \
114 SHARED=yes \
115 install install-lib &amp;&amp;
116
117chmod -v 755 /usr/lib/libpci.so</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para>
125 <parameter>SHARED=yes</parameter>: This parameter enables building of
126 the shared library instead of the static one.
127 </para>
128
129 <para>
130 <option>ZLIB=no</option>: This option prevents compression of
131 the <filename>pci.ids</filename> file.
132 </para>
133
134 </sect2>
135
136 <sect2 role="configuration">
137 <title>Configuring PCI Utils</title>
138
139 <para>
140 The <filename>pci.ids</filename> data file is constantly being
141 updated. To get a current version of this file, run
142 <command>update-pciids</command> as the <systemitem
143 class="username">root</systemitem> user. This program requires the
144 <xref linkend="which"/> script or program to find <xref linkend="curl"/>,
145 <xref linkend="lynx"/> or <xref linkend="wget"/> which are used to
146 download the most current file, and then replace the existing file in
147 <filename class="directory">/usr/share/hwdata</filename>.
148 </para>
149
150 <para revision="sysv">
151 You may wish to add an entry to
152 <systemitem class="username">root</systemitem>'s (or any other user who has
153 write privilege to <filename class="directory">/usr/share/hwdata</filename>)
154 crontab to automatically update the <filename>pci.ids</filename> file
155 periodically.
156 </para>
157
158 <para revision="systemd">
159 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
160 periodically. Execute the following commands, as the
161 <systemitem class="username">root</systemitem> user, to create a systemd
162 timer to update it weekly on Sundays at 2:30 A.M. (local time):
163 </para>
164
165<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
166<literal>[Unit]
167Description=Update pci.ids file
168Documentation=man:update-pciids(8)
169DefaultDependencies=no
170After=local-fs.target network-online.target
171Before=shutdown.target
172
173[Service]
174Type=oneshot
175RemainAfterExit=yes
176ExecStart=/usr/sbin/update-pciids</literal>
177EOF
178cat &gt; /lib/systemd/system/update-pciids.timer &lt;&lt; "EOF" &amp;&amp;
179<literal>[Unit]
180Description=Update pci.ids file weekly
181
182[Timer]
183OnCalendar=Sun 02:30:00
184Persistent=true
185
186[Install]
187WantedBy=timers.target</literal>
188EOF
189systemctl enable update-pciids.timer</userinput></screen>
190
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Library</segtitle>
200 <segtitle>Installed Directory</segtitle>
201
202 <seglistitem>
203 <seg>
204 lspci, setpci, and update-pciids
205 </seg>
206 <seg>
207 libpci.so
208 </seg>
209 <seg>
210 /usr/include/pci and /usr/share/hwdata
211 </seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="lspci">
221 <term><command>lspci</command></term>
222 <listitem>
223 <para>
224 is a utility for displaying information about all PCI buses
225 in the system and all devices connected to them.
226 </para>
227 <indexterm zone="pciutils lspci">
228 <primary sortas="b-lspci">lspci</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="setpci">
234 <term><command>setpci</command></term>
235 <listitem>
236 <para>
237 is a utility for querying and configuring PCI devices.
238 </para>
239 <indexterm zone="pciutils setpci">
240 <primary sortas="b-setpci">setpci</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="update-pciids">
246 <term><command>update-pciids</command></term>
247 <listitem>
248 <para>
249 fetches the current version of the PCI ID list. <!-- Requires
250 <xref linkend="curl"/>, <xref linkend="lynx"/> or
251 <xref linkend="wget"/>.
252 -->
253 </para>
254 <indexterm zone="pciutils update-pciids">
255 <primary sortas="b-update-pciids">update-pciids</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="libpci">
261 <term><filename class="libraryfile">libpci.so</filename></term>
262 <listitem>
263 <para>
264 is library that allows applications to access the PCI
265 subsystem.
266 </para>
267 <indexterm zone="pciutils libpci">
268 <primary sortas="c-libpci">libpci.so</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 </variablelist>
274
275 </sect2>
276
277</sect1>
Note: See TracBrowser for help on using the repository browser.