3.4. Coreutils-9.10

The Coreutils package contains the basic utility programs needed by every operating system.

Package Information

Coreutils Dependencies

Required

Bash-5.3

3.4.1. Installation of Coreutils

Prepare Coreutils-temp for compilation:

Now Configure the Package, issue:

./configure --prefix=/usr \
            --host=$LFS_TGT \
            --build=$(build-aux/config.guess) \
            --enable-install-program=hostname \
            --enable-no-install-program=kill,uptime

To Compile the Package, issue:

make

Now Install the Package, issue:

make DESTDIR=$LFS install
mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
mkdir -pv $LFS/usr/share/man/man8
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8

3.4.2. Contents of Coreutils

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES