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