`

gentoo 下emerge安装修改默认版本以及取消掩掉的软件

阅读更多


#emerge安装使用分支官方文档:http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml?

part=3&chap=3#doc_chap2
#比如下面一个:
#看是否能安装以及安装版本
emerge --pretend --verbose tokyotyrant

{
These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "net-misc/tokyotyrant" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-misc/tokyotyrant-1.1.40 (masked by: ~x86 keyword)
- net-misc/tokyotyrant-1.1.39 (masked by: ~x86 keyword)
- net-misc/tokyotyrant-1.1.37 (masked by: ~x86 keyword)
}

# 修改文件加入需要安装而被掩掉的软件,名称得是原子(atom)不能带版本号,另外本文件是新建的
nano /etc/portage/package.keywords
{
# dev-db/mysql ~x86
# virtual/mysql ~x86
net-misc/tokyotyrant ~x86
}

# mysql目前(20100420)emerge默认安装是5.0.9,如果需要安装5.1那么也需要上面的操作,上面注释掉的加上即可。

 

不过emerge指定版本的话就这样,比如: emerge -av "dev-db/mysql-版本号"

 

1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics