(It seems my previous message didn't send properly...) On 22/07/22 10:24PM, Fabio Valentini wrote: > the script that determines leaf packages in the Rust SIG Can you provide a link to this? > $ (dnf repoquery --whatrequires pcre ; dnf repoquery --whatrequires > pcre-cpp ; dnf repoquery --whatrequires pcre-devel ; dnf repoquery > --whatrequires pcre-static ; dnf repoquery --whatrequires pcre-tools ; > dnf repoquery --whatrequires pcre-utf16 ; dnf repoquery --whatrequires > pcre-utf32) | sort | uniq | grep src It's actually possible to pass --whatrequires mutliple times with all of the dependencies, instead of running multiple queries. e.g.: sudo dnf repoquery --whatrequires pcre --whatrequires pcre-cpp --whatrequires pcre-devel --whatrequires pcre-static --whatrequires pcre-tools --whatrequires pcre-utf16 --repo=rawhide{,-source} -q | grep '\.src$' | sort | uniq This is quite a bit faster. I only just recently learned this, so I thought I'd pass it on :). -- Thanks, Maxwell G (@gotmax23) Pronouns: He/Him/His
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure