Reputation: 45
I want to install only vi in my Ubuntu box. I don't want to install the complete vim package which includes vi. I am trying to reduce the image size of my OS including all the packages so that I have more space to install other packages.
I am open to look into other lightweight text-editor alternatives also but it would be better if I stick with vi.
Upvotes: 3
Views: 8587
Reputation: 17537
Busybox contains a light vi implementation. I think you can symlink /usr/bin/vi -> /bin/busybox
or wherever busybox resides in Ubuntu systems. At least this is on my gentoo:
(~) file `which vi`
/usr/bin/vi: symbolic link to ../../bin/busybox
On Ubuntu (16&18 at least) symlink with: ln -s /bin/busybox /bin/vi
If busybox is not installed already it has its own package: apt install busybox
Upvotes: 1
Reputation: 631
You can install vim-tiny package to install vi without vim. Please run the command:
sudo apt-get install vim-tiny
Upvotes: 3
Reputation: 196781
If you really want vi
you can find it here: http://ex-vi.sourceforge.net/
Upvotes: 1