Skip to content
This repository

DNF first support #407

Closed
wants to merge 1 commit into from

3 participants

FireWave Sorin Ionescu Lucy
FireWave

Just a copycat of yum module to dnf module. Mainly usefull for Fedora 19

Sorin Ionescu
Owner

Is DNF popular?

FireWave

Not yet but it will become very quickly. Now, it's an alternate to yum on Fedora18 (official release). But it will be by default on Fedora 19, which will be release by the end of april. RedHatEL will be the next. DNF is forked and part-recoded of yum.
Sorry I know it's a lazy patch!

Sorin Ionescu
Owner
Lucy
lucy commented

Do they suffer from the not-invented-here syndrome?

Yes.

FireWave

Retro-compatibility and great dep resolution. But ya, kind of not-invented-here syndrome

Sorin Ionescu
Owner

Will other RPM-based yum distributions switch to DNF as well?

Sorin Ionescu
Owner

Perhaps one RPM module is better than a bunch of modules that all deal with RPM packages?

Sorin Ionescu
Owner

I have read an article on Phoronix that says that dnf will be renamed to yum, and it will be the new yum version; so, this module might not be necessary.

Sorin Ionescu
Owner

I have also read that dnf stands for nothing, and it will be renamed to something other than yum. Anyway, dnf won't be adopted until Fedora 22; so, I'll be rejecting this pull request for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 28, 2013
FireWave firewavemtl DNF modules (s/yum/dnf/g) 076a5dc
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 57 additions and 0 deletions. Show diff stats Hide diff stats

  1. +29 0 modules/dnf/README.md
  2. +28 0 modules/dnf/init.zsh
29 modules/dnf/README.md
Source Rendered
... ... @@ -0,0 +1,29 @@
  1 +DNF
  2 +===
  3 +
  4 +Defines [dnf][1] aliases.
  5 +
  6 +Aliases
  7 +-------
  8 +
  9 + - `dnfc` removes package(s) and leaves.
  10 + - `dnfi` installs package(s).
  11 + - `dnfh` displays history.
  12 + - `dnfl` lists packages.
  13 + - `dnfL` lists installed packages.
  14 + - `dnfq` displays package information.
  15 + - `dnfr` removes package(s).
  16 + - `dnfs` searches for a package.
  17 + - `dnfu` updates packages.
  18 + - `dnfU` upgrates packages.
  19 +
  20 +Authors
  21 +-------
  22 +
  23 +*The authors of this module should be contacted via the [issue tracker][2].*
  24 +
  25 + - [Sorin Ionescu](https://github.com/sorin-ionescu)
  26 +
  27 +[1]: https://fedoraproject.org/wiki/Features/DNF
  28 +[2]: https://github.com/sorin-ionescu/prezto/issues
  29 +
28 modules/dnf/init.zsh
... ... @@ -0,0 +1,28 @@
  1 +#
  2 +# Defines dnf aliases.
  3 +#
  4 +# Authors:
  5 +# FireWave <firewave@free.fr>
  6 +# Sorin Ionescu <sorin.ionescu@gmail.com>
  7 +#
  8 +
  9 +# Return if requirements are not found.
  10 +if (( ! $+commands[dnf] )); then
  11 + return 1
  12 +fi
  13 +
  14 +#
  15 +# Aliases
  16 +#
  17 +
  18 +alias dnfc='sudo dnf clean all' # Cleans the cache.
  19 +alias dnfh='dnf history' # Displays history.
  20 +alias dnfi='sudo dnf install' # Installs package(s).
  21 +alias dnfl='dnf list' # Lists packages.
  22 +alias dnfL='dnf list installed' # Lists installed packages.
  23 +alias dnfq='dnf info' # Displays package information.
  24 +alias dnfr='sudo dnf remove' # Removes package(s).
  25 +alias dnfs='dnf search' # Searches for a package.
  26 +alias dnfu='sudo dnf update' # Updates packages.
  27 +alias dnfU='sudo dnf upgrade' # Upgrades packages.
  28 +

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.