Best means to upgrade vim/gvim to 7.3 in Ubuntu 10.04?

I need to make use of Ubuntu 10.04 at the workplace, and also can not upgrade it. I'm making use of Vim/gVim 7.2.

I intend to upgrade it to 7.3 (with Python and also Ruby expansion assistance). Which is the most effective means? Add an access in sources.lists and also install a 7.3 vim/gvim plan from it, or construct from source? What negative aspects would certainly I have from each strategy?

2019-05-13 05:43:33
Source Share
Answers: 2

Build from resource. It will certainly be quicker. Attempting to both locate and also enable a database for a one - off install like that will certainly simply create you frustrations better down the line.

2019-05-17 19:49:07

The starting point to examine is if there is a backport, yet there isn't, which isn't shocking given that maverick has vim 7.2 too.

The next point to attempt is if a person is installed a repository with vim 7.3 plans someplace, ideally a PPA. There are several PPAs with vim, consisting of several with 7.3 (not an extensive checklist).

If you do not locate a binary plan anywhere or do not such as the ones you locate, the next most convenient action is to order the resource plan from natty, which has vim 7.3. Download and install the resource plan (.dsc, .debian.tar.gz and also .orig.tar.gz), after that run

apt-get install build-essential fakeroot
apt-get build-dep vim
dpkg-source -x vim_7.3.035+hg~8fdc12103333-1ubuntu2.dsc
cd vim-7.3.035+hg~8fdc12103333
# Edit debian/changelog to add an entry with your name and “recompiled for lucid”
dpkg-buildpackage -rfakeroot -us -uc -b -nc

If all works out, you'll have binary plans for your circulations. If you face missing out on dependences or collection mistakes, this needs to be addressed on an instance - by - instance basis.

The next point to attempt is to compile the upstream 7.3 resource with the product packaging from your Ubuntu variation. This offers you a wonderful and also tidy plan, yet it is a little bit extra entailed, so if you do not feel great in doing this without guidelines I advise you simply compile the upstream resource.

If you wind up assembling the upstream resource, by default, you'll wind up with the documents under /usr/local, and also it will not be very easy to uninstall them, or perhaps to recognize what you have. Whenever you install something without making use of the plan supervisor, I advise mounting right into a different directory site framework and also developing symbolic web links in /usr/local (or ~/usr or whatever). Stow behaves for that:

  • Install under /usr/local/stow (or ~/usr/stow or any place). With several programs, you can make use of something like ./configure --prefix=/usr/local/stow/vim-7.3. This will certainly place the major binary at /usr/local/stow/vim-7.3/bin, and more.
  • Run stow vim-7.3 from the /usr/local/stow directory site. This develops symbolic web links in the "regular" directory sites, as an example /usr/local/bin/vim -> ../../stow/vim-7.3/bin/vim.
  • If you ever before intend to uninstall this program, simply run stow -D vim-7.3 to remove the symbolic web links, and also delete /usr/local/stow/vim-7.3.

There is additionally xstow which is a comparable, yet extra effective programs (among its advantages is that it can manage problems).

2019-05-17 19:44:52