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