Reputation: 3856
I'm using Ubuntu-14.04 I compiled vim myself (to add support for YouCompleteMe), and now when I execute apt-get dist-upgrade it overwrites my version of vim (and other dependent packages) and causes vim to stop working.
How can I upgrade everything, without ruining what I have compiled myself?
Upvotes: 2
Views: 332
Reputation: 72805
It's generally a good idea to keep things which you've compiled yourself in /usr/local/. Nothing from apt will be installed there so the stuff you've put in the directory will be safe from upgrades.
The other option is to pin the vim
package so that the upgrade will not install it (or any dependecies). This might work better if you apt-get source
the vim, build the .deb
, install it and then pin it rather than just overwriting /usr/bin/vim
with your own compile.
Upvotes: 1