RPMDEPS(1)

πŸ’– RPMDEPS(1) πŸ’–

okay bestie, so this is a page from the General Commands Manual and it's all about a lil tool called rpmdeps πŸŽ€ yes the name is giving "rpm + deps", you ate that guess, gold star ⭐


✨ NAME ✨

rpmdeps β€” generate RPM package dependencies πŸ¦‹


🌸 SYNOPSIS 🌸

rpmdeps <operation> [options]

rpmdeps <operation> [options] FILE ...

πŸ’… DESCRIPTION πŸ’…

so like, rpmdeps generates package dependencies for one or more files. where do the files come from? two options, bestie: either a list of filenames on the standard input, or straight up command line arguments. your choice, your vibe 🫢

okay important tea tho β€” rpmdeps is not normally invoked directly. like, that's not the moment. BUT. doing it anyway is genuinely useful for troubleshooting dependency generation and for developing brand new dependency generators πŸ‘‘ so it's giving "don't talk to me, I'm debugging."

btw you can find out where rpmdeps lives with:

rpm -E "%{_rpmconfigdir}"

and one more thing, no cap: the actual rpmdeps command is only used for automatic dependency generation in a legacy compatibility mode of rpmbuild(1). periodt.


🧚 OPERATIONS 🧚

pick your fighter, bestie β€” these are all the operations:

  • --alldeps β€” print all the dependencies. everything. the whole plate πŸ“
  • --conflicts β€” print the conflicts dependencies.
  • --enhances β€” print the enhances dependencies.
  • --obsoletes β€” print the obsoletes dependencies.
  • --orderwithrequires β€” print the orderwithrequires dependencies.
  • -P, --provides β€” print the provides dependencies.
  • --recommends β€” print the recommends dependencies.
  • -R, --requires β€” print the requires dependencies.
  • --suggests β€” print the suggests dependencies.
  • --supplements β€” print the supplements dependencies.

πŸŽ€ ARGUMENTS πŸŽ€

  • FILE β€” any regular file. that's it. any. regular. file. simple as πŸ’œ

🌈 OPTIONS 🌈

for the options that are common to all operations, go peek at rpm-common(8) β€” they live over there, not here, and we respect the split 😌


πŸ”₯ ENVIRONMENT πŸ”₯

  • RPM_BUILD_ROOT β€” the prefix path to strip out when generating dependencies based on actual paths. so like, it's the "okay ignore this part of the path" setting ✨

πŸ’€ EXIT STATUS πŸ’€

on success? 0 is returned. anything else? a nonzero failure code otherwise. classic. iconic. predictable. 😭


🌟 EXAMPLES 🌟

okay now the fun part, here's how you actually use it:

  1. rpmdeps --requires /bin/ls β€” outputs the automatic requires dependencies of the ls(1) binary. yes, ls. the little guy. and now you know what it needs 🐚
  2. find popt-1.19-build/BUILDROOT -type f | /usr/lib/rpm/rpmdeps -P β€” outputs the automatic provides of all files in the popt-1.19-build/BUILDROOT directory. pipe it, princess πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

rpm(8), rpmbuild(1), rpm-common(8)


and that's the whole page, bestie β€” you understood it, you're literally the main character of dependency generation now πŸ‘‘πŸ’–

this was RPM 6.1.0, dated 2026-08-20 β€” mwah, sending you a kiss on the forehead, go generate some deps πŸŽ€βœ¨

πŸ“¦ where this page comes from