Bug 963343
Summary: | drop deprecated aliases | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rahul Sundaram <metherid> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | akozumpl, pmatilai |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-23 05:58:19 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
Rahul Sundaram
2013-05-15 17:23:44 UTC
It is usually a mistake to have aliases in the first place, that is true, and DNF is in the process of removing them. I'll think about a strategy to start displaying deprecation warnings so people can migrate their scripts and learn the only spellings. I'm however going to keep the 'erase' and 'uprade' spellings preferred and deprecate the other ones. there is a quantitative way to look at this beyond personal preferences: In google searches, yum remove About 9,300,000 results (0.22 seconds) yum erase About 573,000 results (0.21 seconds) yum update About 18,000,000 results (0.42 seconds) yum upgrade About 3,110,000 results (0.27 seconds) Summary: yum update beats yum upgrade yum remove beats yum erase FWIW, I dont think I even knew yum has an "erase" command, and always use "update" instead of "upgrade". The above figures match my gut feeling of "remove" and "update" being by far the more commonly used variants in 3rd party documentation and mailing list discussions. OTOH "upgrade" does pair better with "downgrade" than the "update" variant. Right, 'upgrade' resembles 'downgrade'. And rpm itself calls it's '-U' command 'upgrade'. Same for 'erase'. So for those users familiar with RPM it will make more sense. The rest of them will see the deprecation warnings. I am not going to drop 'update' and 'remove' any time soon and I still aim for a high degree of CLI compatibility and this particular case is easy to retain. Rpm's use of "erase" is the oddball case, practically everything else out there uses the term "remove": apt, dpkg, zypper, urpmi, smartpm... even Windows has "Add/Remove software". I'd suggest keeping "remove" and axing "erase" instead and never mind what rpm itself calls it. This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle. Changing version to '20'. More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20 any update on this? This is not something considered a problem by wider user base or by the team, closing. I am not sure you can speak on behalf of the wider user base Ales. There certainly has been a number of threads over the years expressing confusion over aliases - ex: what is the difference between update and upgrade? Before dnf becomes default, I would have expected some amount of cleanup of whatever aliases are deemed deprecated. |