个人工具

Prelink

来自Ubuntu中文

跳转至: 导航, 搜索

How to enable prelink


原文出处:http://forum.ubuntu.org.cn/viewtopic.php?p=1423

原文作者:

授权许可:

翻译人员:bluebell

校对人员:

贡献者:

适用版本: 文章状态:完成


怎样启用prelink:

  • 加入ubuntu universe的apt源,具体步骤请看文档。
  • 使用 apt-get 或者 synaptic 安装 prelink。
  • 编辑/etc/default/prelink (需要 root 权限)
  • 把 PRELINKING=unknown 的 unknown 改为 yes。
  • 如果你是老手,知道自己在做什么,也可以调整其他的选项。而默认的就可行了。
  • 运行prelink,命令: sudo /etc/cron.daily/prelink

这是第一次运行,也是花时间最长的一次! 以后prelink会运行得很快,在大多机器上不超过一分钟。prelink会每天运行,一般是在午夜时间。每隔14天,或者你进行了什么变动,prelink会进行一次完全的运行。

如果你进行了一次大的系统软件库升级(像libc6, glibc, gnome,X 等等),接着遇到一些莫名其妙的关于软件库的错误,那么请重复步骤6。

如果要取消prelink,把步骤4里的 yes 改为 no,然后重复步骤6。


How to enable prelink:

  • Activate Ubuntu universe sources. The procedure is well-documented by Ubuntu.
  • use apt-get or synaptic to install prelink.
  • Open /etc/default/prelink with your favorite editor, as sudo/root.
  • Change PRELINKING=unknown from unknown to yes.
  • Adjust the other options if you know what

test To undo prelink, change step 4 from yes to no, then rerun step 6.