2009-11-28 74 views
1

在Ubuntu 9.10,我执行以下命令下载/安装下列库:如何卸载库在Ubuntu

sudo aptitude build-dep openjdk-6 

sudo aptitude install openjdk-6-jdk 

能否请你告诉我如何卸载我使用上述命令安装库。

回答

8
sudo apt-get remove openjdk-6-jdk 
+0

谢谢。但如何撤消'sudo aptitude build-dep openjdk-6'呢? – hap497 2009-11-28 07:07:01

+1

我相信apt已经足够聪明,能够正确处理代币。至少它通常会记下它们。你也可以'sudo apt-get autoremove ...'自动核对代价。 – mtvee 2009-11-28 07:17:16

2
sudo apt-get remove openjdk-6-jre-headless 
sudo apt-get autoremove 
+0

我运行sudo apt-get remove和apt-get autoremove,得到'package openjdk-7-jdk没有安装,所以没有删除' – janwen 2012-05-20 07:39:06

0

我跑

sudo apt-get remove and apt-get autoremove 

得到

Package openjdk-7-jdk is not installed, so not removed 

但我跑得

apt-cache search openjdk-6-jre 

得到

openjdk-6-dbg - Java runtime based on OpenJDK (debugging symbols) 
openjdk-6-demo - Java runtime based on OpenJDK (demos and examples) 
openjdk-6-doc - OpenJDK Development Kit (JDK) documentation 
openjdk-6-jdk - OpenJDK Development Kit (JDK) 
openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT 
openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) 
openjdk-6-jre-lib - OpenJDK Java runtime (architecture independent libraries) 
openjdk-6-source - OpenJDK Development Kit (JDK) source files 
icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM 
openjdk-6-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark 
openjdk-7-dbg - Java runtime based on OpenJDK (debugging symbols) 
openjdk-7-demo - Java runtime based on OpenJDK (demos and examples) 
openjdk-7-doc - OpenJDK Development Kit (JDK) documentation 
openjdk-7-jdk - OpenJDK Development Kit (JDK) 
openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT 
openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) 
openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries) 
openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark 
openjdk-7-source - OpenJDK Development Kit (JDK) source files