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, unattended=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 au‐
29 dit 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 • unattended (str) – Defines unattended mode.
42
43 Variables
44
45 • packages – list of rpm.mi
46
47 • clean – bool
48
49 • diff – bool
50
51 • frontend – str
52
53 • selinux – bool
54
55 • debug – bool
56
57 • logger – logging.Logger
58
59 • root – str
60
61 • unattended – str
62
63 static flush_input(question)
64 Flush stdin and then as the question.
65
66 Parameters
67 question (str) – String to ask
68
69 Returns
70 User string
71
72 Return type
73 str
74
75 get_list_of_config(package)
76 Get all files marked as config in package
77
78 Parameters
79 package (rpm.hdr) – RPM Header of package
80
81 Returns
82 Strings list of files marked as config in package
83
84 Return type
85 list
86
87 static is_broken_symlink(file1)
88 Returns true if file is broken symlink. False otherwise.
89
90 run() Main function to proceed
91
92 show_diff(file1, file2)
93 Show differences between two files.
94
95 Parameters
96
97 • file1 (str) – Path to first file
98
99 • file2 (str) – Path to second file
100
101 • Index
102
103 • Module Index
104
105 • Search Page
106
108 Miroslav Suchý, Igor Gnatenko
109
111 2022, Miroslav Suchý, Igor Gnatenko
112
113
114
115
1161.0.6 Oct 10, 2022 RPMCONF(3)