Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active May 12, 2023 17:04
Show Gist options
  • Save ErykDarnowski/eaf569a6435a3f42905055540fbda157 to your computer and use it in GitHub Desktop.
Save ErykDarnowski/eaf569a6435a3f42905055540fbda157 to your computer and use it in GitHub Desktop.
What does Fedora's `rpm -E` do

What does Fedora's rpm -E do

According to the rpm man page, the --eval flag is used to print the macro expansion of an expression³. This means that when you use this flag with an expression, rpm will evaluate any macros present in the expression and print the result (you can see an example of this in the RPM Fusion repos' install commands).

Bing

Resources

(1) rpm(8): RPM Package Manager - Linux man page - die.net. https://linux.die.net/man/8/rpm.
(2) RPM Macros :: Fedora Docs. https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/.
(3) linux - strange rpm --eval command - Stack Overflow. https://stackoverflow.com/questions/47175191/strange-rpm-eval-command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment