CREATE-FAKE-RPM(1)

πŸ“¦
version 5 Β· 4 versions
, in epel 10

πŸ’… create-fake-rpm β€” the girlies' guide to the create-fake-rpm manual page ✨

okay so bestie, buckle up πŸŽ€ this is the manual for create-fake-rpm, and honestly? it's giving "power tool that could absolutely ruin your day" energy. let's get into it πŸ’–


✨ NAME ✨

create-fake-rpm β€” generate fake (S)RPM. yes fr, that's the whole name. it does exactly what it says on the tin, no cap 🫢


🌸 SYNOPSIS 🌸

create-fake-rpm [--help] [--print-result] [--version=VERSION]
[--requires=PACKAGE] [--release=RELEASE] [--build] PACKAGE_NAME PROVIDES

πŸ¦‹ DESCRIPTION πŸ¦‹

so this script creates an empty RPM package to satisfy dependencies. that's the whole vibe. it's a placeholder, a decoy, a little stand-in guy 🧚

it's lowkey useful when you install some library/module/application manually β€” like, without having an RPM package for it. e.g., when you

pip install somepackage

and then some RPM package has Requires: python-somepackage, /usr/bin/rpm refuses to install that package, because python-somepackage is literally not present on your system. the RPMDB does not know what you know 😭 it's not psychic, bestie. so you can run:

create-fake-rpm --build python-somepackage python3dist(somepackage)

this creates the package fake-python-somepackage-0-0.noarch.rpm, which provides: "python-somepackage" and "python3dist(somepackage)". iconic. and you can install it using:

dnf install fake-python-somepackage-0-0.noarch.rpm

!!!! WARNING !!!! πŸ’€

this is a big gun. you can easily shot yourself in a leg. do not use this tool unless you know what you are doing. and if you do know what you are doing β€” then think twice before you use it. you can easily destroy your machine with this tool. like, actually destroy it. not me being dramatic, that's the manpage talking 🫢

πŸ’… OPTIONS πŸ’…

  • --version=VERSION β€” you can specify the version of your package. the default is 0.
  • --release=RELEASE β€” you can specify the RELEASE of your package. the default is 0.
  • --requires=PACKAGE β€” makes the resulting rpm require another one. super useful for compatibility cases where packages have different names. can be used multiple times πŸ”₯ (stack 'em up, bestie)
  • --build β€” creates an RPM package. without this option, only a SRC.RPM package will be created.
  • --print-result β€” just prints the resulting binary package. without this option, the full rpmbuild output is printed.

πŸ‘‘ SEE ALSO πŸ‘‘

rpmbuild(8) β€” go read that one too, it's the main character this whole thing leans on ⭐


πŸ“ BUGS πŸ“

if you experience some problem, please report it at: https://github.com/xsuchy/create-fake-rpm/issues

no gatekeeping, just open the issue πŸ™ˆ


🌈 AUTHOR 🌈

Miroslav SuchΓ½ <msuchy@redhat.com> β€” a real one, fr fr πŸ’œ


and that's the tea, bestie πŸŽ€ this page is from the Create Fake RPM manual, dated 07/17/2024 β€” go forth, build your fake packages, and please please please don't blow up your machine πŸ˜­πŸ’–

πŸ“¦ where this page comes from