<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Himmel &#187; apt</title>
	<atom:link href="http://lazing.ave7.net/tag/apt/feed/" rel="self" type="application/rss+xml" />
	<link>http://lazing.ave7.net</link>
	<description>时间很长；现在很短；距离很长；相遇很短</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:55:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>在RedHat发行版中安装APT</title>
		<link>http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/</link>
		<comments>http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 04:00:33 +0000</pubDate>
		<dc:creator>某L</dc:creator>
				<category><![CDATA[Code Jam]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://lazing.ave7.net/blog/?p=377</guid>
		<description><![CDATA[background: 高级包装工具（英语：Advanced Packaging Tools,简称：APT）是Debian及其衍生发行版的软件包管理器。APT可以自动下载，配置，安装二进制或者源代码格式的软件包，因此简化了Unix系统上管理软件的过程。APT最早被设计成dpkg的前端，用来处理deb格式的软件包。现在经过APT-RPM组织修改，APT已经可以安装在支援RPM的系统管理RPM套件。 寻找合适的RPM 首先就是要确定发行包的版本： $ cat /etc/issue Red Hat Enterprise Linux Server release 5 (Tikanga) Kernel r on an m 然后是找到合适的RPM安装包，http://apt-rpm.org/ 提供了源码，可以自己编译。 请根据实际情况选择合适的打包 http://rpmfind.net/linux/rpm2html/search.php?query=apt 下载安装 $ wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm --2009-02-17 11:43:36-- ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm =&#62; `apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm' Resolving fr2.rpmfind.net... 195.220.108.108 Connecting to fr2.rpmfind.net&#124;195.220.108.108&#124;:21... connected. Logging in as anonymous ... Logged in! ==&#62; SYST ... done. ==&#62; PWD [...]]]></description>
			<content:encoded><![CDATA[<p>background:</p>
<p><strong>高级包装工具</strong>（<a href="http://zh.wikipedia.org/w/index.php?title=%E8%8B%B1%E8%AA%9E&amp;variant=zh-cn">英语</a>：<strong>Advanced Packaging Tools</strong>,简称：<strong>APT</strong>）是<a href="http://zh.wikipedia.org/w/index.php?title=Debian&amp;variant=zh-cn">Debian</a>及其衍生<a href="http://zh.wikipedia.org/w/index.php?title=%E7%99%BC%E8%A1%8C%E7%89%88&amp;variant=zh-cn">发行版</a>的<a href="http://zh.wikipedia.org/w/index.php?title=%E8%BB%9F%E4%BB%B6%E5%8C%85&amp;variant=zh-cn">软件包</a>管理器。APT可以自动下载，配置，安装二进制或者源代码格式的<a href="http://zh.wikipedia.org/w/index.php?title=%E8%BB%9F%E4%BB%B6%E5%8C%85&amp;variant=zh-cn">软件包</a>，因此简化了<a href="http://zh.wikipedia.org/w/index.php?title=Unix&amp;variant=zh-cn">Unix</a>系统上管理软件的过程。APT最早被设计成<a href="http://zh.wikipedia.org/w/index.php?title=Dpkg&amp;variant=zh-cn">dpkg</a>的前端，用来处理<a href="http://zh.wikipedia.org/w/index.php?title=Deb&amp;variant=zh-cn">deb</a>格式的软件包。现在经过APT-RPM组织修改，APT已经可以安装在支援<a href="http://zh.wikipedia.org/w/index.php?title=RPM%E5%A5%97%E4%BB%B6%E7%AE%A1%E7%90%86%E5%93%A1&amp;variant=zh-cn">RPM</a>的系统管理<a href="http://zh.wikipedia.org/w/index.php?title=RPM%E5%A5%97%E4%BB%B6%E7%AE%A1%E7%90%86%E5%93%A1&amp;variant=zh-cn">RPM</a>套件。</p>
<h3>寻找合适的RPM</h3>
<p>首先就是要确定发行包的版本：</p>
<pre class="py">$ cat /etc/issue
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel r on an m</pre>
<p>然后是找到合适的RPM安装包，<a title="http://apt-rpm.org/" href="http://apt-rpm.org/">http://apt-rpm.org/</a> 提供了源码，可以自己编译。</p>
<p>请根据实际情况选择合适的打包</p>
<pre class="py"><a title="http://rpmfind.net/linux/rpm2html/search.php?query=apt" href="http://rpmfind.net/linux/rpm2html/search.php?query=apt">http://rpmfind.net/linux/rpm2html/search.php?query=apt</a></pre>
<h3>下载安装</h3>
<pre class="py">$ wget <a href="ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm">ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm</a>
--2009-02-17 11:43:36--  <a href="ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm">ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm</a>
           =&gt; `apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm'
Resolving fr2.rpmfind.net... 195.220.108.108
Connecting to fr2.rpmfind.net|195.220.108.108|:21... connected.
Logging in as anonymous ... Logged in!
==&gt; SYST ... done.    ==&gt; PWD ... done.
==&gt; TYPE I ... done.  ==&gt; CWD /linux/dag/redhat/el5/en/i386/dag/RPMS ... done.
==&gt; SIZE apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm ... 2886071
==&gt; PASV ... done.    ==&gt; RETR apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm ... done.
Length: 2886071 (2.8M)

22% [=======&gt;                               ] 645,320     96.8K/s  eta 30s</pre>
<pre class="py">$ rpm -ivh apt-0.5.15lorg3.94a-5.el5.rf.i386.rpm</pre>
<h3>配置apt sources.list</h3>
<pre class="py">$ sudo cp /etc/apt/sources.list.d/os.list /etc/apt/sources.list
$ sudo nano /etc/apt/sources.list</pre>
<p>根据实际情况编辑，如</p>
<pre class="py">repomd <a href="http://mirror.centos.org">http://mirror.centos.org</a> centos/5/os/i386
repomd <a href="http://mirror.centos.org">http://mirror.centos.org</a> centos/5/updates/i386
repomd <a href="http://mirror.centos.org">http://mirror.centos.org</a> centos/5/extras/i386
repomd <a href="http://mirror.centos.org">http://mirror.centos.org</a> centos/5/fasttrack/i386
#repomd http://mrepo rhel5s-i386/RPMS.os
#repomd http://mrepo rhel5s-i386/RPMS.updates
#rpm http://mrepo rhel5s-i386 os updates</pre>
<h3>导入GPG验证</h3>
<p>请根据自己选择的APT库来找到对应的GPG</p>
<p>rpm &#8211;import <a href="http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5">http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</a></p>
<p>否则会出现类似</p>
<p>E : Unknown signature /var/cache/apt/archives/bmp_0.9.7-2.rhfc3.nr_i386.rpm : (SHA1) DSA sha1 md5 Policies Towards Them (Part Ⅰ) NOT OK (MISSING KEYS : GPG#b8693f2c)</p>
<h3>使用APT</h3>
<pre class="py">$ sudo apt-get update
$ sudo apt-get install pkgname</pre>
<ul>
<li><a href="http://lazing.ave7.net/2010/ubuntu-8-10-vpn-%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae%e8%a6%81%e7%82%b9/" rel="bookmark" title="2010/08/17">Ubuntu 8.10 VPN 简单配置要点</a></li>
<li><a href="http://lazing.ave7.net/2009/performance-tuning-mysql-server-at-linux/" rel="bookmark" title="2009/05/10">性能调优：MySql Server at Linux</a></li>
<li><a href="http://lazing.ave7.net/2009/linux-compile-problem-finishing-php/" rel="bookmark" title="2009/04/26">Linux编译PHP问题整理</a></li>
</ul>
<p><!-- Random Posts took 8.611 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
