2014-01-30 05:45:28 +01:00
|
|
|
# pacman
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Arch Linux package manager utility.
|
2014-01-30 05:45:28 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Synchronize and update all packages:
|
2015-10-22 09:00:05 +02:00
|
|
|
|
2015-12-29 15:47:46 +01:00
|
|
|
`pacman -Syu`
|
2014-01-30 05:45:28 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Install a new package:
|
2014-01-30 05:45:28 +01:00
|
|
|
|
|
|
|
`pacman -S package-name`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Remove a package and its dependencies:
|
2015-10-22 09:00:05 +02:00
|
|
|
|
2014-01-30 05:45:28 +01:00
|
|
|
`pacman -Rs package-name`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Search the package database for a keyword:
|
2014-01-30 05:45:28 +01:00
|
|
|
|
|
|
|
`pacman -Ss icon theme`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- List installed packages and versions:
|
2014-01-30 05:45:28 +01:00
|
|
|
|
|
|
|
`pacman -Q`
|
2015-12-29 12:20:11 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- List only the explicitly installed packages and versions:
|
2015-12-29 12:20:11 +01:00
|
|
|
|
|
|
|
`pacman -Qe`
|
2016-01-05 03:19:53 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Find which package owns a certain file:
|
2016-01-05 03:19:53 +01:00
|
|
|
|
|
|
|
`pacman -Qo filename`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Empty package cache to free up space:
|
2016-01-05 03:19:53 +01:00
|
|
|
|
|
|
|
`pacman -Scc`
|