Arch Linux按大小排序安装的软件包

这个版本解释了pacman最近输出的MiB / KiB后缀。
.

0

linux命令:pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' 'BEGIN{ s["MiB"]=1024; s["KiB"]=1;} {split($3, a, " "); print a[1] * s[a[2]], "KiB", $1}' | sort -n -n sort | $1}' "KiB", s[a[2]], * a[1] print "); " a, {split($3, s["KiB"]=1;} s["MiB"]=1024; 'BEGIN{ -F'\t' awk | - - - paste | -f2 -d: cut | 'Name\|Size\|Description' grep | -Qi pacman pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' 'BEGIN{ s["MiB"]=1024; s["KiB"]=1;} {split($3, a, " "); print a[1] * s[a[2]], "KiB", $1}' | sort -nrootopen.com
linux命令:pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' 'BEGIN{ s["MiB"]=1024; s["KiB"]=1;} {split($3, a, " "); print a[1] * s[a[2]], "KiB", $1}' | sort -n -n sort | $1}' "KiB", s[a[2]], * a[1] print "); " a, {split($3, s["KiB"]=1;} s["MiB"]=1024; 'BEGIN{ -F'\t' awk | - - - paste | -f2 -d: cut | 'Name\|Size\|Description' grep | -Qi pacman pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' 'BEGIN{ s["MiB"]=1024; s["KiB"]=1;} {split($3, a, " "); print a[1] * s[a[2]], "KiB", $1}' | sort -nrootopen.com
ojap 2018-05-24 20:42:48
输出
替代方案1 Arch Linux按大小排序安装的软件包

与此处列出的其他命令一样,它显示已安装的拱包。与其他的不同,这也显示简短的描述,所以你可以看到该软件包的功能,而不必去谷歌。它还显示了最大的包装。您可以选择通过头来管理它以显示任意数量的已安装最大的软件包(例如... | head -30#,用于安装最多的30个软件包).

linux命令:pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' '{ print $2, "\t", $1, "\t", $3 }' | sort -rn -rn sort | }' $3 "\t", $1, "\t", $2, print '{ -F'\t' awk | - - - paste | -f2 -d: cut | 'Name\|Size\|Description' grep | -Qi pacman pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' '{ print $2, "\t", $1, "\t", $3 }' | sort -rnrootopen.com
linux命令:pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' '{ print $2, "\t", $1, "\t", $3 }' | sort -rn -rn sort | }' $3 "\t", $1, "\t", $2, print '{ -F'\t' awk | - - - paste | -f2 -d: cut | 'Name\|Size\|Description' grep | -Qi pacman pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' '{ print $2, "\t", $1, "\t", $3 }' | sort -rnrootopen.com
.
输出
替代方案2 Arch Linux按大小排序安装的软件包

M是以兆字节为单位的大小,man扩展以查看其他大小%m是安装大小%k是下载大小.

linux命令:expac -S -H M "%m %n"|sort -n -n %n"|sort "%m M -H -S expac expac -S -H M "%m %n"|sort -nrootopen.com
linux命令:expac -S -H M "%m %n"|sort -n -n %n"|sort "%m M -H -S expac expac -S -H M "%m %n"|sort -nrootopen.com
.
输出
替代方案3 Arch Linux按大小排序安装的软件包

.

linux命令:pacman -Qi $(pacman -Qq)|grep 'Name\|Size'| cut -d: -f2 | paste - - | column -t | sort -nk2 -nk2 sort | -t column | - - paste | -f2 -d: cut 'Name\|Size'| -Qq)|grep $(pacman -Qi pacman pacman -Qi $(pacman -Qq)|grep 'Name\|Size'| cut -d: -f2 | paste - - | column -t | sort -nk2rootopen.com
linux命令:pacman -Qi $(pacman -Qq)|grep 'Name\|Size'| cut -d: -f2 | paste - - | column -t | sort -nk2 -nk2 sort | -t column | - - paste | -f2 -d: cut 'Name\|Size'| -Qq)|grep $(pacman -Qi pacman pacman -Qi $(pacman -Qq)|grep 'Name\|Size'| cut -d: -f2 | paste - - | column -t | sort -nk2rootopen.com
.
输出
替代方案4 Arch Linux按大小排序安装的软件包

这一行代码将输出按千字节大小排序的已安装软件包。.

linux命令:paste <(pacman -Q | awk '{ print $1; }' | xargs pacman -Qi | grep 'Size' | awk '{ print $4$5; }') <(pacman -Q | awk '{print $1; }') | sort -n | column -t -t column | -n sort | }') $1; '{print awk | -Q <(pacman }') $4$5; print '{ awk | 'Size' grep | -Qi pacman xargs | }' $1; print '{ awk | -Q <(pacman paste paste <(pacman -Q | awk '{ print $1; }' | xargs pacman -Qi | grep 'Size' | awk '{ print $4$5; }') <(pacman -Q | awk '{print $1; }') | sort -n | column -trootopen.com
linux命令:paste <(pacman -Q | awk '{ print $1; }' | xargs pacman -Qi | grep 'Size' | awk '{ print $4$5; }') <(pacman -Q | awk '{print $1; }') | sort -n | column -t -t column | -n sort | }') $1; '{print awk | -Q <(pacman }') $4$5; print '{ awk | 'Size' grep | -Qi pacman xargs | }' $1; print '{ awk | -Q <(pacman paste paste <(pacman -Q | awk '{ print $1; }' | xargs pacman -Qi | grep 'Size' | awk '{ print $4$5; }') <(pacman -Q | awk '{print $1; }') | sort -n | column -trootopen.com
.
输出

评论

相关推荐

linux命令:pacman -Q|wc -l -l -Q|wc pacman pacman -Q|wc -lrootopen.com
linux命令:pacman -Q|wc -l -l -Q|wc pacman pacman -Q|wc -lrootopen.com
.

显示来自官方存储库(而非aur)的哪些软件包有可用的更新。为了获得最准确的输出结果,镜像和软件包列表应该是最新的。

linux命令:pacman -Qu -Qu pacman pacman -Qurootopen.com
linux命令:pacman -Qu -Qu pacman pacman -Qurootopen.com
.

显示包(例如gvim)安装在系统上的文件。

linux命令:pacman -Ql gvim gvim -Ql pacman pacman -Ql gvimrootopen.com
linux命令:pacman -Ql gvim gvim -Ql pacman pacman -Ql gvimrootopen.com
.

显示给定文件的“父”包。

linux命令:pacman -Qo /etc/yaourtrc /etc/yaourtrc -Qo pacman pacman -Qo /etc/yaourtrcrootopen.com
linux命令:pacman -Qo /etc/yaourtrc /etc/yaourtrc -Qo pacman pacman -Qo /etc/yaourtrcrootopen.com
.

显示不再需要的软件包列表作为您系统上安装的任何软件包的依赖项。

linux命令:pacman -Qdt -Qdt pacman pacman -Qdtrootopen.com
linux命令:pacman -Qdt -Qdt pacman pacman -Qdtrootopen.com
.

pacman安装软件包列表

linux命令:pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt && pacman -Sy `cat packages.txt` --noconfirm --noconfirm packages.txt` `cat -Sy pacman && packages.txt > -f1 ' -d' cut | pacman -v grep | -Q pacman pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt && pacman -Sy `cat packages.txt` --noconfirmrootopen.com
linux命令:pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt && pacman -Sy `cat packages.txt` --noconfirm --noconfirm packages.txt` `cat -Sy pacman && packages.txt > -f1 ' -d' cut | pacman -v grep | -Q pacman pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt && pacman -Sy `cat packages.txt` --noconfirmrootopen.com
.

-Qdt 列出不再需要的依赖项/包 -q 只输出包名(而不是版本号) -R 删除包 - 所以如果有更好的/标准的方法来达到同样的效果 - 请建议

linux命令:pacman -Qdt -q | xargs pacman --noconfirm -R -R --noconfirm pacman xargs | -q -Qdt pacman pacman -Qdt -q | xargs pacman --noconfirm -Rrootopen.com
linux命令:pacman -Qdt -q | xargs pacman --noconfirm -R -R --noconfirm pacman xargs | -q -Qdt pacman pacman -Qdt -q | xargs pacman --noconfirm -Rrootopen.com
.

Alternative1 (grep support):pacman -Ss python | paste - - | grep --color=always -e '/python' | less -R Alternative2 (eye-candy, no grep):pacman --color=always -Ss "python" | paste - - | less -Rin ~/.bashrc:pkg-grep() { pacman -Ss "$1" | paste - - | grep --color=always -e "${2:-$1}" | less -R ; }pkg-search() { pacman --color=always -Ss "python" | paste - - | less -R; }

linux命令:pacman -Ss python | paste - - | grep --color=always -e '/python' | less -R -R less | '/python' -e --color=always grep | - - paste | python -Ss pacman pacman -Ss python | paste - - | grep --color=always -e '/python' | less -Rrootopen.com
linux命令:pacman -Ss python | paste - - | grep --color=always -e '/python' | less -R -R less | '/python' -e --color=always grep | - - paste | python -Ss pacman pacman -Ss python | paste - - | grep --color=always -e '/python' | less -Rrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令