1RPMCONF(3)                          rpmconf                         RPMCONF(3)
2
3
4

NAME

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
16packages  (list)  –  Check  only configuration files of
17                       given packages.
18
19clean (bool) – Find and  delete  orphaned  .rpmnew  and
20                       .rpmsave files.
21
22debug  (bool)  – Dry run. Just show which files will be
23                       deleted.
24
25selinux (bool) – Display SELinux context of old and new
26                       file.
27
28diff  (bool) – Non-interactive diff mode. Useful to au‐
29                       dit configs.
30
31frontend (str) – Define which frontend should  be  used
32                       for merging.
33
34test (bool) – Only test if there is some file to merge.
35
36exclude  (listi)  – List of directories which should be
37                       skipped.
38
39root (str) – Defines alternative installroot.
40
41unattended (str) – Defines unattended mode.
42
43              Variables
44
45packages list of rpm.mi
46
47clean bool
48
49diff bool
50
51frontend str
52
53selinux bool
54
55debug bool
56
57logger logging.Logger
58
59root str
60
61unattended 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
97file1 (str) – Path to first file
98
99file2 (str) – Path to second file
100
101Index
102
103Module Index
104
105Search Page
106

AUTHOR

108       Miroslav Suchý, Igor Gnatenko
109
111       2022, Miroslav Suchý, Igor Gnatenko
112
113
114
115
1161.0.6                            Oct 10, 2022                       RPMCONF(3)
Impressum