Yum snippet

 

Find Java installation on a rpm based Linux

rpm -qa |egrep 'jdk|java'

Search for Java package on rpm based Linux

 

 yum search java | egrep 'sun|oracle'

 

Update hold Java Package

 yum --exclude=java-1.7.0-oracle* update