Downloading files and patches I

Checking stuff first

Is the directory for the downloads there, and what are its permissions?

ls -l $LFS

Is LFS the environment?

echo $LFS

Is the LFS partition mounted?

mount

Get all needed files, patches, and the md5sums file

for 3.2 All packages

from linuxfromscratch.org/mirrors.html

to be downloaded to $LFS/sources with the wget-list method.

  • Do not use sudo!
  • The final package is 12.3 . The others are release candidates (12.3-rc1, 12.3-rc2), which are earlier.

1. Download wget-list from 12.3 directory. Do not use sudo!

wget https://lfs.gnlug.org/pub/lfs/lfs-packages/12.3/wget-list –directory-prefix=$LFS/sources

My notes say “did not realize option was in wrong place” – so I’m not sure if it’s in the wrong place above or not. Something to research I guess.

2. Now download the files that are on the wget list.

wget –input-file=$LFS/sources/wget-list –continue –directory-prefix=$LFS/sources

Downloaded 90 files in 57 minutes. Checked off each file from the download information.

  • 404 Not found – 4 files: expat and three of the patches (coreutils, expect, kbd)
  • A different vim
  • Included a file not in the manual, dbus-116.0.tar.xz

3. Downloaded individual missing files from the 12.3 directory, including md5sums:

expat, vim, coreutils.patch, expect.patch, kbd.patch, md5sums

e.g.

wget https://lfs.gnlug.org/pub/lfs/lfs-packages/12.3/md5sums –directory-prefix=$LFS/sources

At first I downloaded MD5SUMS from the lfs-packages directory, and that did not work in step 4 below. md5sum: WARNING! 60 listed files could not be read

4. Verify the MD5 checksums. Do not use sudo. Using the code from the manual:

pushd $LFS/sources && md5sum -c md5sums && popd

-c validates md5 checksum when using a file of checksums, here named “md5sums”.
The whole popd thing didn’t seem to work, but I don’t know if that’s important.
Failed: lfs-bootscripts-20240825.tar.xz

I downloaded lfs-bootscripts again but it failed again.

I tried different mirrors but none was successful in downloading, usually getting “403 forbidden.”

I downloaded lfs-bootscripts for a third time from lfs.gnlug.org and failed again, but now I noticed that it had added a -2 to the end having downloaded a file with the same name.

rm -i $LFS/sources/lfs-bootscripts-2024085.tar.xz.2
rm -i $LFS/sources/lfs-bootscripts-2024085.tar.xz

Download again from the 12.3 directory

wget https://lfs.gnlug.org/pub/lfs/lfs-packages/12.3/lfs-bootscripts-20240825.tar.xz –directory-prefix=$LFS/sources

Verify its checksums

pushd $LFS/sources && md5sum -c md5sums && popd