%general-entities; Systemd Udev"> Berkeley DB"> ]> Dependencies Every package built in LFS relies on one or more other packages in order to build and install properly. Some packages even participate in circular dependencies, that is, the first package depends on the second which in turn depends on the first. Because of these dependencies, the order in which packages are built in LFS is very important. The purpose of this page is to document the dependencies of each package built in LFS. For each package that is built, there are three, and sometimes up to five types of dependencies listed below. The first lists what other packages need to be available in order to compile and install the package in question. The second lists the packages that must be available when any programs or libraries from the package are used at runtime. The third lists what packages, in addition to those on the first list, need to be available in order to run the test suites. The fourth list of dependencies are packages that require this package to be built and installed in its final location before they are built and installed. The last list of dependencies are optional packages that are not addressed in LFS, but could be useful to the user. These packages may have additional mandatory or optional dependencies of their own. For these dependencies, the recommended practice is to install them after completion of the LFS book and then go back and rebuild the LFS package. In several cases, re-installation is addressed in BLFS. Acl &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo &runtime; Attr and Glibc &testsuites; Automake, Diffutils, Findutils, and Libtool &before; Coreutils, Sed, Tar, and Vim &external; None Attr &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Perl, Sed, and Texinfo &runtime; Glibc &testsuites; Automake, Diffutils, Findutils, and Libtool &before; Acl, Libcap, and Patch &external; None Autoconf &dependencies; Bash, Coreutils, Grep, M4, Make, Perl, Sed, and Texinfo &runtime; Bash, Coreutils, Grep, M4, Make, Sed, and Texinfo &testsuites; Automake, Diffutils, Findutils, GCC, and Libtool &before; Automake and Coreutils &external; Emacs Automake &dependencies; Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo &runtime; Bash, Coreutils, Grep, M4, Sed, and Texinfo &testsuites; Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, and Tar &before; Coreutils &external; None Bash &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, and Texinfo &runtime; Glibc, Ncurses, and Readline &testsuites; Expect and Shadow &before; None &external; Xorg Bc &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Readline &runtime; Glibc, Ncurses, and Readline &testsuites; Gawk &before; Linux &external; None Binutils &dependencies; Bash, Binutils, Coreutils, Diffutils, File, Flex, Gawk, GCC, Glibc, Grep, Make, Perl, Pkgconf, Sed, Texinfo, Zlib, and Zstd &runtime; Glibc, Zlib, and Zstd &testsuites; DejaGNU and Expect &before; None &external; Elfutils and Jansson Bison &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Perl, and Sed &runtime; Glibc &testsuites; Diffutils, Findutils, and Flex &before; Kbd and Tar &external; Doxygen Bzip2 &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, and Patch &runtime; Glibc &testsuites; None &before; File and Libelf &external; None Check &dependencies; Gawk, GCC, Grep, Make, Sed, and Texinfo &runtime; Bash and Gawk &testsuites; None &before; None &external; libsubunit and patchutils Coreutils &dependencies; Autoconf, Automake, Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Libcap, Make, OpenSSL, Patch, Perl, Sed, and Texinfo &runtime; Glibc &testsuites; Diffutils, E2fsprogs, Findutils, Shadow, and Util-linux &before; Bash, Diffutils, Findutils, Man-DB, and &systemd-udev; &external; Expect.pm and IO::Tty D-Bus &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Pkgconf, Sed, Systemd, and Util-linux &runtime; Glibc and Systemd &testsuites; Several packages in BLFS &before; None &external; Xorg Libraries DejaGNU &dependencies; Bash, Coreutils, Diffutils, Expect, GCC, Grep, Make, Sed, and Texinfo &runtime; Expect and Bash &testsuites; None &before; None &external; None Diffutils &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &runtime; Glibc &testsuites; Perl &before; None &external; None E2fsprogs &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Gzip, Make, Pkgconf, Sed, Systemd, Texinfo, and Util-linux &runtime; Glibc and Util-linux &testsuites; Procps-ng and Psmisc &before; None &external; None Expat &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, and Sed &runtime; Glibc &testsuites; None &before; Python and XML::Parser &external; None Expect &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, and Tcl &runtime; Glibc and Tcl &testsuites; None &before; None &external; Tk File &dependencies; Bash, Binutils, Bzip2, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, Xz, and Zlib &runtime; Glibc, Bzip2, Xz, and Zlib &testsuites; None &before; None &external; libseccomp Findutils &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &runtime; Bash and Glibc &testsuites; DejaGNU, Diffutils, and Expect &before; None &external; None Flex &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, and Texinfo &runtime; Bash, Glibc, and M4 &testsuites; Bison and Gawk &before; Binutils, IProute2, Kbd, Kmod, and Man-DB &external; None Flit-Core &dependencies; Python &runtime; Python &testsuites; No test suite available &before; Wheel &external; pytest and testpath Gawk &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, MPFR, Patch, Readline, Sed, and Texinfo &runtime; Bash, Glibc, and Mpfr &testsuites; Diffutils &before; None &external; libsigsegv GCC &dependencies; Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, Libxcrypt, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, Texinfo, and Zstd &runtime; Bash, Binutils, Glibc, Mpc, and Python &testsuites; DejaGNU, Expect, and Shadow &before; None &external; GDC, GNAT, and ISL GDBM &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make, and Sed &runtime; Bash, Glibc, and Readline &testsuites; None &before; None &external; None Gettext &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Sed, and Texinfo &runtime; Acl, Bash, Gcc, and Glibc &testsuites; Diffutils, Perl, and Tcl &before; Automake and Bison &external; libunistring and libxml2 Glibc &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Python, Sed, and Texinfo &runtime; None &testsuites; File &before; None &external; None GMP &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed, and Texinfo &runtime; GCC and Glibc &testsuites; None &before; MPFR and GCC &external; None Gperf &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, and Make &runtime; GCC and Glibc &testsuites; Diffutils and Expect &before; None &external; None Grep &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, and Texinfo &runtime; Glibc &testsuites; Gawk &before; Man-DB &external; PCRE2 and libsigsegv Groff &dependencies; Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, and Texinfo &runtime; GCC, Glibc, and Perl &testsuites; No test suite available &before; Man-DB &external; ghostscript and Uchardet GRUB &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, and Xz &runtime; Bash, GCC, Gettext, Glibc, Xz, and Sed. &testsuites; None &before; None &external; None Gzip &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo &runtime; Bash and Glibc &testsuites; Diffutils and Less &before; Man-DB &external; None Iana-Etc &dependencies; Coreutils &runtime; None &testsuites; No test suite available &before; Perl &external; None Inetutils &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo, and Zlib &runtime; GCC, Glibc, Ncurses, and Readline &testsuites; None &before; Tar &external; None Intltool &dependencies; Bash, Gawk, Glibc, Make, Perl, Sed, and XML::Parser &runtime; Autoconf, Automake, Bash, Glibc, Grep, Perl, and Sed &testsuites; Perl &before; None &external; None IProute2 &dependencies; Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, Libcap, Libelf, Linux API Headers, Pkgconf, and Zlib &runtime; Bash, Coreutils, Glibc, Libcap, Libelf, and Zlib &testsuites; No test suite available &before; None &external; &bdb;, iptables, libbpf, libmnl, and libtirpc Jinja2 &dependencies; MarkupSafe, Python, Setuptools, and Wheel &runtime; MarkupSafe and Python &testsuites; No test suite available &before; &systemd-udev; &external; None Kbd &dependencies; Bash, Binutils, Bison, Check, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, and Sed &runtime; Bash, Coreutils, and Glibc &testsuites; None &before; None &external; Linux-PAM Kmod &dependencies; Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, OpenSSL, Pkgconf, Sed, Xz, and Zlib &runtime; Glibc, Xz, and Zlib &testsuites; No test suite available &before; &systemd-udev; &external; None Less &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed &runtime; Glibc and Ncurses &testsuites; No test suite available &before; Gzip &external; PCRE2 or PCRE Libcap &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Glibc, Perl, Make, and Sed &runtime; Glibc &testsuites; None &before; IProute2 and Shadow &external; Linux-PAM Libelf &dependencies; Bash, Binutils, Bzip2, Coreutils, GCC, Glibc, Make, Xz, Zlib, and Zstd &runtime; Bzip2, Glibc, Xz, Zlib, and Zstd &testsuites; None &before; IProute2 and Linux &external; None Libffi &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed &runtime; Glibc &testsuites; DejaGnu &before; Python &external; None Libpipeline &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo &runtime; Glibc &testsuites; Check and Pkgconf &before; Man-DB &external; None Libtool &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo &runtime; Autoconf, Automake, Bash, Binutils, Coreutils, File, GCC, Glibc, Grep, Make, and Sed &testsuites; Autoconf, Automake, and Findutils &before; None &external; None Libxcrypt &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Perl, and Sed &runtime; Glibc &testsuites; None &before; GCC, Perl, Python, Shadow, and &systemd-udev; &external; None Linux &dependencies; Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Kmod, Libelf, Make, Ncurses, OpenSSL, Perl, and Sed &runtime; None &testsuites; No test suite available &before; None &external; cpio and LLVM (with Clang) Linux API Headers &dependencies; Bash, Binutils, Coreutils, Findutils, GCC, Glibc, Grep, Gzip, Make, Perl, and Sed &runtime; None &testsuites; No test suite available &before; None &external; None Lz4 &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, and Make &runtime; Glibc &testsuites; Python &before; Zstd and Systemd &external; None M4 &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo &runtime; Bash and Glibc &testsuites; Diffutils &before; Autoconf and Bison &external; libsigsegv Make &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &runtime; Glibc &testsuites; Perl and Procps-ng &before; None &external; Guile Man-DB &dependencies; Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM, Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Pkgconf, Sed, Systemd, and Xz &runtime; Bash, GDBM, Groff, Glibc, Gzip, Less, Libpipeline, and Zlib &testsuites; Util-linux &before; None &external; libseccomp and po4a Man-Pages &dependencies; Bash, Coreutils, Make, and Sed &runtime; None &testsuites; No test suite available &before; None &external; None MarkupSafe &dependencies; Python, Setuptools, and Wheel &runtime; Python &testsuites; No test suite available &before; Jinja2 &external; None Meson &dependencies; Ninja, Python, Setuptools, and Wheel &runtime; Python &testsuites; No test suite available &before; &systemd-udev; &external; None MPC &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, MPFR, Sed, and Texinfo &runtime; Glibc, GMP, and MPFR &testsuites; None &before; GCC &external; None MPFR &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, Sed, and Texinfo &runtime; Glibc and GMP &testsuites; None &before; Gawk and GCC &external; None Ncurses &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, and Sed &runtime; Glibc &testsuites; No test suite available &before; Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc, Readline, Texinfo, Util-linux, and Vim &external; None Ninja &dependencies; Binutils, Coreutils, GCC, and Python &runtime; GCC and Glibc &testsuites; cmake &before; Meson &external; Asciidoc, Doxygen, Emacs, and re2c OpenSSL &dependencies; Binutils, Coreutils, GCC, Make, and Perl &runtime; Glibc and Perl &testsuites; None &before; Coreutils, Kmod, Linux, and &systemd-udev; &external; None Patch &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Sed &runtime; Attr and Glibc &testsuites; Diffutils &before; None &external; Ed Perl &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc, Grep, Libxcrypt, Make, Sed, and Zlib &runtime; GDBM, Glibc, and Libxcrypt &testsuites; Iana-Etc, Less, and Procps-ng &before; Autoconf &external; &bdb; Pkgconf &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, and Sed &runtime; Glibc &testsuites; None &before; Binutils, D-Bus, E2fsprogs, IProute2, Kmod, Man-DB, Procps-ng, Python, &systemd-udev;, and Util-linux &external; None Procps-ng &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, Ncurses, and Pkgconf, and Systemd &runtime; Glibc &testsuites; DejaGNU &before; None &external; None elogind Psmisc &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed &runtime; Glibc and Ncurses &testsuites; No test suite available &before; None &external; None Python &dependencies; Bash, Binutils, Coreutils, Expat, GCC, Gdbm, Gettext, Glibc, Grep, Libffi, Libxcrypt, Make, Ncurses, OpenSSL, Pkgconf, Sed, and Util-linux &runtime; Bzip2, Expat, Gdbm, Glibc, Libffi, Libxcrypt, Ncurses, OpenSSL, and Zlib &testsuites; GDB and Valgrind &before; Ninja &external; &bdb;, libnsl, SQLite, and Tk Readline &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, and Texinfo &runtime; Glibc and Ncurses &testsuites; No test suite available &before; Bash, Bc, and Gawk &external; None Sed &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &runtime; Acl, Attr, and Glibc &testsuites; Diffutils and Gawk &before; E2fsprogs, File, Libtool, and Shadow &external; None Setuptools &dependencies; Python and Wheel &runtime; Python &testsuites; No test suite available &before; Jinja2, MarkupSafe, and Meson &external; None Shadow &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Libcap, Libxcrypt, Make, and Sed &runtime; Glibc and Libxcrypt &testsuites; No test suite available &before; Coreutils &external; CrackLib and Linux-PAM Sysklogd &dependencies; Binutils, Coreutils, GCC, Glibc, Make, and Patch &runtime; Glibc &testsuites; No test suite available &before; None &external; None Systemd &dependencies; Acl, Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Gperf, Grep, Jinja2, Libcap, Libxcrypt, Lz4, Meson, OpenSSL, Pkgconf, Sed, Util-linux, and Zstd &runtime; Acl, Glibc, Libcap, Libxcrypt, OpenSSL, Util-linux, Xz, Zlib, and Zstd &testsuites; None &before; D-Bus, E2fsprogs, Man-DB, Procps-ng, and Util-linux &external; AppArmor, audit-userspace, bash-completion, btrfs-progs, cURL, cryptsetup, docbook-xml, docbook-xsl-nons, Git, GnuTLS, iptables, jekyll, kexec-tools, libbpf, libdw, libfido2, libgcrypt, libidn2, libmicrohttpd, libpwquality, libseccomp, libxkbcommon, libxslt, Linux-PAM, lxml, make-ca, p11-kit, PCRE2, pefile, Polkit, pyelftools, qemu, qrencode, quota-tools, rpm, rsync, SELinux, Sphinx, systemtap, tpm2-tss, Valgrind, Xen, and zsh Sysvinit &dependencies; Binutils, Coreutils, GCC, Glibc, Make, and Sed &runtime; Glibc &testsuites; No test suite available &before; None &external; None Tar &dependencies; Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, and Texinfo &runtime; Acl, Attr, Bzip2, Glibc, Gzip, and Xz &testsuites; Autoconf, Diffutils, Findutils, Gawk, and Gzip &before; None &external; None Tcl &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, and Sed &runtime; Glibc and Zlib &testsuites; None &before; None &external; None Texinfo &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, and Sed &runtime; Glibc and Ncurses &testsuites; None &before; None &external; None Udev &dependencies; Acl, Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Gperf, Grep, Jinja2, Libcap, Libxcrypt, Meson, OpenSSL, Pkgconf, Sed, Util-linux, and Zstd &runtime; Acl, Glibc, Libcap, OpenSSL, and Util-linux &testsuites; None &before; Util-linux &external; None Util-linux &dependencies; Bash, Binutils, Coreutils, Diffutils, File, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Ncurses, Pkgconf, Sed, &systemd-udev;, and Zlib &runtime; Glibc, Ncurses, Readline, &systemd-udev;, and Zlib &testsuites; None &before; None &external; Asciidoctor, Libcap-NG, libeconf, libuser, libutempter, Linux-PAM, smartmontools, po4a, and slang Vim &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed &runtime; Acl, Attr, Glibc, Python, Ncurses, and Tcl &testsuites; None &before; None &external; Xorg, GTK+2, LessTif, Ruby, and GPM Wheel &dependencies; Python and Flit-core &runtime; Python &testsuites; No test suite available &before; Jinja2, MarkupSafe, Meson, and Setuptools &external; None XML::Parser &dependencies; Bash, Binutils, Coreutils, Expat, GCC, Glibc, Make, and Perl &runtime; Expat, Glibc, and Perl &testsuites; Perl &before; Intltool &external; None Xz &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, and Make &runtime; Glibc &testsuites; None &before; File, GRUB, Kmod, Libelf, Man-DB, and &systemd-udev; &external; None Zlib &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed &runtime; Glibc &testsuites; None &before; File, Kmod, Libelf, Perl, and Util-linux &external; None Zstd &dependencies; Binutils, Coreutils, GCC, Glibc, Gzip, Lz4, Make, Xz, and Zlib &runtime; Glibc &testsuites; None &before; Binutils, GCC, Libelf, and &systemd-udev; &external; None