- -
-

rbackup.package_managers package

-
-

Submodules

-
-
-

rbackup.package_managers.packagemanager module

-
-
-class rbackup.package_managers.packagemanager.PackageManager(cachedir, db_path, pkglist_cmd)
-

Bases: object

-
-
-cache_directory
-
-
Returns
-

the cache directory of this package manager.

-
-
Return type
-

path-like object

-
-
-
- -
-
-database_path
-
-
Returns
-

the database path of this package manager.

-
-
Return type
-

path-like object

-
-
-
- -
-
-gen_db_archive(compress=None)
-

Generate a database archive for this package manager.

-
-

All arguments and keyword-only arguments are passed directly -to the PackageManager object.

-
-
-

Note

-

This method is internal and is meant to be called from -a subclass in a separate module.

-
-
-
Parameters
-

compress (str) – compression mode

-
-
Returns
-

the path to the created file

-
-
Return type
-

path-like object

-
-
Raises
-

ValueError – if compress is not in packagemanager.VALID_DB_COMPRESS_MODES

-
-
-
- -
-
-gen_pkglist()
-

Generate a text file listing installed packages -on the system and return the path to that file.

-
-

If there is an error in the package listing command, then -it is to be assumed that no file was created, therefore there -is no file to cleanup.

-
-
-

Note

-

This method is internal and is meant to be called from -a subclass in a separate module.

-
-
-
Returns
-

path to temporary file

-
-
Return type
-

path-like object

-
-
-
- -
-
-pkglist_cmd
-
-
Returns
-

the package listing command of this package manager.

-
-
Return type
-

iterable or str

-
-
-
- -
- -
-
-

rbackup.package_managers.pacman module

-
-
-class rbackup.package_managers.pacman.Pacman
-

Bases: rbackup.package_managers.packagemanager.PackageManager

-
- -
-
-

Module contents

-
-
- - -