Skip to content

Debian / Ubuntu build guide #25

@kajukenbo

Description

@kajukenbo

I will post this here in case it is of use to someone.
Feel free to move or purge it as you think appropriate ~

cd $HOME/Downloads

curl -LO https://github.com/johnsonjh/OpenVi/releases/latest
va=$( grep "Release OpenVi [0-9]" latest | sed '1!d' | awk '{ if ($3 ~ "[0-9]") { print $3 } else { next }}' )
# https://github.com/johnsonjh/OpenVi/releases/tag/7.3.22
vb=$( awk -F';' '/\/releases\/tag/ { print }' latest | sed 's/.*http/http/; s/\&quot.*//' |  grep -v -i assets | grep ^http | sort -u )

echo $va
echo $vb

# https://github.com/johnsonjh/OpenVi/archive/refs/tags/7.3.22.tar.gz
curl -LO https://github.com/johnsonjh/OpenVi/archive/refs/tags/"$va".tar.gz

tar -zxvf "$va".tar.gz
cd OpenVi-"$va"
ls -l

sudo apt -y install libncurses-dev gcc make
sudo env PREFIX=/usr/local make install

sudo update-alternatives --install /usr/bin/vi vi /usr/local/bin/ovi 0
sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/ovi 0
sudo update-alternatives --install /usr/bin/view view /usr/local/bin/oview 0
sudo update-alternatives --install /usr/bin/ex ex /usr/local/bin/oex 0

sudo update-alternatives --set vi /usr/local/bin/ovi
sudo update-alternatives --set editor /usr/local/bin/ovi
sudo update-alternatives --set view /usr/local/bin/oview
sudo update-alternatives --set ex /usr/local/bin/oex

#sudo apt -y remove nvi nvi-doc vim* nano*

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions