Why the blazes does OpenJDK get reinstalled constantly on my machine?!!

I go into Yast and mark all the openJDK stuff as TABOO - DO NOT INSTALL EVER!

Then every bloody time I run PackageKit to install ANYTHING AT ALL - it ALWAYS reinstalls OpenJDK!!

How can I blacklist openJDK and make it STICK?!

I’m already in a rage because it ALSO reinstalled Choqok, which I uninstalled because THAT POS doesn’t work either. And now I have to uninstall openJDK again!

Don’t use packagekit

Post result of

zypper ve

That’s with it not installed

On 2011-06-21 13:36, richardstevenhack wrote:
> I go into Yast and mark all the openJDK stuff as TABOO - DO NOT INSTALL
> EVER!
>
> Then every bloody time I run PackageKit to install ANYTHING AT ALL - it
> ALWAYS reinstalls OpenJDK!!
>
> How can I blacklist openJDK and make it STICK?!

You can not if you use packagekit. It is a known bug.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

You can add a package lock with zypper like that


su -
zypper al java-1_6_0-openjdk

this lock is as far as I remember strong enough to overcome the packagekit
bug, so that packagekit will respect it.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
ION | 3GB Ram

On 2011-06-21 15:41, martin_helm wrote:
> You can add a package lock with zypper like that
>


> su -
> zypper al java-1_6_0-openjdk
> 

> this lock is as far as I remember strong enough to overcome the packagekit
> bug, so that packagekit will respect it.

No, packagekit is known to delete such locks. That’s the bug.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> On 2011-06-21 15:41, martin_helm wrote:
>> You can add a package lock with zypper like that
>>


>> su -
>> zypper al java-1_6_0-openjdk
>> 

this lock is as far as I remember strong enough to overcome the
packagekit bug, so that packagekit will respect it.

No, packagekit is known to delete such locks. That’s the bug.

Not if you use


chattr +i /etc/zypp/locks

updates still work after that. Forgot to add that.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
ION | 3GB Ram

On 2011-06-21 22:14, martin_helm wrote:
>> No, packagekit is known to delete such locks. That’s the bug.
>> >
> Not if you use
>


> chattr +i /etc/zypp/locks
> 

> updates still work after that. Forgot to add that.

RIGHT! That’s a trick that blocks the bug. PK is then unable to change the
locks. Actually, nobody can.

Another trick can be done with apparmour.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)