From a2a32a0945dfb0039656f7b142e627f80420c058 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Mon, 27 Apr 2020 11:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E6=97=B6=E7=9A=84=E5=A4=84=E7=90=86=E6=96=B9=E6=B3=95?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Pacman/Pacman.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Software/Applications/Pacman/Pacman.md b/Software/Applications/Pacman/Pacman.md index 017c7ad..995397c 100644 --- a/Software/Applications/Pacman/Pacman.md +++ b/Software/Applications/Pacman/Pacman.md @@ -1,13 +1,19 @@ # Pacman +Pacman 是 ArchLinux 及其分版的软件包管理工具,本文简单介绍其使用方法和常见问题处理。 + ## Search +使用如下命令查找软件包: + ```sh pacman -Ss ``` ## Install +使用如下命令安装软件包: + ```sh pacman -S # if error exists in filesystem @@ -16,6 +22,8 @@ pacman -S --force ## Remove +卸载命令和常用参数如下: + ```sh pacman -Rscun -c, --cascade remove packages and all packages that depend on them @@ -26,6 +34,23 @@ pacman -Rscun ## Update +使用如下命令升级软件包和系统。 + ```sh pacman -Syu ``` + +## 问题处理 + +在升级或安装软件包时经常遇到如下错误: + +```sh +error: failed to commit transaction (conflicting files) +xxxxxxxxx exists in filesystem +``` + +此时可以使用 --overwrite 强制覆盖该文件。 + +```sh +pacman -Syyu --overwrite '*' +```