Debian:将所有相关软件包标记为手动安装。

Debian:将所有相关软件包标记为手动安装。所以如果你删除了一些元软件包 - 比如gnome-desktop-environment,它们不会自动删除。
.

0

linux命令:sudo aptitude unmarkauto $(apt-cache depends some-deb-meta-package-name | grep Depends | cut -d: -f2) -f2) -d: cut | Depends grep | some-deb-meta-package-name depends $(apt-cache unmarkauto aptitude sudo sudo aptitude unmarkauto $(apt-cache depends some-deb-meta-package-name | grep Depends | cut -d: -f2)rootopen.com
linux命令:sudo aptitude unmarkauto $(apt-cache depends some-deb-meta-package-name | grep Depends | cut -d: -f2) -f2) -d: cut | Depends grep | some-deb-meta-package-name depends $(apt-cache unmarkauto aptitude sudo sudo aptitude unmarkauto $(apt-cache depends some-deb-meta-package-name | grep Depends | cut -d: -f2)rootopen.com
moun 2018-04-02 12:47:48
输出
linux命令:aptitude 详解

评论

相关推荐

输出:版本3.2-0(例如,如果您键入#aptitude show bash | grep VersDepends关于您的分发语言,因为其他语言中的单词“版本”的名称可能会有所不同。

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
.

必须安装deborphan(1)。

linux命令:aptitude remove $(deborphan) $(deborphan) remove aptitude aptitude remove $(deborphan)rootopen.com
linux命令:aptitude remove $(deborphan) $(deborphan) remove aptitude aptitude remove $(deborphan)rootopen.com
.

在debian中真正令人敬畏的bash完成似乎是一个额外的包,现在必须安装。在采购/ etc / bash_completion之后,它完成了几乎所有的事情(软件包中的软件包名称等):-)为了使其成为永久的,请在.bashrc中加入如下内容:if [-f / etc / bash_completion];然后源/ etc / bash_completionfi

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
.

第一列中的图例:i = installedp = installable

linux命令:aptitude search NAME NAME search aptitude aptitude search NAMErootopen.com
linux命令:aptitude search NAME NAME search aptitude aptitude search NAMErootopen.com
.

这是对Antoine de St. Exupery的“小王子”的参考

linux命令:aptitude moo moo aptitude aptitude moorootopen.com
linux命令:aptitude moo moo aptitude aptitude moorootopen.com
.

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
.

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
.

如果你在aptitude中做了一个软件包选择错误,非常方便。请注意,如果可能,最好在aptitude中执行Ctrl + U(撤销),因为keep-all将清除一些软件包状态(如'hold'状态)。

linux命令:aptitude keep-all keep-all aptitude aptitude keep-allrootopen.com
linux命令:aptitude keep-all keep-all aptitude aptitude keep-allrootopen.com
.

支持正则表达式模式和非常灵活的输出参数和搜索选项。

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
.

这应该做同样的事情,约70个字符短。

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
.

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
.

有一点天赋魔力。注意:这将删除图像和标题。如果你只是想删除图像:aptitude remove?和(〜i〜nlinux-im?not(〜n`uname -r`))我在zsh中使用了这个没有任何问题。我不确定其他shell如何解释aptitude搜索条件中使用的某些特殊字符。使用-s来模拟。

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
.

也用aptitude search'〜c'搜索

linux命令:aptitude purge '~c' '~c' purge aptitude aptitude purge '~c'rootopen.com
linux命令:aptitude purge '~c' '~c' purge aptitude aptitude purge '~c'rootopen.com
.

像7172一样,但要容易得多。

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
.

注意双空间:“... ^ iilinlinux-image-2 ...”像5813一样,但修复了两个错误:[1]这留下了元包'linux-headers-generic'和'linux-图像通用“,以便自动升级在未来能够正常工作。 [2]比当前运行的内核更新的内核是独立的(如果在安装新内核后没有重新启动,可能会发生这种情况)。我非常沮丧地认为这占用了228个字符。我希望看到更简单的版本。

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
.

然后,您可以执行所有您希望的处理...它已经排序,只列出已安装的软件包.EDIT:现在包含格式化选项,仅列出软件包名称!此外,禁用截断长包名称。注意:它是蒂尔达我不冲刺我

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
.

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
.

当我不确定标题时,这是我发现搜索应用程序的最佳方式.Grep只是删除标题或简短描述中不包含该词语的任何内容(很多内容可能包括搜索词中的描述,如应用程序使用的库)

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
.

特别适用于在其Ubuntu软件包E.g.的描述中列出的乳胶软件包。说我想找到包含乳胶包的Ubuntu软件包aeguill:aptitude search〜daeguillp texlive-lang-french - TeX Live:法语

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
.

在基于Debian的系统上生成已安装软件包的列表

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
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令