yum을 통한 Java 개발 및 설치

yum을 통한 Java 개발 및 설치

rpm을 설치 중입니다 -java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64.rpm

yum  localinstall java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64.rpm
Loaded plugins: langpacks
Examining java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64.rpm: 1:java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64
Marking java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-8.b10.el7_5 will be installed
--> Processing Dependency: java-1.8.0-openjdk(x86-64) = 1:1.8.0.171-8.b10.el7_5 for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64
HighAvailability                                                                                                                                                      | 4.3 kB  00:00:00
ResilientStorage                                                                                                                                                      | 4.3 kB  00:00:00
local                                                                                                                                                                 | 4.3 kB  00:00:00
--> Finished Dependency Resolution
Error: Package: 1:java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64 (/java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64)
           Requires: java-1.8.0-openjdk(x86-64) = 1:1.8.0.171-8.b10.el7_5
           Installed: 1:java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64 (@anaconda/7.5)
               java-1.8.0-openjdk(x86-64) = 1:1.8.0.161-2.b14.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

우리는 그것을 볼 수 있습니다

Requires: java-1.8.0-openjdk(x86-64) = 1:1.8.0.171-8.b10.el7_5

하지만 우리가 설치하고 싶은 것은 - java-1.8.0-openjdk-devel-1.8.0.171-8.b10.el7_5.x86_64.rpm입니다.

그렇다면 문제는 무엇입니까?

답변1

다음을 사용해 보세요:

--skip-broken 

또는

rpm -Va --nofiles --nodigest

관련 정보