repoman.parser#

APT sources.list.d parser for DEB822 (.sources) and one-line (.list) formats.

class Parser(sources_dir=PosixPath('/etc/apt/sources.list.d'))[source]#

Bases: object

Scans sources.list.d and parses DEB822 and one-line format repo files.

Parameters:

sources_dir (Path)

load_all()[source]#

Scan sources_dir and return all repos sorted by display_name.

Return type:

list[Repository]

On this page