Re: Change proposal for dnf in F41

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



V Thu, Sep 26, 2024 at 03:55:24PM +0200, Joachim Backes napsal(a):
> Hi,
> 
> For  some dnf editions, I was able to delete a package by "dnf erase
> package". But as of F41 Beta, I must use
> the dnf command: "dnf remove package".
> 
Since Fedora 41, Fedora uses DNF5. It's not a different edition, it's
a completely new program from DNF4 used in older Fedoras.

> 1. Why the command name "erase" is no more possible?

Because DNF5 simplified a user interface and removed many duplicate commands
retained only for compatibility.

"erase" was already a compatibility alias in DNF4 and was not even listed in
the usage help:

$ dnf --help | grep '^erase'
$ dnf --help | grep '^remove'
remove                    remove a package or packages from your system

While it's technically possible to add the "erase" alias to DNF5, DNF5 team,
in general, considers proliferating aliases hurmfull: It makes understanding
DNF commands as well as maintaining the code base more difficult.

> 2.  The F41 messages stll are of old style. As example if removing
> evolution, I get the messages:
> 
> 1/6] Prepare transaction                                                100%
> | 4.0   B/s |   5.0   B |  00m01s
> [2/6] *Erasing* evolution-0:3.54.0-1.fc41.x86_64                          
> 100% | 7.2 KiB/s |   1.3 KiB |  00m00s
> [3/6] *Erasing* evolution-langpacks-0:3.54.0-1.fc41.noarch                
> 100% | 697.0   B/s |  97.0   B |  00m00s
> [4/6] *Erasing* highlight-0:4.13-1.fc41.x86_64                            
> 100% | 1.8 KiB/s | 655.0   B |  00m00s
> [5/6] *Erasing* cmark-lib-0:0.30.3-6.fc41.x86_64                          
> 100% | 32.0   B/s |   6.0   B |  00m00s
> 
> and not
> 
> 1/6] Prepare transaction                                                100%
> | 4.0   B/s |   5.0   B |  00m01s
> [2/6] *Removing* evolution-0:3.54.0-1.fc41.x86_64                          
> 100% | 7.2 KiB/s |   1.3 KiB |  00m00s
> [3/6] *Removing* evolution-langpacks-0:3.54.0-1.fc41.noarch                
> 100% | 697.0   B/s |  97.0   B |  00m00s
> [4/6] *Removing* highlight-0:4.13-1.fc41.x86_64                            
> 100% | 1.8 KiB/s | 655.0   B |  00m00s
> [5/6] *Removing* cmark-lib-0:0.30.3-6.fc41.x86_64                          
> 100% | 32.0   B/s |   6.0   B |  00m00s
> 
> Proposition: Please exchange "Erasing" by "Removing"
> 
Good catch. It's indeed inconsistent. Even DNF4 use "remove" on other places:

# LC_ALL=en_US.UTF-8 dnf remove dontpanic
Dependencies resolved.
=======================================================================================================
 Package                 Architecture         Version                      Repository             Size
=======================================================================================================
Removing:
 dontpanic               x86_64               1.02-13.fc39                 @fedora                49 k

Transaction Summary
=======================================================================================================
Remove  1 Package

Freed space: 49 k
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                               1/1
  Erasing          : dontpanic-1.02-13.fc39.x86_64                                                 1/1
  Verifying        : dontpanic-1.02-13.fc39.x86_64                                                 1/1

Removed:
  dontpanic-1.02-13.fc39.x86_64


Maybe the reson for printing "Erasing" was to mimic rpm tool messaging.

I will try changing the transaction text to "Removing" in DNF5.

-- Petr

Attachment: signature.asc
Description: PGP signature

-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux