rpmconf man page

rpmconf — Python interface for rpmconf

Contents:

class rpmconf.RpmConf(packages=None, clean=False, debug=False, selinux=False, diff=False, frontend=None)
Parameters
·

packages (list) -- Check only configuration files of given packages.

·

clean (bool) -- Find and delete orphaned .rpmnew and .rpmsave files.

·

debug (bool) -- Dry run. Just show which files will be deleted.

·

selinux (bool) -- Display SELinux context of old and new file.

·

diff (bool) -- Non-interactive diff mode. Useful to audit configs.

·

frontend (str) -- Define which frontend should be used for merging.

Variables
·

packages -- list of rpm.mi

·

clean -- bool

·

diff -- bool

·

frontend -- str

·

selinux -- bool

·

debug -- bool

·

logger -- logging.Logger

static flush_input(question)

Flush stdin and then as the question.

Parameters

question (str) -- String to ask

Returns

User string

Return type

str

static get_list_of_config(package)

Get all files marked as config in package

Parameters

package (rpm.hdr) -- RPM Header of package

Returns

Strings list of files marked as config in package

Return type

list

static is_broken_symlink(file1)

Returns true if file is broken symlink. False otherwise.

run()

Main function to proceed

show_diff(file1, file2)

Show differences between two files.

Parameters
·

file1 (str) -- Path to first file

·

file2 (str) -- Path to second file

·

genindex

·

modindex

·

search

Author

Miroslav Suchý, Igor Gnatenko

Info

Dec 13, 2016 1.0.6 rpmconf