Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #202453 > unrolled thread
| Started by | Shane Dev <devshane42@gmail.com> |
|---|---|
| First post | 2018-11-15 10:20 +0100 |
| Last post | 2018-11-15 16:20 +0100 |
| Articles | 10 — 8 participants |
Back to article view | Back to linux.debian.user
What is the best way to install vim 8.1 on stretch? Shane Dev <devshane42@gmail.com> - 2018-11-15 10:20 +0100
Re: What is the best way to install vim 8.1 on stretch? Brad Rogers <brad@fineby.me.uk> - 2018-11-15 10:40 +0100
Re: What is the best way to install vim 8.1 on stretch? john doe <johndoe65534@mail.com> - 2018-11-15 11:00 +0100
Re: What is the best way to install vim 8.1 on stretch? Michael Stone <mstone@debian.org> - 2018-11-15 16:00 +0100
Re: What is the best way to install vim 8.1 on stretch? Roberto C. Sánchez <roberto@debian.org> - 2018-11-15 14:50 +0100
Re: What is the best way to install vim 8.1 on stretch? Shane Dev <devshane42@gmail.com> - 2018-11-15 15:20 +0100
Re: What is the best way to install vim 8.1 on stretch? Dan Ritter <dsr@randomstring.org> - 2018-11-15 15:30 +0100
Re: What is the best way to install vim 8.1 on stretch? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-11-15 15:40 +0100
Re: What is the best way to install vim 8.1 on stretch? Roberto C. Sánchez <roberto@debian.org> - 2018-11-15 16:20 +0100
Re: What is the best way to install vim 8.1 on stretch? Jonathan Dowland <jmtd@debian.org> - 2018-11-15 16:20 +0100
| From | Shane Dev <devshane42@gmail.com> |
|---|---|
| Date | 2018-11-15 10:20 +0100 |
| Subject | What is the best way to install vim 8.1 on stretch? |
| Message-ID | <wUlYB-1vE-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello, I have a fresh install of Debian stretch including the relatively old vim 8. There is no vim version in stretch-backports. One solution is to download the latest source from vim.org and build it on my pc but then I would lose the benefits of apt package management. I could also add the testing repositories to my apt configuration files and install the vim from there. What is the recommended approach?
[toc] | [next] | [standalone]
| From | Brad Rogers <brad@fineby.me.uk> |
|---|---|
| Date | 2018-11-15 10:40 +0100 |
| Message-ID | <wUmhX-1CS-9@gated-at.bofh.it> |
| In reply to | #202453 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, 15 Nov 2018 10:14:58 +0100
Shane Dev <devshane42@gmail.com> wrote:
Hello Shane,
>download the latest source from vim.org and build it on my pc but then I
>would lose the benefits of apt package management.
It's possible to build your own .deb, and install using apt(itude) or
synaptic, thereby retaining package manager benefits. The 'deb-builder'
package may be of some use to you for this. Along with some online
tutorials found by searching for 'build your own deb package'.
--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"
I don't believe you have to be an idiot to get somewhere these days
Bombsite Boy - The Adverts
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2018-11-15 11:00 +0100 |
| Message-ID | <wUmBk-1Ko-7@gated-at.bofh.it> |
| In reply to | #202453 |
On 11/15/2018 10:14 AM, Shane Dev wrote: > Hello, > > I have a fresh install of Debian stretch including the relatively old vim > 8. There is no vim version in stretch-backports. One solution is to > download the latest source from vim.org and build it on my pc but then I > would lose the benefits of apt package management. I could also add the > testing repositories to my apt configuration files and install the vim from > there. What is the recommended approach? > Given that vim 8.1 is available in buster (1) you could use apt-pinning (2) to download it. https://packages.debian.org/search?suite=buster&keywords=vim https://wiki.debian.org/AptPreferences -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Michael Stone <mstone@debian.org> |
|---|---|
| Date | 2018-11-15 16:00 +0100 |
| Message-ID | <wUrhD-4K0-1@gated-at.bofh.it> |
| In reply to | #202455 |
On Thu, Nov 15, 2018 at 10:55:52AM +0100, john doe wrote: >Given that vim 8.1 is available in buster (1) you could use apt-pinning >(2) to download it. That is generally a horrible idea.
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-11-15 14:50 +0100 |
| Message-ID | <wUqbT-454-5@gated-at.bofh.it> |
| In reply to | #202453 |
On Thu, Nov 15, 2018 at 10:14:58AM +0100, Shane Dev wrote: > Hello, > I have a fresh install of Debian stretch including the relatively old vim > 8. There is no vim version in stretch-backports. One solution is to > download the latest source from [1]vim.org and build it on my pc but then > I would lose the benefits of apt package management. I could also add the > testing repositories to my apt configuration files and install the vim > from there. What is the recommended approach? > So, I can't offer a better suggestion than those already offered (rebuild from source package or install with pinning, though I would personally opt for rebuilding the package from buster). However, I am quite curious what new features are in vim 8.1 that would cause you to go to all the trouble. Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [next] | [standalone]
| From | Shane Dev <devshane42@gmail.com> |
|---|---|
| Date | 2018-11-15 15:20 +0100 |
| Message-ID | <wUqEV-4vt-1@gated-at.bofh.it> |
| In reply to | #202463 |
[Multipart message — attachments visible in raw view] — view raw
> > > So, I can't offer a better suggestion than those already offered > (rebuild from source package or install with pinning, though I would > personally opt for rebuilding the package from buster). However, I am > quite curious what new features are in vim 8.1 that would cause you to > go to all the trouble. > https://www.vim.org/vim-8.1-released.php - The main new feature of Vim 8.1 is support for running a terminal in a Vim window but I am having second thoughts after reading the dire warnings in https://wiki.debian.org/AptPreferences - <!> When pinning, you must ensure compatibility of packages by yourself since Debian does not guarantee it. Note that pinning is completely optional, and Debian does not encourage pinning without thorough consideration. /!\ Seriously, don't do this. Doing this will break Debian and leave you with a system that doesn't work and can't be fixed. Use Backports instead!
[toc] | [prev] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2018-11-15 15:30 +0100 |
| Message-ID | <wUqOB-4yQ-1@gated-at.bofh.it> |
| In reply to | #202466 |
Shane Dev wrote:
> >
> >
> > So, I can't offer a better suggestion than those already offered
> > (rebuild from source package or install with pinning, though I would
> > personally opt for rebuilding the package from buster). However, I am
> > quite curious what new features are in vim 8.1 that would cause you to
> > go to all the trouble.
> >
>
> https://www.vim.org/vim-8.1-released.php - The main new feature of Vim 8.1
> is support for running a terminal in a Vim window
>
> but I am having second thoughts after reading the dire warnings in
> https://wiki.debian.org/AptPreferences -
>
> <!> When pinning, you must ensure compatibility of packages by yourself
> since Debian does not guarantee it. Note that pinning is completely
> optional, and Debian does not encourage pinning without thorough
> consideration.
>
> /!\ Seriously, don't do this. Doing this will break Debian and leave you
> with a system that doesn't work and can't be fixed. Use Backports instead!
There are ways of using pinning safely, but they really aren't
obvious.
The most important bit is to understand the priority, which is
magic.
They are explained, at length, in man apt_preferences. The
highlights:
P >= 1000
causes a version to be installed even if this constitutes a downgrade of the package
990 <= P < 1000
causes a version to be installed even if it does not come from the target release, unless the installed version is more recent
500 <= P < 990
causes a version to be installed unless there is a version available belonging to the target release or the installed version is more recent
100 <= P < 500
causes a version to be installed unless there is a version available belonging to some other distribution or the installed version is more recent
0 < P < 100
causes a version to be installed only if there is no installed version of the package
P < 0
prevents the version from being installed
Overall, if you just want one package that's already in Debian?
Install the dependencies (build-dep), get the later package, and
see if you can rebuild it yourself. There will probably be a new
library or two.
-dsr-
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2018-11-15 15:40 +0100 |
| Message-ID | <wUqYi-4Ci-3@gated-at.bofh.it> |
| In reply to | #202467 |
> > /!\ Seriously, don't do this. Doing this will break Debian and leave you > > with a system that doesn't work and can't be fixed. Use Backports instead! IRC> /msg dpkg simple sid backport *dpkg* First, check for a backport on <debian-backports>. If unavailable: 1) Add a deb-src line for sid (not a deb line!); ask me about <deb-src sid> 2) enable debian-backports (see <bdo>) 3) aptitude update; aptitude install build-essential; aptitude build-dep packagename; apt-get -b source packagename; 4) install the resultant debs. To change compilation options, see <package recompile>; for versions newer than sid see <uupdate>.
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-11-15 16:20 +0100 |
| Message-ID | <wUrB0-57j-11@gated-at.bofh.it> |
| In reply to | #202466 |
On Thu, Nov 15, 2018 at 03:13:37PM +0100, Shane Dev wrote: > So, I can't offer a better suggestion than those already offered > (rebuild from source package or install with pinning, though I would > personally opt for rebuilding the package from buster). However, I am > quite curious what new features are in vim 8.1 that would cause you to > go to all the trouble. > > [1]https://www.vim.org/vim-8.1-released.php - The main new feature of Vim > 8.1 is support for running a terminal in a Vim window > but I am having second thoughts after reading the dire warnings in > [2]https://wiki.debian.org/AptPreferences - > <!> When pinning, you must ensure compatibility of packages by yourself > since Debian does not guarantee it. Note that pinning is completely > optional, and Debian does not encourage pinning without thorough > consideration. > /!\ Seriously, don't do this. Doing this will break Debian and leave you > with a system that doesn't work and can't be fixed. Use Backports instead! > Rebuilding from source is fairly straightforward, so I would recommend that approach over pinning. Here is an article I wrote that explains the process: http://www.connexer.com/articles/debcustomize Lots of other HOWTOs out there as well, I just know that the process I documented in the article works well for me. Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [next] | [standalone]
| From | Jonathan Dowland <jmtd@debian.org> |
|---|---|
| Date | 2018-11-15 16:20 +0100 |
| Message-ID | <wUrB0-57j-19@gated-at.bofh.it> |
| In reply to | #202466 |
On Thu, Nov 15, 2018 at 03:13:37PM +0100, Shane Dev wrote:
>https://www.vim.org/vim-8.1-released.php - The main new feature of Vim 8.1
>is support for running a terminal in a Vim window
The neovim in stretch has this feature. It might be worth giving that a
look. I have the following in ~/.config/nvim/init.vim, which instructs
it to use my existing ~/.vim configuration
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vim/vimrc
I can therefore try out neovim alongside vim. Although I haven't really
spent much time in nvim at all yet.
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄⠀⠀⠀⠀ Please do not CC me, I am subscribed to the list.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web