RPMCONF(3)
π NAME π
rpmconf β it's the Python interface for rpmconf, bestie. Yes, the whole vibe. π«Ά
Okay so real quick, the manual page header up top says rpmconf in section 3, and we're gonna fold that in right here: this is RPMCONF(3), the library-flavored side of rpmconf. The 3 means "library functions," iykyk. β¨
π¦ CONTENTS π¦
π class rpmconf.RpmConf(packages=None, clean=False, debug=False, selinux=False, diff=False, frontend=None, test=None, exclude=None, root=None, unattended=None)
Not me introducing the main character. π This is the class. All the defaults are right there in the signature, no cap.
πΈ Parameters
packages(list) β only go check the config files of these specific packages, bestie. Like a guest list but for configs. πclean(bool) β sniff out those orphaned.rpmnewand.rpmsavefiles and yeet them. π§Ήdebug(bool) β dry run, gorgeous. It just shows you which files would get deleted. Nothing actually happens. It's giving "preview mode." πselinux(bool) β shows you the SELinux context of the old file and the new file, side by side. Slay. π¦diff(bool) β non-interactive diff mode. Lowkey so useful for auditing configs, fr fr. πfrontend(str) β tells it which frontend to use for merging. You pick the vibe. β¨test(bool) β just checks whether there's actually some file to merge. That's it. That's the whole job. πexclude(listi) β list of directories that should be skipped entirely. Not today, directories. πroot(str) β defines an alternative installroot. Fancy. πunattended(str) β defines unattended mode. No humans needed, the program handles it. π€
π Variables
packagesβ list ofrpm.micleanβ booldiffβ boolfrontendβ strselinuxβ booldebugβ boolloggerβlogging.Loggerrootβ strunattendedβ str
β¨ static flush_input(question)
Flushes stdin and then asks the question. Very demure, very mindful. π
Parameters
question(str) β the string you wanna ask
Returns
The user string. Like, whatever they typed.
Return type
str
π get_list_of_config(package)
Gets all the files marked as config in a package. All of them. Every single one. π
Parameters
package(rpm.hdr) β the RPM Header of the package
Returns
A strings list of files marked as config in the package
Return type
list
π¦ static is_broken_symlink(file1)
Returns true if the file is a broken symlink. False otherwise. That's the entire plot. π
π₯ run()
Main function to proceed. Periodt. This is the one you actually call. π
πΈ show_diff(file1, file2)
Shows the differences between two files. Iconic behavior honestly.
Parameters
file1(str) β path to the first filefile2(str) β path to the second file
π§ Index π§
- Index
- Module Index
- Search Page
π AUTHOR π
Miroslav SuchΓ½, Igor Gnatenko β legends, honestly. π«Ά
π COPYRIGHT π
2015, Miroslav SuchΓ½, Igor Gnatenko
ok so that's the whole page, bestie, every last detail preserved, nothing skipped, we ate and left no crumbs. π
And for the cute sign-off: this was version 1.0.6, dated Sep 19, 2025, living in the rpmconf manual. Go forth and merge your configs responsibly. πβ¨π
π¦ where this page comes from
- fedora 43: python3-rpmconf 1.1.12-4.fc43 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms