<commit_before>---
layout: post
title: Pacman常用命令
---

\#安装软件包  
```
pacman -S package_name
```

\#查询软件包         
```
pacman -Ss package_name
```

\#重新安装包 
```
pacman -Sf package_name
```

\#下载但不安装包  
```
pacman -Sw package_name
```

\#升级系统中的所有包  
```
pacman -Syu
```  

\#清理包缓存，下载的包会在/var/cache 这个目录                       
```
pacman -Scc
```

\#删除软件包  
```
pacman -R package_name
```    

\#顺便删除软件包相关依赖
```
pacman -Rs package_name
```    

\#查询已安装的包
```
pacman -Qs package_name
```

\#显示查找的包的信息  
```
pacman -Qi package_name
```

\#显示你要找的包的文件都安装的位置  
```    
pacman -Ql package_name
```

\#安装本地包
```
pacman -U package_location
```<commit_msg>upate 2015-11-05-Pacman.md<commit_after>---
layout: post
title: Pacman常用命令
---

安装软件包  

```
pacman -S package_name
```

查询软件包  

```
pacman -Ss package_name
```

重新安装包  

```
pacman -Sf package_name
```

下载但不安装包  

```
pacman -Sw package_name
```

升级系统中的所有包  

```
pacman -Syu
```  

清理包缓存，下载的包会在/var/cache 这个目录  

```
pacman -Scc
```

删除软件包  

```
pacman -R package_name
```  

顺便删除软件包相关依赖  

```
pacman -Rs package_name
```  

查询已安装的包  

```
pacman -Qs package_name
```

显示查找的包的信息  

```
pacman -Qi package_name
```

显示你要找的包的文件都安装的位置  

```  
pacman -Ql package_name
```

安装本地包

```
pacman -U package_location
```
{'fraction_non_alphanumeric': 0.17777777777777778, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 2.764179104477612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6689247', 'n_tokens_mistral': 754, 'n_tokens_neox': 745, 'n_words': 105}