pacman
pacman¶
Manage pacman packages. (Arch Linux package manager)
packages(packages=None, present=True, update=False, upgrade=False)
¶
Add/remove pacman packages.
- packages: list of packages to ensure
- present: whether the packages should be installed
- update: run
pacman -Sy
before installing packages - upgrade: run
pacman -Su
before installing packages
Versions
Package versions can be pinned like pacman: <pkg>=<version>
.
Example:
.. code:: python
pacman.packages(
name="Install Vim and a plugin",
packages=["vim-fugitive", "vim"],
update=True,
)
update()
¶
Updates pacman repositories.
upgrade()
¶
Upgrades all pacman packages.