How to stop apt-get from installing OpenJDK?

Dick Dowdell dick.dowdell at gmail.com
Mon Oct 22 23:14:12 UTC 2012


On Mon, Oct 22, 2012 at 6:52 PM, jeremy p <athomewithagroovebox at gmail.com>wrote:

> So, any advice for installing Oracle Java 1.7.0_03 in a way that is
> friendly to apt-get?  It has been mandated that I absolutely must use that
> build.
>
> --Jeremy
>
>
> On Mon, Oct 22, 2012 at 3:25 PM, Rashkae <ubuntu at tigershaunt.com> wrote:
>
>> On 10/22/2012 06:21 PM, Rashkae wrote:
>>
>>> On 10/22/2012 05:46 PM, jeremy p wrote:
>>>
>>
>>
>>> Note: non of this is tested by me, so I'm just replying 'in theory.'
>>>
>>>
>> Probably best to ignore everything I wrote below that.  I had reading
>> failure and thought you were trying to install Java 6, rather than 7.
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
>> mailman/listinfo/ubuntu-users<https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
jeremy,

I found this link very useful.  I need to use Java 7 as well.
http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7

This doesn't use apt-get but works perfectly and does not conflict with it.
 You do still need to be wary of other apt-get package installations that
will try to install OpenJDK, so it might be a good idea to save a file of
the update-alternatives statements you used.  I believe that
update-java-alternatives is specifically designed to assist in this
process, but I've never used it, myself.

Regards,
Dick Dowdell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20121022/a3c7c0bd/attachment.html>


More information about the ubuntu-users mailing list