Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1839951 - shorter aliases for popular options (eg dnf i == dnf install)
Summary: shorter aliases for popular options (eg dnf i == dnf install)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 31
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-26 05:45 UTC by Marius Andreiana
Modified: 2020-11-29 01:25 UTC (History)
9 users (show)

Fixed In Version: dnf-4.4.2-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 06:41:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.