dnf builddep
as info only, not to install packages
#1662
Replies: 3 comments 3 replies
-
Hi Brian, If it's an RPM in the repository, you can query its build requirements with a command like If you only have the spec file, I think there currently isn't a way to get machine-readable output for that. You can try There will be improvements to the output soon with #1641, which should simplify it to just the transaction table on the stdout. If you would like a JSON output for the transaction table, we could plan to implement it with #867 in the future. |
Beta Was this translation helpful? Give feedback.
-
Allow me to provide more details on the usage of |
Beta Was this translation helpful? Give feedback.
-
You don't need dnf for that. It's an RPM thing, so use rpm:
|
Beta Was this translation helpful? Give feedback.
-
I wonder if there is any way to effect simply outputting an RPM specfiles's
BuildRequires:
, similar to howdnf builddep
works but without actually trying to install the packages, but rather just report on what they are?Beta Was this translation helpful? Give feedback.
All reactions