Editing WITH vi editor
To edit /etc/yum.conf with vi, run:
sudo vi /etc/yum.conf
- Press
ito enter insert mode and make changes. - Press
Esc, then type:wqand pressEnterto save and exit. - To exit without saving, use
:q!.
To edit /etc/yum.conf with vi, run:
sudo vi /etc/yum.conf
i to enter insert mode and make changes.Esc, then type :wq and press Enter to save and exit.:q!.