pacman 补充强制安装命令

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-08-02 15:26:37 +08:00
parent b5b24beac0
commit 3ae1f4d8ff
1 changed files with 15 additions and 7 deletions

View File

@ -2,16 +2,24 @@
## Search ## Search
pacman -Ss <key words> ```sh
pacman -Ss <key words>
```
## Install ## Install
pacman -S <package name> ```sh
pacman -S <package name>
# if error <file> exists in filesystem
pacman -S <package name> --force
```
## Remove ## Remove
pacman -Rscun <package name> ```sh
-c, --cascade remove packages and all packages that depend on them pacman -Rscun <package name>
-n, --nosave remove configuration files -c, --cascade remove packages and all packages that depend on them
-s, --recursive remove unnecessary dependencies -n, --nosave remove configuration files
-u, --unneeded remove unneeded packages -s, --recursive remove unnecessary dependencies
-u, --unneeded remove unneeded packages
```