为 Pacman 补充 Query 方法.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
14cf1f6be3
commit
642365ab55
|
@ -20,7 +20,17 @@ pacman -S <package name>
|
|||
pacman -S <package name> --force
|
||||
```
|
||||
|
||||
## 3.Remove
|
||||
## 3.Query
|
||||
|
||||
```bash
|
||||
pacman -Qs <key words>
|
||||
# list installed packages only found in sync db(s) [filter]
|
||||
pacman -Qen
|
||||
# list installed packages not found in sync db(s) [filter]
|
||||
pacman -Qem
|
||||
```
|
||||
|
||||
## 4.Remove
|
||||
|
||||
卸载命令和常用参数如下:
|
||||
|
||||
|
@ -32,7 +42,7 @@ $ pacman -Rscun <package name>
|
|||
-u, --unneeded remove unneeded packages
|
||||
```
|
||||
|
||||
## 4.Refresh Package Databases
|
||||
## 5.Refresh Package Databases
|
||||
|
||||
长时间不进行更新的话本地 package databases 会与远程的不一致,导致安装软件时出现:
|
||||
|
||||
|
@ -46,7 +56,7 @@ error: failed retrieving file
|
|||
pacman -Syu
|
||||
```
|
||||
|
||||
## 5.Update
|
||||
## 6.Update
|
||||
|
||||
使用如下命令升级软件包和系统。
|
||||
|
||||
|
@ -54,7 +64,7 @@ pacman -Syu
|
|||
pacman -Syu
|
||||
```
|
||||
|
||||
## 6.从本地文件安装
|
||||
## 7.从本地文件安装
|
||||
|
||||
使用如下命令可以从本地“\*.pkg.tar.xz”(2020年1月份以后改为 “\*.pkg.tar.zst”)文件进行安装:
|
||||
|
||||
|
@ -62,9 +72,9 @@ pacman -Syu
|
|||
pacman {-U --upgrade} [选项] <文件>
|
||||
```
|
||||
|
||||
## 7.问题处理
|
||||
## 8.问题处理
|
||||
|
||||
### 7.1.conflicting files
|
||||
### 8.1.conflicting files
|
||||
|
||||
在升级或安装软件包时经常遇到如下错误:
|
||||
|
||||
|
|
Loading…
Reference in New Issue