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