以安装JDK为例子:
(1) #sudo apt-cache search jdk
cacao-source - Source for CACAO, a Java virtual machine
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-builddep - Standard Java or Java compatible build dependencies
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
gcj-jdk - gcj and classpath development tools for Java(TM)
libcommons-lang-java - Extension of the java.lang package
libcommons-lang-java-doc - Extension of the java.lang package
libpg-java - Java database (JDBC) driver for PostgreSQL
libslf4j-java - Simple Logging Facade for Java
mauve - free test suite for the Java Class libraries
fakeroot-ng - Gives a fake root environment
freemind - Java Program for creating and viewing Mindmaps
japitools - Java API compatibility testing tools
java3ds-fileloader - Java3D 3DS FileLoader
libcommons-launcher-java - cross platform. java application launcher
libcommons-math-java - Java lightweight mathematics and statistics components
libcommons-math-java-doc - Java lightweight mathematics and statistics components - documentation
libhibernate-annotations-java - Hibernate Annotations
libhibernate-commons-annotations-java - Hibernate Commons Annotations
libicu4j-java - Library for unicode support and internalisation
libitext1-java - Java Library to generate PDF on the Fly
libjboss-aop-java - JBoss Aspect Oriented Programming (AOP) framework
libjboss-common-java - The JBoss Common Project
libjboss-marshalling-java - alternative serialization API
libjxp-java - Java template engine/script. processor
libnb-javaparser-java - Parser for the Java language which is good for use in tools
libpicocontainer-java - Java library implementing the Dependency Injection pattern
librxtx-java - Full Java CommAPI implementation
libtrove-java - high performance collections for java
libtrove-java-doc - high performance collections for java
libwagon-java - tools to manage Maven artifacts and deployment
mmake - Makefile generator for Java programs
substance - cross-platform. look & feel for Swing applications
substance-doc - cross-platform. look & feel for Swing applications - documentation
testng - testing framework for Java
usepackage - utility to manage environment variables from within dotfiles
jde - JDEE, Java Development Environment for Emacs(en)
gcj-4.4-jdk - gcj and classpath development tools for Java(TM)
icedtea-6-jre-cacao - Alternative JVM for OpenJDK, using Cacao
icedtea6-plugin - web browser plugin based on OpenJDK and IcedTea to execute Java applets
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
openoffice.org-gcj - office productivity suite -- Java libraries for GIJ
openjdk-6-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
openoffice.org - office productivity suite
visualvm - All-in-One Java Troubleshooting Tool
选择一个软件包下载安装
(2) #sudo apt-get install openjdk-6-jdk
下面 是 apt-get 相关命令列表