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
|
|
|
|
2017-11-27 19:35:09 +03:00
|
|
|
- Install a new package:
|
2014-01-30 08:45:28 +04:00
|
|
|
|
2017-11-27 19:35:09 +03:00
|
|
|
`pacman -S {{package_name}}`
|
2014-01-30 08:45:28 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Remove a package and its dependencies:
|
2015-10-22 10:00:05 +03:00
|
|
|
|
2016-07-22 23:24:06 +03:00
|
|
|
`pacman -Rs {{package_name}}`
|
2014-01-30 08:45:28 +04:00
|
|
|
|
2016-12-29 22:24:05 +03:00
|
|
|
- Search the package database for a regular expression or keyword:
|
2014-01-30 08:45:28 +04:00
|
|
|
|
2016-12-30 17:48:08 +03:00
|
|
|
`pacman -Ss "{{search_pattern}}"`
|
2014-01-30 08:45:28 +04:00
|
|
|
|
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
|
|
|
|
2016-07-22 23:24:06 +03:00
|
|
|
`pacman -Qo {{filename}}`
|
2016-01-05 05:19:53 +03:00
|
|
|
|
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`
|