Bug 1306057
Summary: | [UX] different behaviour of installonly in yum/dnf | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Trevor Cordes <trevor> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame, y9t7sypezp |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-1.1.8-1.fc24 dnf-1.1.8-1.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-13 07:21:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Trevor Cordes
2016-02-10 00:06:11 UTC
(In reply to Trevor Cordes from comment #0) ... > It's like my dnf.conf installonlypkgs setting > is overriding some default list of installonlypkgs? One would think my > installonlypkgs setting would *add* to whatever packages the system deems > install-only (like kernels). ... Apparently, the "installonlypkgs" option completely *replaces* the default list. The documentation should state that explicitly: $ man dnf.conf The default list appears to be configured here: $ grep kernel dnf-1.1.6/dnf/const.py.in INSTALLONLYPKGS=('kernel', 'installonlypkg(kernel)', 'installonlypkg(kernel-module)', (In reply to Steve from comment #1) ... > The default list appears to be configured here: ... Dnf is implemented in Python, so you can see the default list in your installed system: $ grep -n kernel /usr/lib/python*/site-packages/dnf/const.py I'm pretty sure yum didn't behave that way, as I never had this problem with yum (and I may be wrong but dnf is supposed to try to emulate yum behaviour as much as possible?). I guess we'll leave this bug open as a documentation bug? Or should the behaviour be changed back to the old yum way? Also, if you get a chance to check my bug #1199715 that would be great too! Ahh! Looks like it's the same source code setting! That list doesn't include kernel-PAE!! Can you check that bz and see if we can get that fixed now that we know if would be super easy! And why not add kernel-core to that list now too? (3 rpm's per kernel install total.) Thanks! I'm shocked I seem to be the only person in the world using kernel-PAE in Fedora for several years... Hi, Trevor. I'm not a developer, so I was simply providing some additional information found by reading the documentation and grepping the code. In addition to the documentation saying what the default installonlypkgs list contains, the dnf log file should also record the list. In any case, the installed installonly packages can be found with:
$ dnf repoquery --installonly # See: man dnf.plugin.repoquery
> ... dnf is supposed to try to emulate yum behaviour as much as possible?
See: man yum2dnf
(In reply to Steve from comment #4) ... > In addition to the documentation saying what the default installonlypkgs list > contains, the dnf log file should also record the list. ... The list can be obtained this way: $ dnf config-manager --dump | grep installonlypkgs installonlypkgs = ('kernel', 'installonlypkg(kernel)', 'installonlypkg(kernel-module)', 'installonlypkg(vm)') See: man dnf.plugin.config_manager Ok, we will document the difference and the rest of bugreport is tracked by #1308515. dnf-plugins-core-0.1.20-1.fc24 dnf-1.1.8-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5dae5d2add dnf-1.1.8-1.fc23 dnf-plugins-core-0.1.20-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ddeabfcfe6 dnf-1.1.8-1.fc24, dnf-plugins-core-0.1.20-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5dae5d2add dnf-1.1.8-1.fc24, dnf-plugins-core-0.1.20-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.8-1.fc23, dnf-plugins-core-0.1.20-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ddeabfcfe6 dnf-1.1.8-1.fc23, dnf-plugins-core-0.1.20-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |