Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

第 1 章 获取 Red Hat Enterprise Linux

如果有 Red Hat订阅,则可以在 Red Hat 客户门户网站的软件 & 下载中心下载 Red Hat Enterprise Linux 6 安装 DVD 的 ISO 映像文件。如果还没有订阅,请购买订阅,或者在 https://access.redhat.com/downloads 的软件 & 下载中心获得免费评估订阅。
下表给出了可用于不同构架的引导和安装介质类型并标注了您需要用来生成介质的映像文件。

表 1.1. 引导和安装介质

体系结构安装 DVD引导 CD 或者引导 DVD引导 USB 闪盘
其中 variant 是 Red Hat Enterprise Linux 的变体(如 serverworkstation),version是最新的版本号(如 6.5)。
基于 BIOS 的 32 位 x86x86 DVD ISO 映像文件rhel-variant-version-i386-boot.isorhel-variant-version-i386-boot.iso
基于 UEFI 的 32 位 x86不可用 
基于 BIOS 的 AMD64 和 Intel 64x86_64 DVD ISO 映像文件(安装 64 位操作系统)或者 x86 DVD ISO 映像文件(安装 32 位操作系统)rhel-variant-version-x86_64boot.iso orrhel-variant-version-i386-boot.isorhel-variant-version-x86_64boot.iso or rhel-variant-version-i386-boot.iso
基于 UEFI 的 AMD64 和 Intel 64x86_64 DVD ISO 映像文件rhel-variant-version-x86_64-boot.isoefidisk.img(使用 x86_64 DVD ISO 映像文件)
POWER(仅限 64 位)ppc DVD ISO 映像文件rhel-server-version-ppc64-boot.iso不可用
System zs390 DVD ISO 映像文件不可用不可用
如果有订阅或者评估订阅,按以下步骤操作获得 Red Hat Enterprise Linux 6 ISO 映像文件:

过程 1.1. 下载 Red Hat Enterprise Linux ISO 映像

  1. 访问位于 https://access.redhat.com/home 的客户门户网站,如果还没有登录,可点击右上角的 登录 按钮。根据提示输入帐户认证。
  2. 点击页面顶部的 下载
  3. 点击 Red Hat Enterprise Linux
  4. Ensure that you select the appropriate Product Variant, Version and Architecture for your installation target. By default, Red Hat Enterprise Linux Server and x86_64 are selected. If you are not sure which variant best suits your needs, see http://www.redhat.com/en/technologies/linux-platforms/enterprise-linux.
  5. 这里显示可用下载列表,最重要的是最小 引导 ISO 映像及完整安装 二进制 DVD ISO 映像。该引导 ISO 是最小引导映像,只包含安装程序,并需要源以便安装软件包(比如 HTTP 或 FTP 服务器)。二进制 DVD 下载包含安装程序及所需软件包,因此需要的设定较少。
    可能还有其他映像可用,比如预先配置的虚拟机映像,这些均不在本文档讨论范围内。
  6. 选择要使用的映像文件。从 Red Hat 客户门户网站下载 ISO 映像有几种方法:
    • 点击其名称,使用 web 浏览器将其下载到计算机中。
    • 在该名称上按右键,点击 复制链接位置 或类似的菜单选项,具体的用词要看使用的浏览器。这个动作会将该文件 URL 复制到剪切板中,这样就可以使用其他应用程序将该文件下载到计算机中。这个方法在互联网无法使用时特别有帮助:如果浏览器无法下载整个文件,并尝试恢复中断的下载进程,因为下载链接包含只能在一段时间内使用的认证密钥。但指定的应用程序(比如 curl)可以用来恢复从客户门户网站中断的下载,就是说不需要再次下载整个文件,这样可以节省时间和带宽消耗。

      过程 1.2. 使用 URL 下载安装介质

      1. 作为 root 运行以下命令,确定安装了 curl 软件包:
        # yum install curl
        If your Linux distribution does not use yum, or if you do not use Linux at all, download the most appropriate software package from the curl website.
      2. 打开终端窗口,进入正确目录,并输入以下命令:
        $ curl -o filename.iso 'copied_link_location'
        Replace filename.iso with the ISO image name as displayed in the Customer Portal, such as rhel-server-6-x86_64-dvd.iso. This is important because the download link in the Customer Portal contains extra characters which curl would otherwise use in the downloaded file name, too. Then, keep the single quotation mark in front of the next parameter, and replace copied_link_location with the link that you have copied from the Customer Portal.
        Note that in Linux, you can paste the content of the clipboard into the terminal window by middle-clicking anywhere in the window, or by pressing Shift+Insert. Finally, use another single quotation mark after the last parameter, and press Enter to run the command and start transferring the ISO image. The single quotation marks prevent the command line interpreter from misinterpreting any special characters that might be included in the download link.

        例 1.1. 使用 curl 下载 ISO 映像

        以下是 curl 命令行示例:
        $ curl -o rhel-server-6-x86_64-dvd.iso 'https://access.cdn.redhat.com//content/origin/files/sha256/85/85a...46c/rhel-server-6-x86_64-dvd.iso?_auth_=141...7bf'
        注:实际下载链接要长很多,因为它包含复杂的识别符。
      3. 如果在传送完成前互联网连接掉线,请刷新客户门户网站中的下载页面;如有必要再次登录。复制新的下载链接,使用与之前相同的基本 curl 命令行参数,但确定使用新的下载链接,并添加 -C - 指导 curl 根据已下载文件的大小自动确定从哪里继续。

        例 1.2. 恢复中断的下载尝试

        以下是只下载了部分 ISO 映像时要使用的 curl 命令行示例:
        $ curl -o rhel-server-6-x86_64-dvd.iso 'https://access.cdn.redhat.com//content/origin/files/sha256/85/85a...46c/rhel-server-6-x86_64-dvd.iso?_auth_=141...963' -C -
  7. 另外,也可以在下载完成后使用 checksum 工具,比如 sha256sum 确认该映像文件的完整性。所有下载 Red Hat Enterprise Linux 页面中的下载都会提供 checksum 以便参考:
    $ sha256sum rhel-server-6-x86_64-dvd.iso
    85a...46c rhel-server-6-x86_64-dvd.iso
    Microsoft WindowsMac OS X 也有类似的工具可用。还可使用安装程序在开始安装时验证该介质,详情请查看 第 28.6.1 节 “验证引导介质”
从 Red Hat 客户门户网站下载安装 DVD 的 ISO 映像文件后,您可以: