why.xml 16 KB

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