LinuxSir.cn,穿越时空的Linuxsir!

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

pacman命令的无文档“特性”(Undocumented Feature)?

[复制链接]
发表于 2012-2-20 23:35:47 | 显示全部楼层 |阅读模式
  1. pacman -Scc
  2. pacman -Syy
复制代码

pacman 的以上两个用法,在manpage里都没有提到。
  1. pacman -S -h
复制代码

也看不到这样的选项,到底是谁发现的?

更新pacman本身出现
错误:无法准备事务处理 (无法满足依赖关系)
:: gcc: 要求 gcc-libs=4.6.2-3

google之后找到官网的一个帖子,https://bbs.archlinux.org/viewtopic.php?id=134265,里面提到的解决问题的命令里有以上的用法,可是manpage里查不到是什么意思,很恼火。即便作者解决了该问题,也不知道原因到底是什么。(我估计是缓存里的gcc-lib版本不对)。

对于我这种遇上问题通常会先manpage或google的,RTFM也没用的情况非常讨厌。

ps:需要一个软件多个版本比较容易共存的滚动发行版,只有选择gentoo?听到一个软件工程师说使用gentoo做开发问题最少,但我讨厌什么都要编译。
 楼主| 发表于 2012-2-21 00:03:55 | 显示全部楼层
事实上应该是该帖子的第一个回帖让我解决了问题,和/etc/pacman.d/mirrorlist.pacnew有关,但我打开这个文件,发现它未注释部分除了比我自定义的mirrorlist多了一些镜像行外,没什么不一样。我不知道官方的pacman4进入core这个页面"merge your pacnew files"里最后一句怎么做。结果我只是
  1. sudo mv mirrorlist.pacnew mirrorlist.pacnew.bak
复制代码

把该文件改名之后,pacman就能正常更新了。
回复 支持 反对

使用道具 举报

发表于 2012-2-21 09:47:55 | 显示全部楼层
SYNC OPTIONS
       -c, --clean
           Remove packages that are no longer installed from the cache as well as currently unused sync databases to free up disk space. When pacman downloads
           packages, it saves them in a cache directory. In addition, databases are saved for every sync DB you download from, and are not deleted even if they are
           removed from the configuration file pacman.conf(5). Use one --clean switch to only remove packages that are no longer installed; use two to remove all
           files from the cache.
In both cases, you will have a yes or no option to remove packages and/or unused downloaded databases.

           If you use a network shared cache, see the CleanMethod option in pacman.conf(5).

...

       -y, --refresh
           Download a fresh copy of the master package list from the server(s) defined in pacman.conf(5). This should typically be used each time you use
           --sysupgrade or -u. Passing two --refresh or -y flags will force a refresh of all package lists even if they appear to be up to date.

英文不好,還是眼神不好?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-21 20:18:15 | 显示全部楼层
好吧,我承认是眼神不好,manpage太长了,打开后没有从头到细看,搜索“Scc”、“Syy”、“double”、“dual”都没有找到结果,反而忘了搜索“two”。
回复 支持 反对

使用道具 举报

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

本版积分规则

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