Ubuntu Minimal(最小化安装)通常指:
下面按常见场景说明配置方法。
https://ubuntu.com/download/server
sudo apt update
sudo apt upgrade -y
⚠️ 注意:
从 Ubuntu 20.04 起,官方已停止维护 mini.iso
可用 Ubuntu Server + 手动精简 替代
如仍使用旧版本:
# 安装基础系统
tasksel
# 只选: Basic Ubuntu Server
安装时:
安装后清理:
sudo apt purge libreoffice* thunderbird* rhythmbox* -y
sudo apt autoremove --purge -y
sudo apt install --no-install-recommends ubuntu-minimal
sudo apt purge snapd apport whoopsie -y
sudo apt autoremove --purge -y
sudo systemctl disable bluetooth
sudo systemctl disable cups
FROM ubuntu:24.04
RUN apt update && apt install -y --no-install-recommends \
ca-certificates && rm -rf /var/lib/apt/lists/*
https://cloud-images.ubuntu.com/minimal/
sudo apt install \
openssh-server \
vim \
curl \
net-tools \
ufw
如果你告诉我:
我可以给你精确的最小配置方案。