aptitude

Package 软件包管理器(Debian/Ubuntu).

语法

  aptitude   (选项)      (参数)
  aptitude [options...] autoclean
  aptitude [options...] clean
  aptitude [options...] forget-new
  aptitude [options...] keep-all
  aptitude [options...] update
  aptitude [options...] safe-upgrade
  aptitude [options...] changelog packages...
  aptitude [options...] full-upgrade packages...
  aptitude [options...] forbid-version packages...
  aptitude [options...] hold packages...
  aptitude [options...] install packages...
  aptitude [options...] markauto packages...
  aptitude [options...] purge packages...
  aptitude [options...] reinstall packages...
  aptitude [options...] remove packages...
  aptitude [options...] show packages...
  aptitude [options...] unhold packages...
  aptitude [options...] unmarkauto packages...
  aptitude [options...] build-dep packages...
  aptitude [options...] build-depends packages...
  aptitude extract-cache-subset output-directory packages...
  aptitude [options...] search patterns...
  aptitude [options...] add-user-tag tag packages...
  aptitude [options...] remove-user-tag tag packages...
  aptitude [options...] {why | why-not} [patterns...] package
  aptitude [-S fname] [-u | -i]
  aptitude help

选项

   -h:显示帮助信息;
   -d:仅下载软件包,不执行安装操作;
   -P:每一步操作都要求确认;
   -y:所有问题都回答“yes”;
   -v:显示附加信息;
   -u:启动时下载新的软件包列表。

实例

命令 作用
aptitude update 更新可用的包列表
aptitude upgrade 升级可用的包
aptitude dist-upgrade 将系统升级到新的发行版
aptitude install pkgname 安装包
aptitude remove pkgname 删除包
ptitude purge pkgname 删除包及其配置文件
aptitude search pkgname 搜索包
aptitude show pkgname 显示包的详细信息
aptitude clean 删除下载的包文件
aptitude autoclean 仅删除过期的包文件

aptitude 命令实例:

linux命令:aptitude show $PROGRAM | grep Vers Vers grep | $PROGRAM show aptitude aptitude show $PROGRAM | grep Versrootopen.com
linux命令:aptitude show $PROGRAM | grep Vers Vers grep | $PROGRAM show aptitude aptitude show $PROGRAM | grep Versrootopen.com
2018-05-04 10:24:48

linux命令:aptitude remove $(deborphan) $(deborphan) remove aptitude aptitude remove $(deborphan)rootopen.com
linux命令:aptitude remove $(deborphan) $(deborphan) remove aptitude aptitude remove $(deborphan)rootopen.com
2018-05-11 17:31:48

linux命令:aptitude install bash-completion ; source /etc/bash_completion /etc/bash_completion source ; bash-completion install aptitude aptitude install bash-completion ; source /etc/bash_completionrootopen.com
linux命令:aptitude install bash-completion ; source /etc/bash_completion /etc/bash_completion source ; bash-completion install aptitude aptitude install bash-completion ; source /etc/bash_completionrootopen.com
2018-05-27 04:31:48

linux命令:aptitude search NAME NAME search aptitude aptitude search NAMErootopen.com
linux命令:aptitude search NAME NAME search aptitude aptitude search NAMErootopen.com
2018-05-13 03:03:48

linux命令:aptitude moo moo aptitude aptitude moorootopen.com
linux命令:aptitude moo moo aptitude aptitude moorootopen.com
2018-05-09 20:49:48

linux命令:aptitude show packages_name packages_name show aptitude aptitude show packages_namerootopen.com
linux命令:aptitude show packages_name packages_name show aptitude aptitude show packages_namerootopen.com
2018-04-15 07:04:48

linux命令:aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4 4 -f " " -d cut | A" "i -v grep | '~i!~E' search aptitude aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4rootopen.com
linux命令:aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4 4 -f " " -d cut | A" "i -v grep | '~i!~E' search aptitude aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4rootopen.com
2018-02-24 19:21:48

linux命令:aptitude keep-all keep-all aptitude aptitude keep-allrootopen.com
linux命令:aptitude keep-all keep-all aptitude aptitude keep-allrootopen.com
2018-01-29 09:45:48

linux命令:aptitude -F '%p %v#' search <pattern> <pattern> search %v#' '%p -F aptitude aptitude -F '%p %v#' search <pattern>rootopen.com
linux命令:aptitude -F '%p %v#' search <pattern> <pattern> search %v#' '%p -F aptitude aptitude -F '%p %v#' search <pattern>rootopen.com
2018-03-11 09:43:48

linux命令:aptitude remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`) -r`) `uname -v $2}'|grep '{print linux-(im|he)'|awk '^ii -l|egrep $(dpkg remove aptitude aptitude remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)rootopen.com
linux命令:aptitude remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`) -r`) `uname -v $2}'|grep '{print linux-(im|he)'|awk '^ii -l|egrep $(dpkg remove aptitude aptitude remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)rootopen.com
2018-02-02 07:25:48

linux命令:aptitude purge linux-image | grep ^i | grep -v $(uname -r) -r) $(uname -v grep | ^i grep | linux-image purge aptitude aptitude purge linux-image | grep ^i | grep -v $(uname -r)rootopen.com
linux命令:aptitude purge linux-image | grep ^i | grep -v $(uname -r) -r) $(uname -v grep | ^i grep | linux-image purge aptitude aptitude purge linux-image | grep ^i | grep -v $(uname -r)rootopen.com
2018-05-08 04:40:48

linux命令:aptitude remove ?and(~i~nlinux-(im|he) ?not(~n`uname -r`)) -r`)) ?not(~n`uname ?and(~i~nlinux-(im|he) remove aptitude aptitude remove ?and(~i~nlinux-(im|he) ?not(~n`uname -r`))rootopen.com
linux命令:aptitude remove ?and(~i~nlinux-(im|he) ?not(~n`uname -r`)) -r`)) ?not(~n`uname ?and(~i~nlinux-(im|he) remove aptitude aptitude remove ?and(~i~nlinux-(im|he) ?not(~n`uname -r`))rootopen.com
2018-06-04 05:55:48

linux命令:aptitude purge '~c' '~c' purge aptitude aptitude purge '~c'rootopen.com
linux命令:aptitude purge '~c' '~c' purge aptitude aptitude purge '~c'rootopen.com
2018-05-12 21:56:48

linux命令:aptitude install '?and(~nlib.*perl, ~Dmodule)' ~Dmodule)' '?and(~nlib.*perl, install aptitude aptitude install '?and(~nlib.*perl, ~Dmodule)'rootopen.com
linux命令:aptitude install '?and(~nlib.*perl, ~Dmodule)' ~Dmodule)' '?and(~nlib.*perl, install aptitude aptitude install '?and(~nlib.*perl, ~Dmodule)'rootopen.com
2018-03-28 12:20:48

linux命令:aptitude remove $(dpkg -l|awk '/^ii linux-image-2/{print $2}'|sed 's/linux-image-//'|awk -v v=`uname -r` 'v>$0'|sed 's/-generic//'|awk '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}') '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}') 's/-generic//'|awk 'v>$0'|sed -r` v=`uname -v 's/linux-image-//'|awk $2}'|sed linux-image-2/{print '/^ii -l|awk $(dpkg remove aptitude aptitude remove $(dpkg -l|awk '/^ii linux-image-2/{print $2}'|sed 's/linux-image-//'|awk -v v=`uname -r` 'v>$0'|sed 's/-generic//'|awk '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}')rootopen.com
linux命令:aptitude remove $(dpkg -l|awk '/^ii linux-image-2/{print $2}'|sed 's/linux-image-//'|awk -v v=`uname -r` 'v>$0'|sed 's/-generic//'|awk '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}') '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}') 's/-generic//'|awk 'v>$0'|sed -r` v=`uname -v 's/linux-image-//'|awk $2}'|sed linux-image-2/{print '/^ii -l|awk $(dpkg remove aptitude aptitude remove $(dpkg -l|awk '/^ii linux-image-2/{print $2}'|sed 's/linux-image-//'|awk -v v=`uname -r` 'v>$0'|sed 's/-generic//'|awk '{printf("linux-headers-%s\nlinux-headers-%s-generic\nlinux-image-%s-generic\n",$0,$0,$0)}')rootopen.com
2018-06-05 19:02:48

linux命令:aptitude search -F "%p" --disable-columns ~i ~i --disable-columns "%p" -F search aptitude aptitude search -F "%p" --disable-columns ~irootopen.com
linux命令:aptitude search -F "%p" --disable-columns ~i ~i --disable-columns "%p" -F search aptitude aptitude search -F "%p" --disable-columns ~irootopen.com
2018-05-27 02:07:48

linux命令:aptitude search \~ilinux-image \~ilinux-image search aptitude aptitude search \~ilinux-imagerootopen.com
linux命令:aptitude search \~ilinux-image \~ilinux-image search aptitude aptitude search \~ilinux-imagerootopen.com
2018-02-01 01:22:48

linux命令:aptitude search ~d "irc client"|grep -i "irc client" client" "irc -i client"|grep "irc ~d search aptitude aptitude search ~d "irc client"|grep -i "irc client"rootopen.com
linux命令:aptitude search ~d "irc client"|grep -i "irc client" client" "irc -i client"|grep "irc ~d search aptitude aptitude search ~d "irc client"|grep -i "irc client"rootopen.com
2018-04-15 16:33:48

linux命令:aptitude search ~d<string> ~d<string> search aptitude aptitude search ~d<string>rootopen.com
linux命令:aptitude search ~d<string> ~d<string> search aptitude aptitude search ~d<string>rootopen.com
2017-12-29 18:54:48

linux命令:aptitude search ~i -F %p %p -F ~i search aptitude aptitude search ~i -F %prootopen.com
linux命令:aptitude search ~i -F %p %p -F ~i search aptitude aptitude search ~i -F %prootopen.com
2018-01-23 22:34:48

linux命令:aptitude search ^tin ^tin search aptitude aptitude search ^tinrootopen.com
linux命令:aptitude search ^tin ^tin search aptitude aptitude search ^tinrootopen.com
2018-03-06 20:18:48

linux命令:aptitude -F "%p" search \!~M~i~T | xargs apt-mark markauto markauto apt-mark xargs | \!~M~i~T search "%p" -F aptitude aptitude -F "%p" search \!~M~i~T | xargs apt-mark markautorootopen.com
linux命令:aptitude -F "%p" search \!~M~i~T | xargs apt-mark markauto markauto apt-mark xargs | \!~M~i~T search "%p" -F aptitude aptitude -F "%p" search \!~M~i~T | xargs apt-mark markautorootopen.com
2018-01-06 17:13:48

linux命令:aptitude search ~ahold ~ahold search aptitude aptitude search ~aholdrootopen.com
linux命令:aptitude search ~ahold ~ahold search aptitude aptitude search ~aholdrootopen.com
2018-04-03 04:45:48

linux命令:aptitude search '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )' )' ?not(?automatic(?reverse-depends(?installed))) ?automatic(?reverse-recommends(?installed)), '?and( search aptitude aptitude search '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )'rootopen.com
linux命令:aptitude search '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )' )' ?not(?automatic(?reverse-depends(?installed))) ?automatic(?reverse-recommends(?installed)), '?and( search aptitude aptitude search '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )'rootopen.com
2018-03-31 10:22:48

linux命令:aptitude remove '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )' )' ?not(?automatic(?reverse-depends(?installed))) ?automatic(?reverse-recommends(?installed)), '?and( remove aptitude aptitude remove '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )'rootopen.com
linux命令:aptitude remove '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )' )' ?not(?automatic(?reverse-depends(?installed))) ?automatic(?reverse-recommends(?installed)), '?and( remove aptitude aptitude remove '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )'rootopen.com
2018-01-10 02:42:48

linux命令:aptitude search ~i ~nfirmware ~nfirmware ~i search aptitude aptitude search ~i ~nfirmwarerootopen.com
linux命令:aptitude search ~i ~nfirmware ~nfirmware ~i search aptitude aptitude search ~i ~nfirmwarerootopen.com
2018-04-28 19:56:48

linux命令:aptitude purge $(dpkg -l|grep ^rc|awk '{ print $2 }') }') $2 print '{ ^rc|awk -l|grep $(dpkg purge aptitude aptitude purge $(dpkg -l|grep ^rc|awk '{ print $2 }')rootopen.com
linux命令:aptitude purge $(dpkg -l|grep ^rc|awk '{ print $2 }') }') $2 print '{ ^rc|awk -l|grep $(dpkg purge aptitude aptitude purge $(dpkg -l|grep ^rc|awk '{ print $2 }')rootopen.com
2018-03-12 05:18:48

linux命令:aptitude purge ~c ~c purge aptitude aptitude purge ~crootopen.com
linux命令:aptitude purge ~c ~c purge aptitude aptitude purge ~crootopen.com
2018-05-13 09:02:48

linux命令:aptitude purge ~c ~c purge aptitude aptitude purge ~crootopen.com
linux命令:aptitude purge ~c ~c purge aptitude aptitude purge ~crootopen.com
2018-04-19 07:05:48

linux命令:aptitude search ~n^s.* ~n^s.* search aptitude aptitude search ~n^s.*rootopen.com
linux命令:aptitude search ~n^s.* ~n^s.* search aptitude aptitude search ~n^s.*rootopen.com
2018-01-28 14:38:48

linux命令:aptitude --purge remove ~i^foo ~i^bar ~i^bar ~i^foo remove --purge aptitude aptitude --purge remove ~i^foo ~i^barrootopen.com
linux命令:aptitude --purge remove ~i^foo ~i^bar ~i^bar ~i^foo remove --purge aptitude aptitude --purge remove ~i^foo ~i^barrootopen.com
2018-05-16 16:21:48

Linux的Bash命令行(A-Z排序)