Sub topic 2
Download and Verify the Installation Image
This chapter assumes you can use a terminal, navigate directories, and identify the target server's CPU architecture. You should also know whether the server will boot with UEFI or BIOS, because you must choose installation media that supports the target system.
Choose the Correct Image
A Linux installation image is usually an ISO file. An ISO is a complete, bootable copy of the installer stored in one file. Download it from the distribution's official website, not from an unofficial mirror or file-sharing site.
Before downloading, record these details:
| Choice | Why it matters |
|---|---|
| Distribution and release | Determines available packages and support lifetime |
| CPU architecture | Common choices include `amd64` or `x86_64` and `arm64` |
| Installer image | Server, network, or live images have different purposes |
| Boot support | The image and target firmware must support UEFI or BIOS |
Do not rename an image until you have recorded its original name. The name often identifies the release, architecture, and image type.
Verify the SHA-256 Checksum
A checksum is a short value calculated from a file's contents. SHA-256 is a checksum algorithm. If one byte changes during a download, the calculated value changes. The vendor publishes a checksum file, often named SHA256SUMS, beside the image.
Download both the ISO and the checksum file from the same official release page. Then run the check from the directory containing both files:
# In the directory containing the downloaded ISO and the vendor's checksum file
sha256sum -c SHA256SUMS --ignore-missingA result ending in OK means the image matches the checksum listed in SHA256SUMS. --ignore-missing tells the command to skip checksum entries for images you did not download. Without this option, unrelated entries can produce confusing failure messages.
If the result is FAILED, do not boot the image. Download it again and check that you selected the correct release and architecture. A failure can also mean that the checksum file does not belong to the ISO.
Understand the Result
The checksum protects against incomplete or altered downloads. It does not test whether the target machine's disk is healthy, whether the installer will boot, or whether your partitioning plan is correct. Those checks happen later.
Exercise
What does a successful SHA-256 check tell you, and what does it not tell you?
Show answer
It tells you that the downloaded file matches the vendor-published checksum. It does not prove that the checksum source is authentic or that the installer will boot successfully.