Why does sudo depend on vi?

4

1

the package sudo-1.8.15-2.fc23.x86_64 in fedora 23 depends on vi, as attested by:

$ rpm -qR sudo | grep vi /usr/bin/vi

Why? Is it a mistake on the side of the package maintainer? This dependency causes at least one bug in fedora 23.

I'm running fedora 23, as attested by:

uname -a Linux localhost.localdomain 4.2.3-300.fc23.x86_64 #1 SMP Mon Oct 5 15:42:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Adam Kurkiewicz

Posted 2016-06-14T15:38:50.183

Reputation: 227

2Probably because visudo and sudoedit by default uses vi. I am not sure how the bug report you linked is relevant though, since vi != vim. – Tom Yan – 2016-06-14T15:42:32.693

@TomYan dnf removes sudo when user executes sudo dnf remove vim-minimal. That's probably a bug with dnf. – Adam Kurkiewicz – 2016-06-14T16:21:54.390

Answers

5

Because visudo is using vi as a default editor.

Jakuje

Posted 2016-06-14T15:38:50.183

Reputation: 7 981