-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean dependencies for RPM #1457
Comments
I was just looking at how to do that, and I see that it is not yet implemented. I am in a situation that needs weak dependencies. |
😈 dump, +1 |
Weak dependencies would be a nice addition given the support for |
I'm interested in this as well |
This is already possible, but not obvious. When using the fpm CLI, include a Using the API, just add it to the rpm_package.attributes[:rpm_tag] = "Suggests: <CAPABILITY>" Instead of |
It is worth mentioning that if you want to use weak dependencies with an RPM repository you HAVE TO USE https://github.com/rpm-software-management/createrepo_c to create the repository. Otherwise weak dependencies will not work. Thanks to @gkralik I was able to build an rpm which recommends another rpm via fpm using
You can use
You can also query the --recommends from the repo:
If you get an empty list at this point, than the RPM repository was most likely created using the old python createrepo command instead of createrepo_c. This took me a couple of hours to figure out. Full fpm commands (Just for reference)
|
This feature is quite new, but will be very useful to have in the near future:
http://rpm.org/user_doc/boolean_dependencies.html
Weak dependencies (recommends and suggests) would also be nice to have:
http://rpm.org/user_doc/dependencies.html
The text was updated successfully, but these errors were encountered: