Ubuntu下采用sudo apt-get install 包名,当无法确认具体名称时,可以采用:
sudo apt-cache search 关键字
关键字可以是包名中确认的几个字母,这样能列出包含关键字的所有包名。
@ubuntu:~$ sudo apt-cache search openjdk
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jdk-headless - Standard Java or Java compatible Development Kit (headless)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols)
.........................