Skip to content

xbps

xbps

Manage XBPS packages and repositories. Note that XBPS package names are case-sensitive.

packages(packages=None, present=True, update=False, upgrade=False)

Install/remove/update XBPS packages.

  • packages: list of packages to ensure
  • present: whether the packages should be installed
  • update: run xbps-install -S before installing packages
  • upgrade: run xbps-install -y -u before installing packages

Example:

.. code:: python

xbps.packages(
    name="Install Vim and Vim Pager",
    packages=["vimpager", "vim"],
)

update()

Update XBPS repositories.

upgrade()

Upgrades all XBPS packages.