linuxʹÓÃyum×°ÖÃjdkµÄĿ¼ÔÚÄÄ
linuxʹÓÃyumÏÂÁî×°ÖÃjdkʱ£¬×°ÖÃĿ¼ÊÇÓɲÙ×÷ϵͳ°ü¹ÜÀíÆ÷¾öÒéµÄ£¬²éÕҰ취Ϊ£º1¡¢·¿ªÖնˣ»2¡¢ÔËÐС°rpm -ql¡±ÏÂÁ½«ÏÔʾjdk×°ÖõÄËùÓÐÎļþºÍĿ¼ÁÐ±í£¬ÆäÖаüÀ¨×°Ö÷¾¶¡£
±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£
ÔÚʹÓÃyumÏÂÁî×°ÖÃJDKʱ£¬×°ÖÃĿ¼ÊÇÓɲÙ×÷ϵͳ°ü¹ÜÀíÆ÷¾öÒéµÄ£¬²¢²»ÊÇÀο¿µÄ¡£¹ØÓÚ»ùÓÚ Red Hat »ò CentOS µÄ¿¯Ðа棬yum»á½«JDK×°Öõ½/usr/java/Ŀ¼Ï¡£ÏêϸµÄ×°Ö÷¾¶¿ÉÄÜÒòLinux¿¯ÐаæºÍJDK°æ±¾¶øÓÐËù²î±ð¡£
ÈôÊÇҪȷ¶¨JDKµÄ×°Ö÷¾¶£¬¿ÉÒÔͨ¹ýÒÔÏ°취²éÕÒ£º
1¡¢·¿ªÖնˡ£
2¡¢ÔËÐÐÒÔÏÂÏÂÁîÀ´²éÕÒJDK×°Ö÷¾¶£º
rpm -ql <jdk-package-name>
µÇ¼ºó¸´ÖÆ
ÊÇͨ¹ýyumÏÂÁî×°ÖÃJDKʱָ¶¨µÄÈí¼þ°üÃû³Æ¡£ÀýÈ磬ÈôÊÇÄãʹÓõÄÊÇOpenJDK 11£¬Èí¼þ°üÃû³Æ¿ÉÄÜÊÇjava-11-openjdk¡£ÔËÐÐÉÏÊöÏÂÁîºó£¬½«ÏÔʾJDK×°ÖõÄËùÓÐÎļþºÍĿ¼ÁÐ±í£¬ÆäÖаüÀ¨×°Ö÷¾¶¡£
Çë×¢ÖØ£¬ÈôÊÇÄãÊÖ¶¯´ÓOracle¹ÙÍøÏÂÔز¢×°ÖÃJDK£¬×°Ö÷¾¶¿ÉÄÜÓëyum°ü¹ÜÀíÆ÷×°ÖõIJî±ð¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÄãÐèÒªÉó²éÄãÏÂÔصÄJDK×°ÖóÌÐòµÄÎĵµ»òÏà¹Ø˵Ã÷À´È·¶¨ËüµÄ×°Ö÷¾¶¡£
ÒÔÉϾÍÊÇlinuxʹÓÃyum×°ÖÃjdkµÄĿ¼ÔÚÄĵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡