why.xml 19 KB

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