-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fedora 22 defaults to dnf for package management #3201
Comments
I just tried this on an F22 VM and got the following (using chef-12.2.1)
You can install a
Anyways, seems like we really need to have this provider at some point. Hopefully this is helpful. |
@jordane We definitely would welcome the contribution. |
Fedora 22 was released yesterday. According to our supported platforms list, we have Fedora as a Tier 2 platform for "non-EOL releases" which at this time is Fedora 20 through 22. It would be dope if we supported DNF as a package provider. |
Properly supporting hawkey (the library under DNF) would allow us to bin the grotty yum-python script we carry around. My quick investigation suggests we should be able to use hawkey if it's available on everything from FC18, and probably RHEL 6/7 too. |
@thommay hawkey isn't readily available on RHEL/Centos 6, and isn't installed by default on 7. Properly supporting hawkey is definitely the right way to go, but I don't know if the old python script should be binned until Chef no longer supports RHEL/Centos 6. |
👍 on hawkey and ditching yum-dump.py |
Fwiw, to work around the error @ramereth posted,
Install the package 'yum' Should do the trick. |
Welp, I thought that would do the trick, and it worked on a few packages, but not all of them in my test recipes (build-essential, and a custom one). |
@jtimberman We have noticed the same thing. And we're working on a dnf_package provider at the moment. FWIW, and to help others who are going down the chef + dnf path: we have found a couple issues with the current yum_package provider and dnf's yum compatibility layer:
|
@joemiller I see the exact same thing with the Epoch. Thanks for starting on a dnf package provider - is that one for core chef, or as a cookbook? It should definitely be in core chef imo, with the provider lookup stuff that @lamont-granquist added for systemd detection. |
We're working on it as a cook for now but I'm sure we'll contribute it back On Mon, Jun 15, 2015 at 8:19 AM, Joshua Timberman notifications@github.com
|
Yer plan was to build up DNF support in this cookbook, get some confidence around it, then move the HWRP into Core. |
@jtimberman a not advised way to work around at the moment (we had to for some fedora machines) is to : dnf install yum (this actually installs yum-deprecated), rename yum to yum-dnf or whatever you wish, symbolic link yum to yum-deprecated (ok until dnf gets updated again, as i said a temp solution ). This will currently make most chef recipes work. as the yum-deprecated is supposed to be the copy of the real old yum. |
It should be reasonably straightforwards to patch the yum provider to use /usr/bin/yum-deprecated over /usr/bin/yum if it finds it on the system. |
Any further status updates on package supporting dnf under Fedora 22? We're unable to use Fedora 22 at work as we're reliant on Chef to setup machines for development. |
I merged the yum-deprecated workaround to the yum provider in #3774 |
Anyone working on |
We have a working dnf provider that we've been using in prod with fedora-22
for about two months now. It's implemented as a lib cook right now but
could be easily integrated into chef core.
At this point I think it's stable enough that it's worth opening up for
wider feedback. There could be a debate about how we implemented the
provider since it is different (but much simpler, in our opinion) than the
existing yum provider.
I'll confer w/ my colleagues about opening it up and then hopefully we can
make the repo public soon-ish.
I'm currently at the chef summit if anyone wants to find myself or jesse
(@spheromak) to chat more about it too.
|
@joemiller me @jordane are certainly interested in seeing that. We're both here too. |
https://github.com/pantheon-cookbooks/dnf Some TL;DR on the above ^^ cook:
We opened up the cook so others could see what approach we took and try it out if they're currently blocked on dnf support. We intend to submit a PR with the same code to chef core for further discussions about dnf support within chef. (hopefully within a week or two) |
@joemiller 🚀 🍰 thanks for this! I will check it out. I'm blocked on not having a |
👍 😄 |
Fedora staying at 21 until chef/chef#3201 is resolved
I'm on Fedora 23 and encountered the same issue. For the near term, I just installed yum (sudo dnf install yum) which didn't overwrite /usr/bin/yum with a true yum executable but installations via chef which employ yum seem to be working without warning/error for me. |
Fedora 22 is switching to a new package manager, dnf. They provide a legacy package (installed by default) which will provide an executable named
yum
, but there are a number of differences.As far as I can tell, most of the differences won't affect the yum provider, but I wanted to open an issue on this to increase awareness. I'm planning on writing a DNF provider in the near future, but if someone else gets to it first that is fine with me.
The text was updated successfully, but these errors were encountered: