Prevent APT from overwriting JCE jars

Posted by Doc on Ask Ubuntu See other posts from Ask Ubuntu or by Doc
Published on 2014-08-21T16:16:31Z Indexed on 2014/08/21 16:29 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

My server runs a Java application that requires I replace a few java library files with ones I downloaded on my own. This has to do with JCE security extensions and isn't really relevant to my question.

I've found that these library files tend to get overwritten by apt when it later updates my java package.

Is there a apt-friendly way of masking these specific files so apt won't touch them?

Potential Solutions

  1. I'm considering just removing the write flag from the files, though I'm expecting this will cause apt to spew its guts everywhere when it later tries to overwrite them?

  2. Perhaps there's a java custom library directory I don't know of, where I can park my files and they'll be loaded instead of the package's defaults?

  3. The last-resort option I'm considering is writing a cron job to periodically replace the files with my versions. I hate this option.

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about java