<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post/663/</link>
<title><![CDATA[[原]个性化Linux发行版光盘之补充——XZ（LZMA算法）]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Tue, 31 Jul 2012 07:38:24 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/663/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;红帽（Red Hat）从Enterprise Server 6.2 开始，启动镜像文件initrd.img 开始改用<strong>xz</strong> 工具进行压缩，这与以往版本是有区别的。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/initrd/" rel="tag">initrd</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a> , <a href="https://www.linuxfly.org/tags/anaconda/" rel="tag">anaconda</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/662/</link>
<title><![CDATA[[原]使用Mock 实现跨平台跨发行版编译RPM]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Mon, 30 Jul 2012 08:44:00 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/662/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;通常我们都是在现有系统的环境中，对当前硬件平台的软件进行编译为RPM 的工作。但由于各种原因，例如硬件不支持，机器不够，磁盘空间问题等，我们可能需要进行跨平台编译的工作。类似的，为不同发行版进行编译也是常有的问题。Mock 是一套在Fedora 上用于实现跨平台、跨版本编译RPM的工具，其支持Build FC1-6、RH7.3、RH9、RHEL3-5、CentOS 1-5 等平台工作。我现用于在Asianux 3.0 上。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/530/</link>
<title><![CDATA[[转]在64位的 CentOS 上只安装64位的软件包]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Tue, 13 Jul 2010 02:50:22 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/530/</guid> 
<description>
<![CDATA[ 
	在 64位版本的 CentOS 5.4 上使用 yum 安装软件包的时候如果不小心的话会同时安装 i386 和 x86_64 版本的软件，如下面安装的 httpd-devel 就有 i386 和 x86_64 两个版本：<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/yum/" rel="tag">yum</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/228/</link>
<title><![CDATA[[原]红旗含IMQ模块核心及iptables的rpm包]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Tue, 03 Jun 2008 03:20:04 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/228/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;昨天就IMQ如何加入红旗Linux核心及iptables进行了说明。如果你嫌麻烦，也可以使用我已经编译好的一些rpm包。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/kernel/" rel="tag">kernel</a> , <a href="https://www.linuxfly.org/tags/iptables/" rel="tag">iptables</a> , <a href="https://www.linuxfly.org/tags/modules/" rel="tag">modules</a> , <a href="https://www.linuxfly.org/tags/imq/" rel="tag">imq</a> , <a href="https://www.linuxfly.org/tags/tc/" rel="tag">tc</a> , <a href="https://www.linuxfly.org/tags/qos/" rel="tag">qos</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/227/</link>
<title><![CDATA[[原]编译IMQ（中介队列设备）模块]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Mon, 02 Jun 2008 06:33:11 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/227/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;IMQ（Intermediate queueing device）中介队列设备通常用于解决两个问题：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">入口整形：<br/>Linux仅能进行出口整形（除入口队列可限速外），而IMQ能让您使用出口队列对入口数据进行整形。<br/>对多个网卡整形：<br/>一个队列规定只能处理一块网卡的流量，无法设置全局的限速。而IMQ允许您使用iptables标记那些给队列看的数据包，达到全局限速的目的。</div></div><br/> &nbsp; &nbsp;简单来说，IMQ可以让你往一个队列规定中放任何东西，例如对刚刚进入网卡的数据包打上标记去进行入口整形等。但由于一些原因，IMQ设备并没有加入Linux的标准核心中，所以，使用前需要先单独编译。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/kernel/" rel="tag">kernel</a> , <a href="https://www.linuxfly.org/tags/modules/" rel="tag">modules</a> , <a href="https://www.linuxfly.org/tags/iptables/" rel="tag">iptables</a> , <a href="https://www.linuxfly.org/tags/imq/" rel="tag">imq</a> , <a href="https://www.linuxfly.org/tags/tc/" rel="tag">tc</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/148/</link>
<title><![CDATA[[原]RDAC的spec生成rpm脚本]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Sun, 12 Aug 2007 02:29:35 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/148/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;通常情况下，安装RDAC都是参考源码进行安装的。虽然步骤很简单，Readme也很清楚，但始终觉得不适合备份，以及大规模部署。所以，参考<span style="color: #FF4500;">Dag Wieers</span>的spec脚本，生成了一个供红旗使用的脚本。经测试，能正常使用，并自动生成mpp-%&#123;kernel&#125;smp.img文件。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rdac/" rel="tag">rdac</a> , <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/137/</link>
<title><![CDATA[[原]关于rpm打包中的条件判断]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Thu, 28 Jun 2007 07:19:25 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;前面的<a href="http://www.linuxfly.org/post/130.htm" target="_blank">[原]自己制作rpm软件包（1）</a>和<a href="http://www.linuxfly.org/post/131.htm" target="_blank">[原]自己制作rpm软件包（2）</a>，两篇文章比较详细的介绍了rpmbuild命令的使用，以及.spec文件的编写。而<a href="http://www.linuxfly.org/post/132.htm" target="_blank">[原]关于rpm打包的一个补充</a>也描述了，针对特定的平台如何加入变量、修改标准宏，然后再进行编译的情况。<br/> &nbsp; &nbsp;而实际上，通常我们都希望一个套件只针对一个.spec文件，这可以很方便的管理。所以，我们可以在.spec中加入条件判断语句，以便根据不同的条件，执行相对应的编译和打包动作。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/135/</link>
<title><![CDATA[[原]自定义Linux发行版光盘]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Thu, 21 Jun 2007 10:01:52 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/135/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;需要自定义Linux发行版光盘的原因有很多，例如：想学习、想自己发布产品、为管理方便、更新Bug软件包等等。而最近由于工作的需要，也研究了一下Linux发行光盘的构造。这里主要是对沿用红帽发行方式的版本，例如CentOS等。他们都是使用anaconda安装环境的。下面的说明也只针对该环境，以<span style="color: #FF0000;">组合红旗两CD光盘为1张DVD光盘为例说明</span>。<br/> &nbsp; &nbsp;另外，网上也有很多可以参考的资料，在附录中有链接。不过，若完全按照这些资料的步骤，会在最后执行buildinstall时出现很多的rpm依赖问题。所以，我绕过了这个脚本，使用更简单、更简单的方式处理。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a> , <a href="https://www.linuxfly.org/tags/anaconda/" rel="tag">anaconda</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/132/</link>
<title><![CDATA[[原]关于rpm打包的一个补充]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Tue, 12 Jun 2007 03:36:44 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/132/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;正如前面日志中写到的，我们在编写.spec脚本的时候，应该尽量使用对应操作系统平台的标准宏命令。但有些时候，标准的宏中定义的写法未必可以满足我们的要求，此时就需要给标准的宏添加参数。下面以maildrop这个套件为例说明。<br/><strong><span style="color: #4169E1;">一、举例</span></strong><br/> &nbsp; maildrop是一个邮件投递代理（MDA）软件，其可搭配postfix实现过滤和强大的功能。maildrop的邮箱大小限额是用off_t来表示，而off_t在32平台上是32位有符号整数。所以最大只能为2^31次方。也就是最大2GB。如果要突破这个限制，需要在编译的时候增加下述的环境变量：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">CPPFLAGS="-D_FILE_OFFSET_BITS=64"</div></div><br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/131/</link>
<title><![CDATA[[原]自己制作rpm软件包（2）]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Mon, 04 Jun 2007 06:56:20 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/131/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;上一篇日志写到，为什么要制作rpm包，以及如何使用.src.rpm文件生成rpm包。最后部分还看到.src.rpm的内容，实际上就是由.tar.gz源码、补丁软件和.spec脚本组成的。由此知道，使用.spec生成rpm包是比较简单的，因为.src.rpm通常都是由软件开发者或者第三方的专业制作人根据源码调试好的，所以，只要处理好平台兼容性和相关的版本，不会遇到太大的问题。<br/> &nbsp; &nbsp;但我觉得单纯明白用.spec生成rpm是不够的。常见有两个原因值得我们去了解用如何用源码制作rpm：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><span style="color: #00008B;">1、并不是所有的软件都提供.rpm方式的。</span><br/>这是最常见的原因。负责任的开发者应提供rpm方式的二进制软件包，以便用户选择使用。但也很常见就是软件作者只是发布了源码，最后一部分的编译和安装需要用户自行解决。我不想深究对错问题，反正知道有这样的情况就可以了；<br/><span style="color: #00008B;">2、自行打包一些文件或自己开发了一套软件</span><br/>当然，使用tar包或cpio等也可以打包文件，甚至比制作rpm要简单很多。但如果您想在安装的过程中就把一套额外的软件部署完毕，那使用rpm方式通常是是唯一的方法。而且rpm还有数据库协助软件升级、文件校验等，结合yum升级方式，没有理由不选择rpm，特别是对于最终用户，我认为提供rpm包是最佳的方法。</div></div><br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a>
]]>
</description>
</item>
</channel>
</rss>