source: general/sysutils/pciutils.xml@ eae7f55

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 eae7f55 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
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]7 <!ENTITY pciutils-download-http "&kernel-dl;/software/utils/pciutils/pciutils-&pciutils-version;.tar.xz">
[303d9be]8 <!ENTITY pciutils-download-ftp " ">
[97828bc]9 <!ENTITY pciutils-md5sum "77963796d1be4f451b83e6da28ba4f82">
10 <!ENTITY pciutils-size "340 KB">
11 <!ENTITY pciutils-buildsize "3.5 MB">
[049ffc5]12 <!ENTITY pciutils-time "less than 0.1 SBU">
[52d29f7]13]>
14
[4890200]15<sect1 id="pciutils" xreflabel="pciutils-&pciutils-version;">
[a9a6837e]16 <?dbhtml filename="pciutils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[4890200]23 <title>pciutils-&pciutils-version;</title>
[a9a6837e]24
25 <indexterm zone="pciutils">
[4890200]26 <primary sortas="a-pciutils">pciutils</primary>
[a9a6837e]27 </indexterm>
28
29 <sect2 role="package">
[564851b]30 <title>Introduction to PCI Utils</title>
[a9a6837e]31
[564851b]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>
[a9a6837e]37
[97828bc]38 &lfs83_checked;
[fd91fea]39
[a9a6837e]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[564851b]43 <para>
44 Download (HTTP): <ulink url="&pciutils-download-http;"/>
45 </para>
[2a05c87]46 </listitem>
[a9a6837e]47 <listitem>
[564851b]48 <para>
49 Download (FTP): <ulink url="&pciutils-download-ftp;"/>
50 </para>
[a9a6837e]51 </listitem>
52 <listitem>
[564851b]53 <para>
54 Download MD5 sum: &pciutils-md5sum;
55 </para>
[a9a6837e]56 </listitem>
57 <listitem>
[564851b]58 <para>
59 Download size: &pciutils-size;
60 </para>
[a9a6837e]61 </listitem>
62 <listitem>
[564851b]63 <para>
64 Estimated disk space required: &pciutils-buildsize;
65 </para>
[a9a6837e]66 </listitem>
67 <listitem>
[564851b]68 <para>
69 Estimated build time: &pciutils-time;
70 </para>
[a9a6837e]71 </listitem>
72 </itemizedlist>
[eae7f55]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>
[a9a6837e]86
[1039de3]87 <para condition="html" role="usernotes">User Notes:
[564851b]88 <ulink url="&blfs-wiki;/pciutils"/>
89 </para>
[2969aa8]90 </sect2>
91
[143ed74]92 <sect2 role="installation">
[564851b]93 <title>Installation of PCI Utils</title>
[143ed74]94
[c503fad7]95 <para>
[564851b]96 Install <application>PCI Utils</application> by
[c503fad7]97 running the following commands:
98 </para>
[a9a6837e]99
[94f93146]100<screen><userinput>make PREFIX=/usr \
101 SHAREDIR=/usr/share/hwdata \
[857e2fb]102 SHARED=yes</userinput></screen>
[a9a6837e]103
[c503fad7]104 <para>
105 This package does not come with a test suite.
106 </para>
[f6f06932]107
[c503fad7]108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
[a9a6837e]111
[7089c646]112<screen role="root"><userinput>make PREFIX=/usr \
[94f93146]113 SHAREDIR=/usr/share/hwdata \
114 SHARED=yes \
115 install install-lib &amp;&amp;
[5f26d66f]116
[857e2fb]117chmod -v 755 /usr/lib/libpci.so</userinput></screen>
[fd91fea]118
[a9a6837e]119 </sect2>
120
[0829916]121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
[c503fad7]124 <para>
125 <parameter>SHARED=yes</parameter>: This parameter enables building of
[d900e405]126 the shared library instead of the static one.
[c503fad7]127 </para>
[2a05c87]128
[c503fad7]129 <para>
[857e2fb]130 <option>ZLIB=no</option>: This option prevents compression of
[564851b]131 the <filename>pci.ids</filename> file.
[c503fad7]132 </para>
[2a05c87]133
[0829916]134 </sect2>
135
[c0913c4]136 <sect2 role="configuration">
[564851b]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
[7b6d7cd]147 <filename class="directory">/usr/share/hwdata</filename>.
[564851b]148 </para>
149
[ac8c7d4]150 <para revision="sysv">
[564851b]151 You may wish to add an entry to
152 <systemitem class="username">root</systemitem>'s (or any other user who has
[7b6d7cd]153 write privilege to <filename class="directory">/usr/share/hwdata</filename>)
[564851b]154 crontab to automatically update the <filename>pci.ids</filename> file
155 periodically.
156 </para>
[1ed12e2d]157
[ac8c7d4]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
[df9499b]162 timer to update it weekly on Sundays at 2:30 A.M. (local time):
[ac8c7d4]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
[a5b9f1e]170After=local-fs.target network-online.target
[ac8c7d4]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
[df9499b]189systemctl enable update-pciids.timer</userinput></screen>
[ac8c7d4]190
191
[c0913c4]192 </sect2>
193
[a9a6837e]194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
[1ed12e2d]199 <segtitle>Installed Library</segtitle>
200 <segtitle>Installed Directory</segtitle>
[a9a6837e]201
202 <seglistitem>
[564851b]203 <seg>
[29efd929]204 lspci, setpci, and update-pciids
[564851b]205 </seg>
206 <seg>
207 libpci.so
208 </seg>
209 <seg>
[29efd929]210 /usr/include/pci and /usr/share/hwdata
[564851b]211 </seg>
[a9a6837e]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>
[564851b]223 <para>
[73fe507]224 is a utility for displaying information about all PCI buses
[564851b]225 in the system and all devices connected to them.
226 </para>
[a9a6837e]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>
[564851b]236 <para>
[73fe507]237 is a utility for querying and configuring PCI devices.
[564851b]238 </para>
[a9a6837e]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>
[564851b]248 <para>
[eae7f55]249 fetches the current version of the PCI ID list. <!-- Requires
[564851b]250 <xref linkend="curl"/>, <xref linkend="lynx"/> or
251 <xref linkend="wget"/>.
[eae7f55]252 -->
[564851b]253 </para>
[a9a6837e]254 <indexterm zone="pciutils update-pciids">
255 <primary sortas="b-update-pciids">update-pciids</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[38ec4bf]260 <varlistentry id="libpci">
[4890200]261 <term><filename class="libraryfile">libpci.so</filename></term>
[38ec4bf]262 <listitem>
[564851b]263 <para>
264 is library that allows applications to access the PCI
265 subsystem.
266 </para>
[38ec4bf]267 <indexterm zone="pciutils libpci">
[2a05c87]268 <primary sortas="c-libpci">libpci.so</primary>
[38ec4bf]269 </indexterm>
270 </listitem>
271 </varlistentry>
272
[a9a6837e]273 </variablelist>
274
275 </sect2>
[f45b1953]276
277</sect1>
Note: See TracBrowser for help on using the repository browser.