温馨提示×

ubuntu minimal怎么安装软件

小樊
42
2026-08-12 05:26:59
栏目: 智能运维

Ubuntu Minimal(最小化安装) 里安装软件,本质和完整版 Ubuntu 是一样的,只是默认没有图形界面和常用软件,需要你手动装。下面按常见场景给你一份实用指南。


一、先更新软件源(强烈建议第一步)

sudo apt update
sudo apt upgrade -y

二、安装软件的基本方式

✅ 1. 用 apt 安装(最常用)

sudo apt install 软件名

常见例子:

sudo apt install vim
sudo apt install curl
sudo apt install git
sudo apt install net-tools   # ifconfig 等
sudo apt install htop
sudo apt install ssh

三、按用途安装软件

✅ 1. 基础工具

sudo apt install build-essential        # gcc、make 等
sudo apt install software-properties-common

✅ 2. 网络相关

sudo apt install curl wget
sudo apt install iproute2
sudo apt install dnsutils   # nslookup、dig

✅ 3. SSH 远程登录

sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh

查看状态:

systemctl status ssh

✅ 4. 桌面环境(可选)

如果你想要图形界面:

轻量桌面(推荐)

sudo apt install xfce4 xfce4-goodies

完整桌面

sudo apt install ubuntu-desktop

启动显示管理器:

sudo systemctl start gdm3

✅ 5. 中文支持(可选)

sudo apt install language-pack-zh-hans
sudo apt install fonts-noto-cjk

四、安装第三方软件(PPA / 官方源)

✅ 1. 添加 PPA

sudo add-apt-repository ppa:xxx/xxx
sudo apt update
sudo apt install xxx

✅ 2. 下载 .deb 安装

sudo dpkg -i xxx.deb
sudo apt -f install   # 修复依赖

✅ 3. 使用 snap(如果已安装)

sudo snap install vscode

五、Ubuntu Minimal 常见“缺什么装什么”

需求 安装命令
ifconfig sudo apt install net-tools
ping sudo apt install iputils-ping
编辑器 sudo apt install vim / nano
防火墙 sudo apt install ufw
压缩解压 sudo apt install unzip zip

六、查看已安装软件

apt list --installed

七、卸载软件

sudo apt remove 软件名
sudo apt purge 软件名   # 同时删除配置

如果你愿意,可以告诉我:

  • ✅ 是 Ubuntu Server Minimal 还是 Ubuntu Minimal ISO
  • ✅ 目标用途(服务器 / 桌面 / 容器 / 开发环境)

我可以给你一份 针对性安装清单,避免装多余的东西。

0