Files
linux-wiki/content/deepin折腾笔记/第二章/2.4.md
2021-10-21 14:57:58 +08:00

25 lines
867 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2.4 APT 软件包管理扩展用法
1 大多数的软件安装、卸载都应该在深度系统“应用商店”里可视化操作。下面以软件包“ package-name”为例总结软件包相关的常用命令
2 安装软件包sudo apt install package-name
3 安装并修复依赖关系sudo apt install -f package-name
4 重新安装软件包sudo apt install --reinstall package-name
5 移除软件包但保留系统配置sudo apt remove package-name
6 移除软件包且清除系统配置sudo apt purge package-name
7 移除不需要的软件包并清除配置sudo apt autoremove --purge
8 罗列所有软件包apt list *weixin*
9 罗列已安装软件包apt list --installed fcitx*
10 搜索软件包apt search --names-only package-name
11 查看软件包内文件明细dpkg -L package-name