Running Ubuntu 18.04 on x64.
For one particular package, namely Vim/Gvim, there are a few custom files that I install in one of the directories (specifically, the "syntax" directory). I have found that when I do the usual update/upgrade thing, and a new version of the package gets installed, it over-writes my custom file.
Took me a while to figure out why my syntax highlighting was no longer working as before. Would (obviously) like to take some steps to make sure this doesn't happen again the next time the package is upgraded.
Seems to me to boil down to 3 possibilities:
Make the file in question immutable (with chattr). This is the first thing I thought of and is, alas, brute force, but the question then becomes: Would this cause the upgrade process to get confused and space out? (Note; This is the question I really want to hear from the community about)
Is there some way in the apt/apt-get/etc ecosystem to mark a file as not-to-be-changed? Not a whole package, mind you (I know how to do that with apt-mark), but just one single file.
Given that we're talking about Vim, I think it is actually possible to put local versions of the syntax files in your home directory, under ~/.vim - but the details escape me at the moment and I'd rather not do it this way if possible.
0 Answers