Bug 1839951

Summary: shorter aliases for popular options (eg dnf i == dnf install)
Product: [Fedora] Fedora Reporter: Marius Andreiana <marius.andreiana>
Component: dnfAssignee: rpm-software-management
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 31CC: dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-4.4.2-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-26 06:41:39 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 Marius Andreiana 2020-05-26 05:45:36 UTC
In order to save user's time when using dnf from command line often, please provide short alternatives to popular command options, similar to npm package manager:

i install 
up upgrade
r remove
ls list

One could then write
dnf i ruby

which would be the equivalent of

dnf install ruby


Thanks!

Comment 1 Pavla Kratochvilova 2020-05-26 06:03:51 UTC
There already are some command aliases defined, for example:

in install
rm remove
up upgrade
dg downgrade
rq repoquery

It was added in this commit: https://github.com/rpm-software-management/dnf/commit/da52d0ee8ec53fc67477a448ef9da73e32ce2cf2

You can also define your own aliases using the alias command.

Comment 2 Marius Andreiana 2020-05-26 06:41:39 UTC
Thanks Pavla, that's great! I searched but didn't find these in dnf help.

Would be great to add 'ls' too.

*** This bug has been marked as a duplicate of bug 1634232 ***

Comment 3 Pavla Kratochvilova 2020-05-27 11:39:12 UTC
I made PR to add these aliases at least into documentation: https://github.com/rpm-software-management/dnf/pull/1629

Comment 4 Fedora Update System 2020-11-27 15:45:42 UTC
FEDORA-2020-210ee4a384 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-210ee4a384

Comment 5 Fedora Update System 2020-11-28 02:55:53 UTC
FEDORA-2020-210ee4a384 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-210ee4a384`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-210ee4a384

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-11-29 01:25:43 UTC
FEDORA-2020-210ee4a384 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.