CentOS 7.8 remove JDK

CentOS 7.8 删除自带的 JDK

 

[zwf@localhost ~]$ rpm -qa | grep java
java-1.7.0-openjdk-headless-1.7.0.261-2.6.22.2.el7_8.x86_64
javapackages-tools-3.4.1-11.el7.noarch
java-1.8.0-openjdk-headless-1.8.0.282.b08-1.el7_9.x86_64
java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64
tzdata-java-2021a-1.el7.noarch
python-javapackages-3.4.1-11.el7.noarch
java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64
[zwf@localhost ~]$ 
[zwf@localhost ~]$ 
[zwf@localhost ~]$ 
[zwf@localhost ~]$ yum -y remove *java*
Loaded plugins: fastestmirror, langpacks
You need to be root to perform this command.
[zwf@localhost ~]$ 
[zwf@localhost ~]$ 
[zwf@localhost ~]$ 
[zwf@localhost ~]$ su root
Password: 
[root@localhost zwf]# yum -y remove *java*

 

[zwf@localhost Public]$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
[zwf@localhost Public]$ rpm -qa | grep java
javapackages-tools-3.4.1-11.el7.noarch
java-1.7.0-openjdk-headless-1.7.0.251-2.6.21.1.el7.x86_64
tzdata-java-2019c-1.el7.noarch
java-1.8.0-openjdk-1.8.0.242.b08-1.el7.x86_64
java-1.8.0-openjdk-headless-1.8.0.242.b08-1.el7.x86_64
python-javapackages-3.4.1-11.el7.noarch
java-1.7.0-openjdk-1.7.0.251-2.6.21.1.el7.x86_64
[zwf@localhost Public]$ yum -y remove *java*
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos,
              : subscription-manager
You need to be root to perform this command.
[zwf@localhost Public]$ su root
Password: 
[root@localhost Public]# yum -y remove *java*
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos,
              : subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.251-2.6.21.1.el7 will be erased
--> Processing Dependency: java >= 1.5 for package: jline-1.0-8.el7.noarch
---> Package java-1.7.0-openjdk-headless.x86_64 1:1.7.0.251-2.6.21.1.el7 will be erased
--> Processing Dependency: java-headless >= 1:1.6 for package: 1:libreoffice-core-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:libreoffice-ure-5.3.6.1-24.el7.x86_64
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.242.b08-1.el7 will be erased
--> Processing Dependency: java-1.8.0-openjdk for package: icedtea-web-1.7.1-2.el7_6.x86_64
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.242.b08-1.el7 will be erased
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be erased
--> Processing Dependency: jpackage-utils for package: tagsoup-1.2.1-8.el7.noarch
--> Processing Dependency: jpackage-utils >= 1.6 for package: tagsoup-1.2.1-8.el7.noarch
--> Processing Dependency: jpackage-utils for package: rhino-1.7R5-1.el7.noarch
--> Processing Dependency: jpackage-utils for package: rhino-1.7R5-1.el7.noarch
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be erased
---> Package tzdata-java.noarch 0:2019c-1.el7 will be erased
--> Running transaction check
---> Package icedtea-web.x86_64 0:1.7.1-2.el7_6 will be erased
---> Package jline.noarch 0:1.0-8.el7 will be erased
---> Package libreoffice-core.x86_64 1:5.3.6.1-24.el7 will be erased
--> Processing Dependency: libavmedialo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libbasegfxlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libclewlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libcomphelper.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libdbtoolslo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libdbtoolslo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libdrawinglayerlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libeditenglo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libeditenglo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libeditenglo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libeditenglo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libfilelo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libi18nutil.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libmsfilterlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libmsfilterlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libmsfilterlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libooxlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libooxlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libooxlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libopencllo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core for package: unoconv-0.6-7.el7.noarch
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-draw-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-langpack-en-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libreoffice-core(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-pyuno-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsaxlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsaxlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsaxlo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsaxlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsaxlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsblo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsblo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsfxlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsfxlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsfxlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsfxlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsotlo.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvllo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvllo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvllo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvllo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvtlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvtlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvtlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvtlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxcorelo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxcorelo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxcorelo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxcorelo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxlo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libsvxlo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libswlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtklo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtklo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtklo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtklo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libtllo.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libucbhelper.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libutllo.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvbahelperlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvbahelperlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-x11-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libvcllo.so()(64bit) for package: 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libwriterperfectlo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libwriterperfectlo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libwriterperfectlo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libwriterperfectlo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libxolo.so()(64bit) for package: 1:libreoffice-writer-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libxolo.so()(64bit) for package: 1:libreoffice-calc-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libxolo.so()(64bit) for package: 1:libreoffice-impress-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libxolo.so()(64bit) for package: 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64
--> Processing Dependency: libxolo.so()(64bit) for package: 1:libreoffice-math-5.3.6.1-24.el7.x86_64
---> Package libreoffice-ure.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package rhino.noarch 0:1.7R5-1.el7 will be erased
---> Package tagsoup.noarch 0:1.2.1-8.el7 will be erased
--> Running transaction check
---> Package libreoffice-calc.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-draw.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-graphicfilter.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-gtk2.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-gtk3.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-impress.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-langpack-en.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-math.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-pdfimport.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-pyuno.x86_64 1:5.3.6.1-24.el7 will be erased
--> Processing Dependency: libreoffice-pyuno(x86-64) = 1:5.3.6.1-24.el7 for package: 1:libreoffice-emailmerge-5.3.6.1-24.el7.x86_64
---> Package libreoffice-writer.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-x11.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package unoconv.noarch 0:0.6-7.el7 will be erased
--> Running transaction check
---> Package libreoffice-emailmerge.x86_64 1:5.3.6.1-24.el7 will be erased
--> Finished Dependency Resolution
--> Running transaction check
---> Package libreoffice-langpack-en.x86_64 1:5.3.6.1-24.el7 will be erased
---> Package libreoffice-langpack-en.x86_64 1:5.3.6.1-24.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch   Version                     Repository
                                                                           Size
================================================================================
Removing:
 java-1.7.0-openjdk          x86_64 1:1.7.0.251-2.6.21.1.el7    @anaconda 678 k
 java-1.7.0-openjdk-headless x86_64 1:1.7.0.251-2.6.21.1.el7    @anaconda  95 M
 java-1.8.0-openjdk          x86_64 1:1.8.0.242.b08-1.el7       @anaconda 646 k
 java-1.8.0-openjdk-headless x86_64 1:1.8.0.242.b08-1.el7       @anaconda 107 M
 javapackages-tools          noarch 3.4.1-11.el7                @anaconda 156 k
 libreoffice-langpack-en     x86_64 1:5.3.6.1-24.el7            @anaconda 0.0  
 python-javapackages         noarch 3.4.1-11.el7                @anaconda  65 k
 tzdata-java                 noarch 2019c-1.el7                 @anaconda 365 k
Removing for dependencies:
 icedtea-web                 x86_64 1.7.1-2.el7_6               @anaconda 2.3 M
 jline                       noarch 1.0-8.el7                   @anaconda  72 k
 libreoffice-calc            x86_64 1:5.3.6.1-24.el7            @anaconda  34 M
 libreoffice-core            x86_64 1:5.3.6.1-24.el7            @anaconda 243 M
 libreoffice-draw            x86_64 1:5.3.6.1-24.el7            @anaconda 2.2 M
 libreoffice-emailmerge      x86_64 1:5.3.6.1-24.el7            @anaconda  54 k
 libreoffice-graphicfilter   x86_64 1:5.3.6.1-24.el7            @anaconda 1.5 M
 libreoffice-gtk2            x86_64 1:5.3.6.1-24.el7            @anaconda 659 k
 libreoffice-gtk3            x86_64 1:5.3.6.1-24.el7            @anaconda 749 k
 libreoffice-impress         x86_64 1:5.3.6.1-24.el7            @anaconda 4.7 M
 libreoffice-math            x86_64 1:5.3.6.1-24.el7            @anaconda 3.7 M
 libreoffice-pdfimport       x86_64 1:5.3.6.1-24.el7            @anaconda 558 k
 libreoffice-pyuno           x86_64 1:5.3.6.1-24.el7            @anaconda 2.0 M
 libreoffice-ure             x86_64 1:5.3.6.1-24.el7            @anaconda 6.6 M
 libreoffice-writer          x86_64 1:5.3.6.1-24.el7            @anaconda  18 M
 libreoffice-x11             x86_64 1:5.3.6.1-24.el7            @anaconda 694 k
 rhino                       noarch 1.7R5-1.el7                 @anaconda 1.1 M
 tagsoup                     noarch 1.2.1-8.el7                 @anaconda 140 k
 unoconv                     noarch 0.6-7.el7                   @anaconda 196 k

Transaction Summary
================================================================================
Remove  8 Packages (+19 Dependent packages)

Installed size: 525 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : 1:libreoffice-math-5.3.6.1-24.el7.x86_64                    1/27 
  Erasing    : unoconv-0.6-7.el7.noarch                                    2/27 
  Erasing    : 1:libreoffice-calc-5.3.6.1-24.el7.x86_64                    3/27 
  Erasing    : 1:libreoffice-impress-5.3.6.1-24.el7.x86_64                 4/27 
  Erasing    : 1:libreoffice-draw-5.3.6.1-24.el7.x86_64                    5/27 
  Erasing    : 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64               6/27 
  Erasing    : 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64           7/27 
  Erasing    : icedtea-web-1.7.1-2.el7_6.x86_64                            8/27 
  Erasing    : rhino-1.7R5-1.el7.noarch                                    9/27 
  Erasing    : jline-1.0-8.el7.noarch                                     10/27 
  Erasing    : 1:libreoffice-emailmerge-5.3.6.1-24.el7.x86_64             11/27 
  Erasing    : tagsoup-1.2.1-8.el7.noarch                                 12/27 
  Erasing    : 1:libreoffice-writer-5.3.6.1-24.el7.x86_64                 13/27 
  Erasing    : 1:java-1.7.0-openjdk-1.7.0.251-2.6.21.1.el7.x86_64         14/27 
  Erasing    : 1:java-1.7.0-openjdk-headless-1.7.0.251-2.6.21.1.el7.x86   15/27 
  Erasing    : 1:libreoffice-pyuno-5.3.6.1-24.el7.x86_64                  16/27 
  Erasing    : 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64                   17/27 
  Erasing    : 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64                   18/27 
  Erasing    : 1:libreoffice-langpack-en-5.3.6.1-24.el7.x86_64            19/27 
  Erasing    : 1:libreoffice-x11-5.3.6.1-24.el7.x86_64                    20/27 
  Erasing    : 1:libreoffice-core-5.3.6.1-24.el7.x86_64                   21/27 
  Erasing    : 1:libreoffice-ure-5.3.6.1-24.el7.x86_64                    22/27 
  Erasing    : 1:java-1.8.0-openjdk-1.8.0.242.b08-1.el7.x86_64            23/27 
  Erasing    : 1:java-1.8.0-openjdk-headless-1.8.0.242.b08-1.el7.x86_64   24/27 
  Erasing    : javapackages-tools-3.4.1-11.el7.noarch                     25/27 
  Erasing    : python-javapackages-3.4.1-11.el7.noarch                    26/27 
  Erasing    : tzdata-java-2019c-1.el7.noarch                             27/27 
  Verifying  : 1:libreoffice-core-5.3.6.1-24.el7.x86_64                    1/27 
  Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.242.b08-1.el7.x86_64    2/27 
  Verifying  : 1:java-1.7.0-openjdk-1.7.0.251-2.6.21.1.el7.x86_64          3/27 
  Verifying  : 1:libreoffice-langpack-en-5.3.6.1-24.el7.x86_64             4/27 
  Verifying  : 1:libreoffice-x11-5.3.6.1-24.el7.x86_64                     5/27 
  Verifying  : tzdata-java-2019c-1.el7.noarch                              6/27 
  Verifying  : 1:libreoffice-gtk3-5.3.6.1-24.el7.x86_64                    7/27 
  Verifying  : python-javapackages-3.4.1-11.el7.noarch                     8/27 
  Verifying  : 1:libreoffice-ure-5.3.6.1-24.el7.x86_64                     9/27 
  Verifying  : 1:libreoffice-impress-5.3.6.1-24.el7.x86_64                10/27 
  Verifying  : 1:libreoffice-calc-5.3.6.1-24.el7.x86_64                   11/27 
  Verifying  : jline-1.0-8.el7.noarch                                     12/27 
  Verifying  : 1:libreoffice-pdfimport-5.3.6.1-24.el7.x86_64              13/27 
  Verifying  : rhino-1.7R5-1.el7.noarch                                   14/27 
  Verifying  : 1:libreoffice-math-5.3.6.1-24.el7.x86_64                   15/27 
  Verifying  : unoconv-0.6-7.el7.noarch                                   16/27 
  Verifying  : 1:libreoffice-writer-5.3.6.1-24.el7.x86_64                 17/27 
  Verifying  : 1:java-1.7.0-openjdk-headless-1.7.0.251-2.6.21.1.el7.x86   18/27 
  Verifying  : icedtea-web-1.7.1-2.el7_6.x86_64                           19/27 
  Verifying  : javapackages-tools-3.4.1-11.el7.noarch                     20/27 
  Verifying  : 1:libreoffice-draw-5.3.6.1-24.el7.x86_64                   21/27 
  Verifying  : 1:libreoffice-emailmerge-5.3.6.1-24.el7.x86_64             22/27 
  Verifying  : tagsoup-1.2.1-8.el7.noarch                                 23/27 
  Verifying  : 1:libreoffice-pyuno-5.3.6.1-24.el7.x86_64                  24/27 
  Verifying  : 1:java-1.8.0-openjdk-1.8.0.242.b08-1.el7.x86_64            25/27 
  Verifying  : 1:libreoffice-graphicfilter-5.3.6.1-24.el7.x86_64          26/27 
  Verifying  : 1:libreoffice-gtk2-5.3.6.1-24.el7.x86_64                   27/27 

Removed:
  java-1.7.0-openjdk.x86_64 1:1.7.0.251-2.6.21.1.el7                            
  java-1.7.0-openjdk-headless.x86_64 1:1.7.0.251-2.6.21.1.el7                   
  java-1.8.0-openjdk.x86_64 1:1.8.0.242.b08-1.el7                               
  java-1.8.0-openjdk-headless.x86_64 1:1.8.0.242.b08-1.el7                      
  javapackages-tools.noarch 0:3.4.1-11.el7                                      
  libreoffice-langpack-en.x86_64 1:5.3.6.1-24.el7                               
  python-javapackages.noarch 0:3.4.1-11.el7                                     
  tzdata-java.noarch 0:2019c-1.el7                                              

Dependency Removed:
  icedtea-web.x86_64 0:1.7.1-2.el7_6                                            
  jline.noarch 0:1.0-8.el7                                                      
  libreoffice-calc.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-core.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-draw.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-emailmerge.x86_64 1:5.3.6.1-24.el7                                
  libreoffice-graphicfilter.x86_64 1:5.3.6.1-24.el7                             
  libreoffice-gtk2.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-gtk3.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-impress.x86_64 1:5.3.6.1-24.el7                                   
  libreoffice-math.x86_64 1:5.3.6.1-24.el7                                      
  libreoffice-pdfimport.x86_64 1:5.3.6.1-24.el7                                 
  libreoffice-pyuno.x86_64 1:5.3.6.1-24.el7                                     
  libreoffice-ure.x86_64 1:5.3.6.1-24.el7                                       
  libreoffice-writer.x86_64 1:5.3.6.1-24.el7                                    
  libreoffice-x11.x86_64 1:5.3.6.1-24.el7                                       
  rhino.noarch 0:1.7R5-1.el7                                                    
  tagsoup.noarch 0:1.2.1-8.el7                                                  
  unoconv.noarch 0:0.6-7.el7                                                    

Complete!
[root@localhost Public]# rpm -qa | grep java
[root@localhost Public]# java -version
bash: java: command not found...
[root@localhost Public]# 

JDK install:

 

https://blog.csdn.net/spencer_tseng/article/details/114287509

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值