LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2952|回复: 10

我整理的portage-utils常用选项

[复制链接]
发表于 2007-9-28 16:26:50 | 显示全部楼层 |阅读模式
之前一直用的eix equery这些工具,结果上次当equery b 不听话的时候有人告诉我qfile,结果让我改变了对portage-utils的看法,所以就顺带整理了一下目的是方便自已看,各位高手看到下面有误的地方,请提示改正


  1. #------------------------------------------------------------------------------
  2. qlist <opts> <pkgname>
  3. -I , --installed    *仅显示已安装的包  等同于eix -I --names-only
  4. -S, --slots         *显示已安装的包时同时显示slots
  5. -U, --umap         *显示已安装包的同时显示使用的USE标记
  6. -D,--dups           *仅显示包dups
  7. -e, --expact        *Exact match(only CAT/PN or PN without PV)
  8. -a, --all           *显示所有安装包
  9. -d, --dir           *仅显示包安装后的目录  equery files --filter=dir
  10. -o, --obj           *仅显示包安装后的obj
  11. -s, --sym           *仅显示包安装后的软链接
  12. -v, --verbose       *详细得你不想再详细
  13. -q, --quiet         *尽量的减少输出信息,并且连警告都不显示
  14. -C, --nocolor       *输出时不带颜色形式输出
  15. -h, --help          *打印帮助信息并退出
  16. -V, --version       *打印版本信息并退出
  17. #------------------------------------------------------------------------------

  18. #------------------------------------------------------------------------------
  19. qpkg <opts> <misc args> 注意该命令需要管理员权限
  20. Options: -[cpP:vqChV]
  21. -c, --clean         *清除无用的二进制文件目录,也就是 eclean-dist -d  ??有待考证
  22. -p, --pretend       *用过emerge -p就会用这个了
  23. -P, --pkgdir <arg>  *alternate package directory不知如何解释
  24. -V, --verbose  *
  25. -q, --quiet   *
  26. -C, --nocolor *
  27. -h, --help
  28. -V, --version
  29. #------------------------------------------------------------------------------

  30. #------------------------------------------------------------------------------
  31. qfile <filename>
  32. Options: -[ef:m:oRx:vqChV]
  33. -e, --Exact          *精确匹配,类似eix -e gcc只查到包名为gcc的包效果一样
  34. -f, --from <arg>     *Read arguments form file <arg> ("-" for stdio)
  35.                      *将读入文件作为qfile的输入(有待考证)

  36. -m, --max-args <arg> * Treat from file arguments by groups of args(默认为5000)
  37. -o, --orphans        *显示孤立文件 这个是显示孤儿文件,就是不包含在任何安装包里边的文件。(不是通过ebuild安装的,可能是你手工安装的程序,也可能是反删除时候留下的文件),这个一般用来清除系统垃圾文件。
  38. -R, --root-prefix, Assume arguments are already prefixed by $ROOT
  39.                      *假设已将参数前缀设置为$ROOT了(不知如何表达)

  40. -x, --exclude <arg>  * Don't look in package <arg>排除xxxx

  41. <注>当equery b filename时未找到匹配时可以试试qfile,可能会给你带来惊喜
  42. #------------------------------------------------------------------------------

  43.    
  44. #------------------------------------------------------------------------------
  45. qlop <opts> <pkgname>
  46. -g, --gauge      * Gauge number of times a package has been merged
  47.                    比较准确估算出一个包已merged的时间

  48. -t, --time       *计算一个指定包merge的时间
  49. -H, --human      *输出的是秒形式,所以用此参数转化为人性化的显示方式(需要-t参数的支持)
  50. -l, --list       *显示merge历史
  51. -u, --unlist     *显示unmerge 历史
  52. -c, --current    *显示当前正在emerging的包,相当于genlop -c

  53. -f, --logfile <arg> *Read emerge logfile instead of /var/log/emerge.log
  54.                     *用logfile的文件来代替/var/log/emerge.log
  55. #------------------------------------------------------------------------------


  56. #------------------------------------------------------------------------------
  57. quse <opts> <useflag>
  58. -e, --exact          *精确比较,不使用正则表达式
  59. -a, --all            *Show annoying things in IUSE (不管3721全显)
  60. -K, --keywords       *Use the KEYWORDS vs IUSE
  61. -L, --license        *Use the LICENSE vs IUSE
  62. -D, --describe       *显示USE的描述信息,类似 euse -i xxx
  63. -F, --format   <arg> * Use your own variable formats. -F NAME=
  64. -N, --name-only      * Only show package name
  65. #------------------------------------------------------------------------------


  66. #------------------------------------------------------------------------------
  67. qcheck <opts> <pkgname>
  68. -e, --exact          *Exact match (only CAT/PN or PN without PV)
  69. -a, --all            *显示所有包
  70. -u, --update         *更新包的缺失的文件,校验码和修改时间(不要乱用)
  71. -A, --noafk          *忽略缺失的文件
  72. -H, --nohash         *Ignore differing/unknown file chksums
  73. -T, --nomtime        *Ignore differing file mtimes
  74. -v, --verbose
  75. #------------------------------------------------------------------------------

  76. #------------------------------------------------------------------------------
  77. qsize <opts> <pkgname>
  78. -f, --filesystem    *显示已使用的磁盘空间(包占用大小)
  79. -a, --all           *显示所有安装包的大小
  80. -s, --sum           *Include a summary 还会显示一个总和
  81. -S, --sum-only      *仅显示总和
  82. -m, --megabytes     *用M方式显示 xMbytes
  83. -k, --kilobytes     *用K方式显示 Kbytes
  84. -b, --bytes
  85. -v, --version
  86. #------------------------------------------------------------------------------

  87. #------------------------------------------------------------------------------
  88. qdepends <opts> <pkgname>
  89. -d, --depend        *显示依赖信息
  90. -r, --rdepend       *显示反向依赖信息
  91. -p, --pdepend       *显示PDEPEND信息 (未理解到)
  92. -k, --key <arg>     *User defined vdb key
  93. -Q, --query <arg>   *查询反向依赖
  94. -N, --name-only     *仅显示包名
  95. -a, --all           *显示所有依赖信息
  96. -v, --verbose
  97. #------------------------------------------------------------------------------
  98. #------------------------------------------------------------------------------

  99. Usage: qtbz2 <opts> <misc args> : manipulate tbz2 packages

  100. Options: -[jstxOvqChV]
  101.   -j, --join           * Join tar.bz2 + xpak into a tbz2
  102.   -s, --split          * Split a tbz2 into a tar.bz2 + xpak
  103.   -t, --tarbz2         * Just split the tar.bz2
  104.   -x, --xpak           * Just split the xpak
  105.   -O, --stdout         * Write files to stdout
  106.   -v, --verbose        * Make a lot of noise
  107.   -q, --quiet          * Tighter output; suppress warnings
  108.   -C, --nocolor        * Don't output color
  109.   -h, --help           * Print this help and exit
  110.   -V, --version        * Print version and exit
  111.   


  112. Usage: qxpak <opts> <misc args> : manipulate xpak archives

  113. Options: -[lxcd:OvqChV]
  114.   -l, --list           * List the contents of an archive
  115.   -x, --extract        * Extract the contents of an archive
  116.   -c, --create         * Create an archive of a directory/files
  117.   -d, --dir      <arg> * Change to specified directory
  118.   -O, --stdout         * Write files to stdout
  119.   -v, --verbose        * Make a lot of noise
  120.   -q, --quiet          * Tighter output; suppress warnings
  121.   -C, --nocolor        * Don't output color
  122.   -h, --help           * Print this help and exit
  123.   -V, --version        * Print version and exit

  124. #------------------------------------------------------------------------------
  125. Usage: qatom <opts> <pkg> : split atom strings
  126.                             拆分原子字符串
  127. Options: -[cvqChV]
  128.   -c, --compare        * Compare two atoms     
  129.                        * 比较两个原子
  130.   -v, --verbose        * Make a lot of noise
  131.   -q, --quiet          * Tighter output; suppress warnings
  132.   -C, --nocolor        * Don't output color
  133.   -h, --help           * Print this help and exit
  134.   -V, --version        * Print version and exit

  135. #------------------------------------------------------------------------------
  136. Usage: qgrep <opts> <misc args> : grep in ebuilds
  137. Options: -[IiHNclLexJEsS:B:A:vqChV]
  138.   -I, --invert-match   * Select non-matching lines
  139.                        * 选择不匹配的行
  140.   -i, --ignore-case    * Ignore case distinctions
  141.                        * 忽略大小分
  142.   -H, --with-filename  * Print the filename for each match
  143.                        * 打印每个匹配的文件名
  144.   -N, --with-name      * Print the package or eclass name for each match
  145.                        * 打印每个匹配的包名或eclass名
  146.   -c, --count          * Only print a count of matching lines per FILE
  147.                        * 只显示每个文件匹配行总个数
  148.   -l, --list           * Only print FILE names containing matches
  149.                        * 只打印文件名里面包含的匹配
  150.   -L, --invert-list    * Only print FILE names containing no match
  151.                        * 只打印文件名里面不匹配的内容
  152.   -e, --regexp         * Use PATTERN as a regular expression
  153.                        * 使用正则表达式
  154.   -x, --extended       * Use PATTERN as an extended regular expression
  155.                        * 使用正则表达式的扩展语法
  156.   -J, --installed      * Search in installed ebuilds instead of the tree
  157.                        * 搜索已安装的ebuilds
  158.   -E, --eclass         * Search in eclasses instead of ebuilds
  159.                        * 搜索
  160.   -s, --skip-comments  * Skip comments lines
  161.                        * 跳过注释行 只要重要的信息
  162.   -S, --skip     <arg> * Skip lines matching <arg>
  163.                        * 跳过匹配<arg>的行
  164.   -B, --before   <arg> * Print <arg> lines of leading context
  165.                        * 打印
  166.   -A, --after    <arg> * Print <arg> lines of trailing context
  167.   -v, --verbose        * Make a lot of noise
  168.   -q, --quiet          * Tighter output; suppress warnings
  169.   -C, --nocolor        * Don't output color
  170.   -h, --help           * Print this help and exit
  171.   -V, --version        * Print version and exit

  172. #------------------------------------------------------------------------------
  173. Usage: qmerge <opts> <pkgnames> : fetch and merge binary package

  174. Options: -[fFsKUpuyO5vqChV]
  175.   -f, --fetch          * Fetch package and newest Packages metadata
  176.                        * 获取包和最新的包metadata,等同emerge -f
  177.   -F, --force          * Fetch package (skipping Packages)
  178.                        * 获取包 (跳过包)
  179.   -s, --search         * Search available packages
  180.                        * 搜过有效包
  181.   -K, --install        * Install package
  182.                        * 安装包
  183.   -U, --unmerge        * Uninstall package
  184.                        * 卸载包
  185.   -p, --pretend        * Pretend only
  186.                        * 假打
  187.   -u, --update         * Update only
  188.                        * 仅更新
  189.   -y, --yes            * Don't prompt before overwriting
  190.                        * 直接代替你输入yes
  191.   -O, --nodeps         * Don't merge dependencies
  192.                        * 不emerge依赖包
  193.   -5, --nomd5          * Don't verify MD5 digest of files
  194.                        * 不校验文件的MD5信息
  195.   -v, --verbose        * Make a lot of noise
  196.   -q, --quiet          * Tighter output; suppress warnings
  197.   -C, --nocolor        * Don't output color
  198.   -h, --help           * Print this help and exit
  199.   -V, --version        * Print version and exit
  200. #------------------------------------------------------------------------------
  201. Usage: qsearch <opts> <regex> : search pkgname/desc

  202. Options: -[acsSNHvqChV]
  203.   -a, --all            * List the descriptions of every package in the cache
  204.                        * 显示cache中每个包的描述信息
  205.   -c, --cache          * Use the portage cache
  206.                        * 使用portage cache
  207.   -s, --search         * Regex search package basenames
  208.                        * 用正则表达式搜索包的基本名字
  209.   -S, --desc     <arg> * Regex search package descriptions
  210.                        * 用正则表达式搜索包的基本描述信息
  211.   -N, --name-only      * Only show package name
  212.                        * 只显示包名
  213.   -H, --homepage       * Show homepage info
  214.                        * 显示主页信息
  215.   -v, --verbose        * Make a lot of noise
  216.                        * 详细
  217.   -q, --quiet          * Tighter output; suppress warnings
  218.   -C, --nocolor        * Don't output color
  219.   -h, --help           * Print this help and exit
  220.   -V, --version        * Print version and exit

  221. #------------------------------------------------------------------------------
  222. Usage: qcache <opts> <action> <args> : search the metadata cache

  223. Options: -[p:c:idtansvqChV]
  224.   -p, --matchpkg <arg> * match pkgname
  225.                        * 匹配包名
  226.   -c, --matchcat <arg> * match catname
  227.                        * 匹配
  228.   -i, --imlate         * list packages that can be marked stable on a given arch
  229.                        * 显示可以
  230.   -d, --dropped        * list packages that have dropped keywords on a version bump on a given arch
  231.                        *
  232.   -t, --testing        * list packages that have ~arch versions, but no stable versions on a given arch
  233.                        *
  234.   -s, --stats          * display statistics about the portage tree
  235.   -a, --all            * list packages that have at least one version keyworded for on a given arch
  236.                        *
  237.   -n, --not            * list packages that aren't keyworded on a given arch.
  238.                        *
  239.   -v, --verbose        * Make a lot of noise
  240.   -q, --quiet          * Tighter output; suppress warnings
  241.   -C, --nocolor        * Don't output color
  242.   -h, --help           * Print this help and exit
  243.   -V, --version        * Print version and exit

  244. #------------------------------------------------------------------------------
复制代码

  1. [url]http://www.linuxsir.cn/bbs/showthread.php?t=311868[/url] 这个是我整理eix
  2. 的一些常用命令选项
复制代码
发表于 2007-9-28 16:57:25 | 显示全部楼层
沙发,好贴要顶!
回复 支持 反对

使用道具 举报

发表于 2007-9-28 17:12:50 | 显示全部楼层
普及基本技能,收藏。
回复 支持 反对

使用道具 举报

发表于 2007-9-29 04:04:23 | 显示全部楼层
-o, --orphans        *显示orphan文件(不知道什么意思)
这个是显示孤儿文件,就是不包含在任何安装包里边的文件。(不是通过ebuild安装的,可能是你手工安装的程序,也可能是反删除时候留下的文件),这个一般用来清除系统垃圾文件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-29 11:18:17 | 显示全部楼层
blackwhite 已加入修改
不过发现修改时不能回车换行
回复 支持 反对

使用道具 举报

发表于 2007-9-29 14:05:32 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-9-29 14:33:25 | 显示全部楼层
Post by zhoukb
普及基本技能,收藏。


the same
回复 支持 反对

使用道具 举报

发表于 2007-9-29 22:22:26 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2008-4-17 18:42:31 | 显示全部楼层
很好的总结,我今天正好要找这样的文章。
回复 支持 反对

使用道具 举报

发表于 2008-4-18 12:59:24 | 显示全部楼层
每天来一次论坛,为的就是收藏这样的好文章。看不懂的,也可以收藏备用,以后慢慢学。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表