DEV Community

Discussion on: Reverting your default editor to Vim in Fedora 33

Collapse
 
klohto profile image
Tomas Klohna

Run with sudo dnf install --allowerasing vim-default-editor to replace in-place

Collapse
 
averyfreeman profile image
Avery Freeman • Edited

Well, this is garbage. I just ripped out nano-default-editor with dnf remove -y, and look at everything it removed:

  bc-1.07.1-15.fc36.x86_64                                                      
  fpaste-0.4.2.0-3.fc36.noarch                                                  
  git-2.36.0-1.fc36.x86_64                                                      
  git-core-doc-2.36.0-1.fc36.noarch                                             
  jwhois-4.0-67.fc36.x86_64                                                     
  mtr-2:0.95-2.fc36.x86_64                                                      
  nano-default-editor-6.0-2.fc36.noarch                                         
  perl-Error-1:0.17029-8.fc36.noarch                                            
  perl-Git-2.36.0-1.fc36.noarch                                                 
  tcpdump-14:4.99.1-5.fc36.x86_64                                               
  time-1.9-18.fc36.x86_64                                                       
  toolbox-experience-0.0.99.3-4.fc36.x86_64                                     
  toolbox-support-0.0.99.3-4.fc36.x86_64                                        
  traceroute-3:2.1.0-15.fc36.x86_64                                             
  tree-2.0.1-2.fc36.x86_64                                                      
  words-3.0-39.fc36.noarch                                                      
Enter fullscreen mode Exit fullscreen mode

Then, I installed vim-default-editor by itself, and afterward separately tried to install toolbox-{experience,support}, and it said it required --allowerasing

And look what that does:

Downgraded:
  git-core-2.35.1-1.fc36.x86_64                                                 
Installed:
  bc-1.07.1-15.fc36.x86_64                                                      
  fpaste-0.4.2.0-3.fc36.noarch                                                  
  git-2.35.1-1.fc36.x86_64                                                      
  git-core-doc-2.35.1-1.fc36.noarch                                             
  jwhois-4.0-67.fc36.x86_64                                                     
  mtr-2:0.95-2.fc36.x86_64                                                      
  nano-default-editor-6.0-2.fc36.noarch                                         
  perl-Error-1:0.17029-8.fc36.noarch                                            
  perl-Git-2.35.1-1.fc36.noarch                                                 
  tcpdump-14:4.99.1-5.fc36.x86_64                                               
  time-1.9-18.fc36.x86_64                                                       
  toolbox-experience-0.0.99.3-4.fc36.x86_64                                     
  toolbox-support-0.0.99.3-4.fc36.x86_64                                        
  traceroute-3:2.1.0-15.fc36.x86_64                                             
  tree-2.0.1-2.fc36.x86_64                                                      
  words-3.0-39.fc36.noarch                                                      
Removed:
  vim-default-editor-2:8.2.4621-1.fc36.noarch 
Enter fullscreen mode Exit fullscreen mode

So I guess you can't use vim by default and toolbox at the same time in F36? That's beyond ridiculous.

Thread Thread
 
mauriziomarini profile image
Maurizio Marini

dnf install -y vim-default-editor --allowerasing
Last metadata expiration check: 3:10:41 ago on Sun 17 Jul 2022 06:14:27 PM CEST.

Dependencies resolved.

Package Architecture Version Repository Size

Installing:
vim-default-editor noarch 2:9.0.049-1.fc36 updates 20 k
Removing dependent packages:
nano-default-editor noarch 6.0-2.fc36 @fedora 514

Transaction Summary

Install 1 Package
Remove 1 Package

Total download size: 20 k
Downloading Packages:

vim-default-editor-9.0.049-1.fc36.noarch.rpm 88 kB/s | 20 kB 00:00

Total 33 kB/s | 20 kB 00:00

Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : vim-default-editor-2:9.0.049-1.fc36.noarch 1/2
Erasing : nano-default-editor-6.0-2.fc36.noarch 2/2
Verifying : vim-default-editor-2:9.0.049-1.fc36.noarch 1/2
Verifying : nano-default-editor-6.0-2.fc36.noarch 2/2

Installed:
vim-default-editor-2:9.0.049-1.fc36.noarch

Removed:
nano-default-editor-6.0-2.fc36.noarch

Complete!