跳转到内容
搜索 AlmaLinux 文档

    浏览当前文档目录

    AlmaLinux 9:最小化安装与 DVD 装出来的系统差在哪

    在 AlmaLinux 9.8 真机(kernel 5.14.0-687.54.1.el9_8)上实际执行:dnf group list --hidden、dnf group info "Minimal Install"、dnf group info "Server"、dnf list installed | wc -l。日志:plans/content-expansion/evidence/logs/alma-minimal-vs-dvd.log。

    本机是已安装好的系统,不是「刚用最小化 ISO 装完」的样本;因此本页给的是安装环境组的定义(来自仓库 comps 数据,可实测)与「怎么自己对比」的方法,安装过程的差异引用官方安装指南(Rocky 安装指南、AlmaLinux 安装指南)。

    差别不在 ISO 大小,在「环境组」

    Section titled “差别不在 ISO 大小,在「环境组」”
    Terminal window
    dnf group list --hidden | head -8
    Available Environment Groups:
    Server with GUI
    Server
    Minimal Install
    Workstation
    KDE Plasma Workspaces
    Virtualization Host
    Custom Operating System

    安装器让你选的「Minimal Install / Server / Server with GUI」就是这些环境组;DVD 与最小化 ISO 的区别是「能不能离线装更多组」,装完系统的差异则取决于你选了哪个组。

    Terminal window
    dnf group info "Minimal Install"
    Environment Group: Minimal Install
    Description: Basic functionality.
    Mandatory Groups:
    Core
    Optional Groups:
    Standard

    Mandatory 只有 Core:基础系统 + 包管理 + 必要的用户态工具。Standard 是可选的常见工具集(不选就没有)。

    Terminal window
    dnf group info "Server"
    Environment Group: Server
    Description: An integrated, easy-to-manage server.
    Mandatory Groups:
    Container Management
    Core
    Headless Management
    Server product core
    Standard
    hardware-support
    Optional Groups:
    Basic Web Server
    DNS Name Server

    对比 Minimal:多了容器管理(podman 等)、无头管理(cockpit 相关)、hardware-support(固件/驱动工具)与 Standard。这就是「最小化装完发现没 podman、没 cockpit」的原因。

    Terminal window
    dnf list installed | wc -l
    550

    550 个包说明这台机器不是最小化安装(更像 Server 或之后装过东西)。要对比,必须在两台干净机器上分别按 Minimal 与 DVD/Server 装完再数,且记录安装时的组选择。

    Terminal window
    sudo dnf group install "Server" # 补整个环境组
    sudo dnf group install "Container Management" # 只补一个组
    dnf group list --installed # 看当前已装的组

    组是可以后补的;但补组不会回退已装的东西,所以「最小化起步、按需加组」是更可控的路线。

    • 把 ISO 类型当系统差异:DVD 只是介质更全,装完的系统由你选的组决定;
    • 忽略 Optional Groups:Minimal 的 Standard 是可选的,没选就没有常见工具;
    • 拿别人的包数当基准:不同版本、不同补装历史,包数不可比。
    Terminal window
    dnf group list --installed
    dnf group info "Minimal Install" | head -8
    rpm -qa | wc -l

    检查:

    1. 能列出当前已安装的环境组
    2. 能说出 Minimal Install 的 Mandatory 组是什么
    3. 记录包数,并说明这台机器是否「最小化」

    常见问题

    最小化安装后为什么没有 firewalld/chrony?

    Minimal Install 的 Mandatory 只有 Core,firewalld、chrony 属于 Server 组或单独安装的包。需要时 dnf install 或补装对应组。

    DVD 装完一定比最小化大吗?

    取决于你选的组。DVD 只是能离线装更多组;如果同样只选 Minimal Install,装完的系统与最小化 ISO 接近。

    能事后把系统变成 Server 组吗?

    可以 dnf group install "Server",但会新增一批包且不会清理旧包;生产上更常见的是按需装具体包,而不是整组补。