RPMCONF(3)

πŸ“¦
version 1.1.12 Β· 5 versions
, in fedora 43

πŸ’– 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 .rpmnew and .rpmsave files 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 of rpm.mi
  • clean β€” bool
  • diff β€” bool
  • frontend β€” str
  • selinux β€” bool
  • debug β€” bool
  • logger β€” logging.Logger
  • root β€” str
  • unattended β€” 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


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 file
  • file2 (str) β€” path to the second file

🧭 Index 🧭

  • Index
  • Module Index
  • Search Page

πŸ’– AUTHOR πŸ’–

Miroslav SuchΓ½, Igor Gnatenko β€” legends, honestly. 🫢


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