<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;tid=732&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo中文社区 / gentoo二进制包指南]]></title>
		<link>http://www.gentoo-zh.org/viewtopic.php?id=732</link>
		<description><![CDATA[gentoo二进制包指南 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 05 Feb 2024 19:19:21 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: gentoo二进制包指南]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=847#p847</link>
			<description><![CDATA[<p>这个新二进制机制并不能做出像ArchLinux一样的完全免编译的系统，多少都还是要编译的，限制了在嵌入式上的直接应用。</p>]]></description>
			<author><![CDATA[dummy@example.com (slgx)]]></author>
			<pubDate>Mon, 05 Feb 2024 19:19:21 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=847#p847</guid>
		</item>
		<item>
			<title><![CDATA[gentoo二进制包指南]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=845#p845</link>
			<description><![CDATA[<p>新二进制快速配置手册页：https://wiki.gentoo.org/wiki/Binary_package_quickstart<br />旧二进制配置手册页：https://wiki.gentoo.org/wiki/Binary_package_guide<br />国内新闻页：https://linux.cn/article-16528-1.html</p><br /><br /><p>我的配置<br />sudo&#160; &#160;mkdir -p&#160; /etc/portage/binrepos.conf/<br />sudo&#160; &#160;touch&#160; &#160; &#160; /etc/portage/binrepos.conf/gentoobinhost.conf<br />sudo&#160; &#160;nano&#160; &#160; &#160; &#160;/etc/portage/binrepos.conf/gentoobinhost.conf&#160; <br />##nano start##<br />[binhost]<br />priority = 9999<br />sync-uri = <a href="https://mirrors.tuna.tsinghua.edu.cn/gentoo/releases/amd64/binpackages/17.1/x86-64/" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/ge … .1/x86-64/</a><br />#sync-uri = <a href="https://mirrors.aliyun.com/gentoo/releases/arm64/binpackages/17.1/x86-64/" rel="nofollow">https://mirrors.aliyun.com/gentoo/relea … .1/x86-64/</a><br />#sync-uri = <a href="https://mirrors.ustc.edu.cn/gentoo/releases/amd64/binpackages/17.1/x86-64/" rel="nofollow">https://mirrors.ustc.edu.cn/gentoo/rele … .1/x86-64/</a><br />#国内有同步镜像源，可自己找喜欢的源<br />##nano end##</p><p>软件包签名验证<br />现在，启用Portage功能，要求验证GPG签名：binpkg-request-signature</p><p>sudo nano /etc/portage/make.conf<br />##nano start##<br />FEATURES=&quot;${FEATURES} binpkg-request-signature&quot;<br />##nano end##</p><br /><p>在过去，/etc/portage/gnupg可能是用于验证Gentoo仓库的旧方法。如果这个文件存在，/etc/portage/getuto将不会覆盖它，但可能缺少正确的设置。如果在校验二进制包时遇到问题，请备份旧目录，然后再次运行 getuto：<br />sudo&#160; mv /etc/portage/gnupg /etc/portage/gnupg.bak <br />sudo&#160; getuto&#160; &#160;###生成二进制包校验密钥环，getuto是新工具</p><p>#要使用二进制安装单个软件包，请使用以下命令：<br />sudo emerge --ask --verbose --getbinpkg app-editors/nano&#160; &#160;<br />#或者使用等价简写：<br />sudo&#160; emerge -avg&#160; app-editors/nano</p><p>#系统更新<br />#要使用二进制包执行完整的系统更新，请使用：<br />sudo emerge --ask --verbose --update --deep --changed-use --getbinpkg @world<br />#或者使用等价简写：<br />sudo emerge -avuDUg @world</p><p>在正常情况下，如果服务器没有现成的二进制包，将拉取源代码进行编译。</p><p>以下是emerge时一些有用的设置，可以通过emerge命令行或在emerge命令行上应用，以改善使用Gentoo二进制包的体验。EMERGE_DEFAULT_OPTSmake.conf<br />--getbinpkg （-g）<br />当服务器上有合适的二进制包时，添加将自动下载并使用二进制包。如果没有找到合适的二进制包，则会像往常一样从源码编译包。--getbinpkg<br />--usepkgonly （-K）<br />使用会告诉Portage只使用二进制包，如果本地找不到合适的二进制包或（用-g）下载，则退出。--usepkgonly<br />--with-bdeps=y<br />这可以设置为 y（es） 或 n（o），并控制是否下载和/或安装包的构建依赖项。 对于二进制包安装，默认为 no。对于基于源代码的安装，生成依赖项 是必需的，因此也相应地安装。<br />--binpkg-respect-use=y</p>]]></description>
			<author><![CDATA[dummy@example.com (semes)]]></author>
			<pubDate>Sat, 06 Jan 2024 02:42:49 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=845#p845</guid>
		</item>
	</channel>
</rss>
