Skip to content

Instantly share code, notes, and snippets.

@noname2001
Created September 19, 2016 03:54
Show Gist options
  • Save noname2001/1bc5e27770f4082024a3ef1b432f004a to your computer and use it in GitHub Desktop.
Save noname2001/1bc5e27770f4082024a3ef1b432f004a to your computer and use it in GitHub Desktop.
Install vim / vimx 7.4 version on centos 6
reference: https://www.linuxsysadmintutorials.com/build-and-install-vim-74-on-centos-6-using-rpm.html
rpm -Uvh http://vault.centos.org/7.0.1406/os/Source/SPackages/vim-7.4.160-1.el7.src.rpm
cd ~/rpmbuild/SPECS
wget -O - https://gist.githubusercontent.com/rene00/897bc360210c2901d6d5/raw/ee34fb3880a8edb38930936aeca2a1ead7f02ef4/vim.spec-centos6-7.4.160-1.patch | patch -p0 vim.spec
sudo yum install -y ncurses-devel 'perl(ExtUtils::Embed)' libacl-devel autoconf gpm-devel ruby-devel ruby gtk2-devel gtk2-devel libSM-devel libXt-devel libXpm-devel python-devel desktop-file-utils
rpmbuild -ba vim.spec
cd ~/rpmbuild/RPMS/$(uname -p)
sudo rpm --force -ivh vim-filesystem....
sudo rpm --force -ivh vim-common....
sudo rpm --force -ivh vim-X11....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment