Am 16.11.2021 um 22:02 schrieb Robert Moskowitz
<rgm(a)htt-consult.com>:
On 11/16/21 15:01, Samuel Sieb wrote:
> On 11/16/21 10:18, Robert Moskowitz wrote:
>> F35 change from F32; may have occurred earlier.
>>
>> VI was sooo easy to use.
>>
>> Now I have to learn nano?
>
> I was using a debian or Ubuntu system and I ran "visudo". It took me a few
moments to figure out why I couldn't get out of it. I laughed at the irony of using
nano for *vi*sudo. But this is a good reminder to run "dnf install
vim-default-editor --allowerasing" on my newly installed Fedora systems to avoid the
same surprise there.
What is the difference between rpms:
vim-default-editor
and
default-editor
Zdenek Dohnal explained on server list:
The current solution depends on weak dependency system in DNF -
default-editor requires system-default-editor which both - vim-default-editor and
nano-default-editor - provides (*-default-editors conflicts with system-default-editor as
well to prevent both being installed at the same time).
Then if weak-deps are enabled - DNF sees 'Recommends:' in default-editor and
brings in nano-default-editor if there isn't any other *-default-editor already
installed. If there is, the transaction is not done, but it doesn't fail the whole
transaction -> upgrade-path is okay.