why.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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. <sect1 id="pre-why">
  8. <?dbhtml filename="package-choices.html"?>
  9. <title>Rationale for Packages in the Book</title>
  10. <para>As stated earlier, the goal of LFS is to build a complete and usable
  11. foundation-level system. This includes all packages needed to replicate
  12. itself while providing a relatively minimal base from which to customize
  13. a more complete system based on the choices of the user. This does not
  14. mean that LFS is the smallest system possible. Several important packages
  15. are included that are not strictly required. The lists below document the
  16. rationale for each package in the book.</para>
  17. <itemizedlist>
  18. <listitem>
  19. <para>Acl</para>
  20. <para>This package contains programs to administer Access Control
  21. Lists, which are used to define more fine-grained discretionary access
  22. rights for files and directories. It is required by Systemd
  23. and can be used by Coreutils.</para>
  24. </listitem>
  25. <listitem>
  26. <para>Attr</para>
  27. <para>This package contains programs for working with extended
  28. attributes on filesystem objects. It is required by the libcap
  29. library.</para>
  30. </listitem>
  31. <listitem>
  32. <para>Acl</para>
  33. <para>This package contains utilities to administer Access
  34. Control Lists, which are used to define more fine-grained
  35. discretionary access rights for files and directories.
  36. </para>
  37. </listitem>
  38. <listitem>
  39. <para>Attr</para>
  40. <para>This package contains programs for administering
  41. extended attributes on filesystem objects.
  42. </para>
  43. </listitem>
  44. <listitem>
  45. <para>Autoconf</para>
  46. <para>This package contains programs for producing shell scripts that
  47. can automatically configure source code from a developer's
  48. template. It is often needed to rebuild a package after updates
  49. to the build procedures.</para>
  50. </listitem>
  51. <listitem>
  52. <para>Automake</para>
  53. <para>This package contains programs for generating Make files from
  54. a template. It is often needed to rebuild a package after updates
  55. to the build procedures.</para>
  56. </listitem>
  57. <listitem>
  58. <para>Bash</para>
  59. <para>This package satisfies an LSB core requirement to provide
  60. a Bourne Shell interface to the system. It was chosen over
  61. other shell packages because of its common usage and extensive
  62. capabilities beyond basic shell functions.</para>
  63. </listitem>
  64. <listitem>
  65. <para>Bc</para>
  66. <para>This package provides an arbitrary precision numeric processing language.
  67. It satisfies a requirement needed when building the Linux kernel.</para>
  68. </listitem>
  69. <listitem>
  70. <para>Binutils</para>
  71. <para>This package contains a linker, an assembler, and other
  72. tools for handling object files. The programs in this package are
  73. needed to compile most of the packages in an LFS system and beyond.</para>
  74. </listitem>
  75. <listitem>
  76. <para>Bison</para>
  77. <para>This package contains the GNU version of yacc (Yet Another
  78. Compiler Compiler) needed to build several other LFS programs.</para>
  79. </listitem>
  80. <listitem>
  81. <para>Bzip2</para>
  82. <para>This package contains programs for compressing and decompressing
  83. files. It is required to decompress many LFS packages.</para>
  84. </listitem>
  85. <listitem>
  86. <para>Check</para>
  87. <para>This package contains a test harness for other programs.
  88. It is only installed in the temporary toolchain.</para>
  89. </listitem>
  90. <listitem>
  91. <para>Coreutils</para>
  92. <para>This package contains a number of essential programs for viewing
  93. and manipulating files and directories. These programs are needed for
  94. command line file management, and are necessary for the installation
  95. procedures of every package in LFS.</para>
  96. </listitem>
  97. <listitem>
  98. <para>D-Bus</para>
  99. <para>D-Bus is a message bus system, a simple way for applications to
  100. communicate with one another; it is required by Systemd.</para>
  101. </listitem>
  102. <listitem>
  103. <para>D-Bus</para>
  104. <para>This package contains programs to implement a message bus system,
  105. which a simple way for applications to talk to one another.
  106. </para>
  107. </listitem>
  108. <listitem>
  109. <para>DejaGNU</para>
  110. <para>This package contains a framework for testing other programs.
  111. It is only installed in the temporary toolchain.</para>
  112. </listitem>
  113. <listitem>
  114. <para>Diffutils</para>
  115. <para>This package contains programs that show the differences
  116. between files or directories. These programs can be used to create
  117. patches, and are also used in many packages' build procedures.</para>
  118. </listitem>
  119. <listitem>
  120. <para>E2fsprogs</para>
  121. <para>This package contains the utilities for handling the ext2, ext3
  122. and ext4 file systems. These are the most common and thoroughly
  123. tested file systems that Linux supports.</para>
  124. </listitem>
  125. <listitem>
  126. <para>Expat</para>
  127. <para>This package contains a relatively small XML parsing library. It
  128. is required by the XML::Parser Perl module.</para>
  129. </listitem>
  130. <listitem>
  131. <para>Expat</para>
  132. <para>This package contains programs for parsing XML. It is
  133. required for systemd.
  134. </para>
  135. </listitem>
  136. <listitem>
  137. <para>Expect</para>
  138. <para>This package contains a program for carrying out scripted
  139. dialogues with other interactive programs. It is commonly used
  140. for testing other packages. It is only installed in the temporary
  141. toolchain.</para>
  142. </listitem>
  143. <listitem>
  144. <para>File</para>
  145. <para>This package contains a utility for determining the type of a
  146. given file or files. A few packages need it to build.</para>
  147. </listitem>
  148. <listitem>
  149. <para>Findutils</para>
  150. <para>This package contains programs to find files in a file system.
  151. It is used in many packages' build scripts.</para>
  152. </listitem>
  153. <listitem>
  154. <para>Flex</para>
  155. <para>This package contains a utility for generating programs that
  156. recognize patterns in text. It is the GNU version of the lex
  157. (lexical analyzer) program. It is required to build several
  158. LFS packages.</para>
  159. </listitem>
  160. <listitem>
  161. <para>Gawk</para>
  162. <para>This package contains programs for manipulating text files.
  163. It is the GNU version of awk (Aho-Weinberg-Kernighan). It is used in
  164. many other packages' build scripts.</para>
  165. </listitem>
  166. <listitem>
  167. <para>Gcc</para>
  168. <para>This package is the Gnu Compiler Collection. It contains the
  169. C and C++ compilers as well as several others not built by LFS.
  170. </para>
  171. </listitem>
  172. <listitem>
  173. <para>GDBM</para>
  174. <para>This package contains the GNU Database Manager library. It
  175. is used by one other LFS package, Man-DB.</para>
  176. </listitem>
  177. <listitem>
  178. <para>Gettext</para>
  179. <para>This package contains utilities and libraries for
  180. internationalization and localization of numerous packages.</para>
  181. </listitem>
  182. <listitem>
  183. <para>Glibc</para>
  184. <para>This package contains the main C library. Linux programs would
  185. not run without it.</para>
  186. </listitem>
  187. <listitem>
  188. <para>GMP</para>
  189. <para>This package contains math libraries that provide useful functions
  190. for arbitrary precision arithmetic. It is required to build Gcc.</para>
  191. </listitem>
  192. <listitem>
  193. <para>Gperf</para>
  194. <para>This package generates a perfect hash from a key set; it is
  195. required by Systemd.</para>
  196. </listitem>
  197. <listitem>
  198. <para>Gperf</para>
  199. <para>This package a program that generates a perfect hash function
  200. from a key set. It is required for systemd.
  201. </para>
  202. </listitem>
  203. <listitem>
  204. <para>Grep</para>
  205. <para>This package contains programs for searching through files. These
  206. programs are used by most packages' build scripts.</para>
  207. </listitem>
  208. <listitem>
  209. <para>Groff</para>
  210. <para>This package contains programs for processing and formatting text.
  211. One important function of these programs is to format man pages.</para>
  212. </listitem>
  213. <listitem>
  214. <para>GRUB</para>
  215. <para>This package is the Grand Unified Boot Loader. It is one
  216. of several boot loaders available, but is the most flexible.
  217. </para>
  218. </listitem>
  219. <listitem>
  220. <para>Gzip</para>
  221. <para>This package contains programs for compressing and
  222. decompressing files. It is needed to decompress many packages in LFS
  223. and beyond.</para>
  224. </listitem>
  225. <listitem>
  226. <para>Iana-etc</para>
  227. <para>This package provides data for network services and protocols.
  228. It is needed to enable proper networking capabilities.</para>
  229. </listitem>
  230. <listitem>
  231. <para>Inetutils</para>
  232. <para>This package contains programs for basic network
  233. administration.</para>
  234. </listitem>
  235. <listitem>
  236. <para>Intltool</para>
  237. <para>This package contains internationalization tools; it is required
  238. by Systemd.</para>
  239. </listitem>
  240. <listitem>
  241. <para>Intltool</para>
  242. <para>This package contains tools for extracting translatable
  243. strings from source files.</para>
  244. </listitem>
  245. <listitem>
  246. <para>IProute2</para>
  247. <para>This package contains programs for basic and advanced IPv4 and
  248. IPv6 networking. It was chosen over the other common network
  249. tools package (net-tools) for its IPv6 capabilities. </para>
  250. </listitem>
  251. <listitem>
  252. <para>Kbd</para>
  253. <para>This package contains key-table files, keyboard utilities
  254. for non-US keyboards, and a number of console fonts.</para>
  255. </listitem>
  256. <listitem>
  257. <para>Kmod</para>
  258. <para>This package contains programs needed to administer Linux
  259. kernel modules.</para>
  260. </listitem>
  261. <listitem>
  262. <para>Less</para>
  263. <para>This package contains a very nice text file viewer that
  264. allows scrolling up or down when viewing a file. It is also used by
  265. Man-DB for viewing manpages.</para>
  266. </listitem>
  267. <listitem>
  268. <para>Libcap</para>
  269. <para>This package contains functions that enable root privileges to be
  270. partitioned into a set of distinct privileges. It is required by
  271. Systemd.</para>
  272. </listitem>
  273. <listitem>
  274. <para>Libcap</para>
  275. <para>This package implements the user-space interfaces to
  276. the POSIX 1003.1e capabilities available in Linux kernels.
  277. </para>
  278. </listitem>
  279. <listitem>
  280. <para>Libpipeline</para>
  281. <para>The Libpipeline package contains a library for manipulating
  282. pipelines of subprocesses in a flexible and convenient way. It is
  283. required by the Man-DB package.</para>
  284. </listitem>
  285. <listitem>
  286. <para>Libtool</para>
  287. <para>This package contains the GNU generic library support
  288. script. It wraps the complexity of using shared libraries in a
  289. consistent, portable interface. It is needed by the test
  290. suites in other LFS packages.</para>
  291. </listitem>
  292. <listitem>
  293. <para>Linux Kernel</para>
  294. <para>This package is the Operating System. It is the Linux in
  295. the GNU/Linux environment.</para>
  296. </listitem>
  297. <listitem>
  298. <para>M4</para>
  299. <para>This package contains a general text macro processor useful
  300. as a build tool for other programs.</para>
  301. </listitem>
  302. <listitem>
  303. <para>Make</para>
  304. <para>This package contains a program for directing the building
  305. of packages. It is required by almost every package in LFS.</para>
  306. </listitem>
  307. <listitem>
  308. <para>Man-DB</para>
  309. <para>This package contains programs for finding and viewing man pages.
  310. It was chosen instead of the <application>man</application> package
  311. due to superior internationalization capabilities. It supplies
  312. the man program.</para>
  313. </listitem>
  314. <listitem>
  315. <para>Man-pages</para>
  316. <para>This package contains the actual contents of the basic
  317. Linux man pages.</para>
  318. </listitem>
  319. <listitem>
  320. <para>MPC</para>
  321. <para>This package contains functions for the arithmetic of complex
  322. numbers. It is required by Gcc.</para>
  323. </listitem>
  324. <listitem>
  325. <para>MPFR</para>
  326. <para>This package contains functions for multiple precision
  327. arithmetic. It is required by Gcc.</para>
  328. </listitem>
  329. <listitem>
  330. <para>Ncurses</para>
  331. <para>This package contains libraries for terminal-independent
  332. handling of character screens. It is often used to provide
  333. cursor control for a menuing system. It is needed by a number of
  334. packages in LFS.</para>
  335. </listitem>
  336. <listitem>
  337. <para>Patch</para>
  338. <para>This package contains a program for modifying or creating files by
  339. applying a <emphasis>patch</emphasis> file typically created
  340. by the <application>diff</application> program. It is needed by
  341. the build procedure for several LFS packages.</para>
  342. </listitem>
  343. <listitem>
  344. <para>Perl</para>
  345. <para>This package is an interpreter for the runtime language
  346. PERL. It is needed for the installation and test suites of several LFS
  347. packages.</para>
  348. </listitem>
  349. <listitem>
  350. <para>Pkg-config</para>
  351. <para>This package provides a program to return meta-data about an
  352. installed library or package.</para>
  353. </listitem>
  354. <listitem>
  355. <para>Procps-NG</para>
  356. <para>This package contains programs for monitoring processes. These
  357. programs are useful for system administration, and are also used by
  358. the LFS Bootscripts.</para>
  359. </listitem>
  360. <listitem>
  361. <para>Psmisc</para>
  362. <para>This package contains programs for displaying information
  363. about running processes. These programs are useful for system
  364. administration.</para>
  365. </listitem>
  366. <listitem>
  367. <para>Readline</para>
  368. <para>This package is a set of libraries that offers command-line
  369. editing and history capabilities. It is used by Bash.</para>
  370. </listitem>
  371. <listitem>
  372. <para>Sed</para>
  373. <para>This package allows editing of text without opening it in a
  374. text editor. It is also needed by most LFS packages' configure
  375. scripts.</para>
  376. </listitem>
  377. <listitem>
  378. <para>Shadow</para>
  379. <para>This package contains programs for handling passwords
  380. in a secure way.</para>
  381. </listitem>
  382. <listitem>
  383. <para>Systemd</para>
  384. <para>This package contains programs for controlling the startup,
  385. running, and shutdown of the system.</para>
  386. </listitem>
  387. <listitem>
  388. <para>Systemd</para>
  389. <para>This package provides and <application>init</application> program
  390. and several additional boot and system control capabilites as an
  391. alternative to Sysvinit. It is used by many commercial distributions.
  392. In LFS it is installed side-by-side with Sysvinit to provide the user with
  393. alternative boot systems for comparison.</para>
  394. </listitem>
  395. <listitem>
  396. <para>Sysvinit</para>
  397. <para>This package provides misc. utils needed by some packages.</para>
  398. </listitem>
  399. <listitem>
  400. <para>Tar</para>
  401. <para>This package provides archiving and extraction capabilities
  402. of virtually all packages used in LFS.</para>
  403. </listitem>
  404. <listitem>
  405. <para>Tcl</para>
  406. <para>This package contains the Tool Command Language used
  407. in many test suites in LFS packages. It is only installed in
  408. the temporary toolchain.</para>
  409. </listitem>
  410. <listitem>
  411. <para>Texinfo</para>
  412. <para>This package contains programs for reading, writing, and
  413. converting info pages. It is used in the installation
  414. procedures of many LFS packages.</para>
  415. </listitem>
  416. <listitem>
  417. <para>Util-linux</para>
  418. <para>This package contains miscellaneous utility programs.
  419. Among them are utilities for handling file systems, consoles,
  420. partitions, and messages.</para>
  421. </listitem>
  422. <listitem>
  423. <para>Vim</para>
  424. <para>This package contains an editor. It was chosen because of its
  425. compatibility with the classic vi editor and its huge number of powerful
  426. capabilities. An editor is a very personal choice for
  427. many users and any other editor could be substituted if desired.</para>
  428. </listitem>
  429. <listitem>
  430. <para>XML::Parser</para>
  431. <para>This package contains an XML Parsing library for Perl. It is
  432. required by the Intltool package.</para>
  433. </listitem>
  434. <listitem>
  435. <para>XML::Parser</para>
  436. <para>This package is a Perl module that interfaces with Expat.</para>
  437. </listitem>
  438. <listitem>
  439. <para>XZ Utils</para>
  440. <para>This package contains programs for compressing and decompressing
  441. files. It provides the highest compression generally available
  442. and is useful for decompressing packages XZ or LZMA format.</para>
  443. </listitem>
  444. <listitem>
  445. <para>Zlib</para>
  446. <para>This package contains compression and decompression routines
  447. used by some programs.</para>
  448. </listitem>
  449. </itemizedlist>
  450. </sect1>