2023-12-04 10:02:23 +00:00
|
|
|
---
|
|
|
|
obj: application
|
|
|
|
---
|
|
|
|
# Pacman
|
2024-01-17 08:00:45 +00:00
|
|
|
Pacman is the default [Arch Linux](../../../linux/Arch%20Linux.md) Package Manager
|
2023-12-04 10:02:23 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
Search for a package:
|
|
|
|
```shell
|
|
|
|
pacman -Ss <package>...
|
|
|
|
```
|
|
|
|
|
|
|
|
Update the local package base and upgrade all out-of-date packages:
|
|
|
|
```shell
|
|
|
|
pacman -Suy
|
|
|
|
```
|
|
|
|
|
|
|
|
Install a package:
|
|
|
|
```shell
|
|
|
|
pacman -S <package>...
|
|
|
|
```
|
|
|
|
|
|
|
|
Uninstall a package:
|
|
|
|
```shell
|
|
|
|
pacman -R <package>...
|
|
|
|
```
|
|
|
|
|
|
|
|
Uninstall a package and its depedencies, removing all new orphans:
|
|
|
|
```shell
|
|
|
|
pacman -Rcs <package>...
|
|
|
|
```
|
|
|
|
|
|
|
|
Get information about package:
|
|
|
|
```shell
|
|
|
|
pacman -Si <package>...
|
|
|
|
```
|
|
|
|
|
2024-01-30 21:10:20 +00:00
|
|
|
Install a package from local package file (.[tar](../../cli/compression/tar.md).[xz](../../../files/XZ%20Compression.md)):
|
2023-12-04 10:02:23 +00:00
|
|
|
```shell
|
|
|
|
pacman -U <file>
|
|
|
|
```
|
|
|
|
|
|
|
|
List explicitly installed packages:
|
|
|
|
```shell
|
|
|
|
pacman -Qe
|
|
|
|
```
|
|
|
|
|
|
|
|
List orphan packages (installed as dependencies and not required anymore):
|
|
|
|
```shell
|
|
|
|
pacman -Qdt
|
|
|
|
```
|
|
|
|
|
|
|
|
List installed packages and versions:
|
|
|
|
```shell
|
|
|
|
pacman -Q
|
|
|
|
```
|
|
|
|
|
|
|
|
Empty the entire pacman cache:
|
|
|
|
```shell
|
|
|
|
pacman -Scc
|
|
|
|
```
|