LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]如何指定package安装的时候彻底忽略某个文件?

[复制链接]
发表于 2011-7-14 16:56:26 | 显示全部楼层 |阅读模式
如何告诉portage,更新/安装某个package 的时候,彻底忽略路径为/path/to/somefile 的文件 ?类似 arch 下 pacman.conf 里的 `NoUpgrade = path/to/somefile ....` 。

config protection 和我的需求大概不是一回事。

谢谢
发表于 2011-7-14 21:44:48 | 显示全部楼层
man make.conf
  1.        INSTALL_MASK = [space delimited list of file names]
  2.               Use this variable if you want to selectively prevent certain files from being copied into your
  3.               file system tree.  This does not work on symlinks, but only on actual files.   Useful  if  you
  4.               wish  to  filter  out  files  like  HACKING.gz and TODO.gz. The INSTALL_MASK is processed just
  5.               before a package is merged.  Also  supported  is  a  PKG_INSTALL_MASK  variable  that  behaves
  6.               exactly  like  INSTALL_MASK except that it is processed just before creation of a binary pack‐
  7.               age.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-14 22:26:15 | 显示全部楼层
多谢RichardGv的帮助!
回复 支持 反对

使用道具 举报

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

本版积分规则

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