Linux apt-get -h

中文Wiki:http://zh.wikipedia.org/wiki/%E9%AB%98%E7%BA%A7%E5%8C%85%E8%A3%85%E5%B7%A5%E5%85%B7

Ubuntu中文Wiki:http://wiki.ubuntu.org.cn/Apt-get%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#.E6.8F.90.E9.AB.98.E5.91.BD.E4.BB.A4.E8.A1.8C.E6.96.B9.E5.BC.8F.E4.B8.8B.E7.9A.84.E5.B7.A5.E4.BD.9C.E6.95.88.E7.8E.87

中文意译:

用法:apt-get [选项] 命令
       apt-get [选项] install|remove pkg1 [pkg2 ...]
       apt-get [选项] source pkg1 [pkg2 ...]

apt-get是一个基于命令行模式的简单的安装包下载和管理工具。是更新和安装时使用最频繁的命令。

命令:
   update - 检索新的软件包列表
   upgrade - 跟新一个软件
   install - 安装新软件 (pkg是libc6不是libc6.deb)
   remove - 删除软件
   autoremove - 自动删除所有不再需要的依赖包
   purge - 删除软件和配置文件
   source - 下载源代码
   build-dep - 下载编译软件所需要的依赖包
   dist-upgrade - 升级到最新的发行版, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - 清理下载文件
   autoclean - 清理旧的下载文件
   check - 检查是否有损坏的依赖包
   markauto - 自动安装软件
   unmarkauto - 手动安装软件
   changelog - 下载并显示软件的更新日志
   download - 下载二进制包到当前目录

选项:
  -h  这个帮助文档.
  -q  输出日志 - 没有进度指示器
  -qq 只输出错误提示
  -d  仅下载 - 不安装或解压文件
  -s  不执行. 模拟执行命令
  -y  所有问题默认回答Yes并且不提示
  -f  试图修复系统中损坏的依赖包
  -m  无法找到文件时仍然继续
  -u  显示升级包列表
  -b  下载并编译
  -V  显示详细的版本号
  -c=? 读取配置文件
  -o=? 设置一个配置选项的值, 例如 -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.

英文原文:

Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
   install - Install new packages (pkg is libc6 not libc6.deb)
   remove - Remove packages
   autoremove - Remove automatically all unused packages
   purge - Remove packages and config files
   source - Download source archives
   build-dep - Configure build-dependencies for source packages
   dist-upgrade - Distribution upgrade, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files
   check - Verify that there are no broken dependencies
   markauto - Mark the given packages as automatically installed
   unmarkauto - Mark the given packages as manually installed
   changelog - Download and display the changelog for the given package
   download - Download the binary package into the current directory

Options:
  -h  This help text.
  -q  Loggable output - no progress indicator
  -qq No output except for errors
  -d  Download only - do NOT install or unpack archives
  -s  No-act. Perform ordering simulation
  -y  Assume Yes to all queries and do not prompt
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.

posted @ 2011-06-17 16:29  N//A  阅读(607)  评论(0)    收藏  举报