当我想删除openjdk时,它说tomcat也将被删除。
apt-get remove openjdk-6-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libcommons-pool-java libecj-java authbind libnss3 libjpeg-turbo8 libjpeg8 java-common libavahi-common-data libservlet3.0-java
libcups2 tzdata-java libnspr4 libavahi-client3 libcommons-collections3-java libavahi-common3 libnss3-1d
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
ca-certificates-java default-jre-headless icedtea-6-jre-cacao icedtea-6-jre-jamvm libcommons-dbcp-java libtomcat7-java
openjdk-6-jre-headless openjdk-6-jre-lib tomcat7 tomcat7-admin tomcat7-common
0 upgraded, 0 newly installed, 11 to remove and 50 not upgraded.
After this operation, 93.7 MB disk space will be freed.
Do you want to continue [Y/n]?
如何在不删除tomcat的情况下删除openjdk?
我的另一个建议是,我总是遇到deb-packaged java的问题。最后我可以在java环境中最高效地工作,如果我有一个完全没有java的linux,用oracle从原始java包下载扩展。
—
彼得