why.xml 16 KB

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