1RPMCONF(3) rpmconf RPMCONF(3)
2
3
4
6 rpmconf - Python interface for rpmconf
7
8 Contents:
9
10 class rpmconf.RpmConf(packages=None, clean=False, debug=False,
11 selinux=False, diff=False, frontend=None, test=None)
12
13 Parameters
14
15 · packages (list) – Check only configuration files of
16 given packages.
17
18 · clean (bool) – Find and delete orphaned .rpmnew and
19 .rpmsave files.
20
21 · debug (bool) – Dry run. Just show which files will be
22 deleted.
23
24 · selinux (bool) – Display SELinux context of old and new
25 file.
26
27 · diff (bool) – Non-interactive diff mode. Useful to
28 audit configs.
29
30 · frontend (str) – Define which frontend should be used
31 for merging.
32
33 · test (bool) – Only test if there is some file to merge.
34
35 Variables
36
37 · packages – list of rpm.mi
38
39 · clean – bool
40
41 · diff – bool
42
43 · frontend – str
44
45 · selinux – bool
46
47 · debug – bool
48
49 · logger – logging.Logger
50
51 static flush_input(question)
52 Flush stdin and then as the question.
53
54 Parameters
55 question (str) – String to ask
56
57 Returns
58 User string
59
60 Return type
61 str
62
63 static get_list_of_config(package)
64 Get all files marked as config in package
65
66 Parameters
67 package (rpm.hdr) – RPM Header of package
68
69 Returns
70 Strings list of files marked as config in package
71
72 Return type
73 list
74
75 static is_broken_symlink(file1)
76 Returns true if file is broken symlink. False otherwise.
77
78 run() Main function to proceed
79
80 show_diff(file1, file2)
81 Show differences between two files.
82
83 Parameters
84
85 · file1 (str) – Path to first file
86
87 · file2 (str) – Path to second file
88
89 · genindex
90
91 · modindex
92
93 · search
94
96 Miroslav Suchý, Igor Gnatenko
97
99 2015, Miroslav Suchý, Igor Gnatenko
100
101
102
103
1041.0.6 Feb 02, 2019 RPMCONF(3)