<?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/"
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
><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>Wed, 11 Jan 2012 18:03:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license> <item><title>在RedHat发行版中安装APT</title><link>http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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 <a href="http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/"> read more <span class="meta-nav">&#187;</span></a><br /><div><img src="http://lazing.ave7.net/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />]]></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/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><li><a href="http://lazing.ave7.net/2011/linux-server-tunning-apache-mpm-configuration/" rel="bookmark" title="2011/09/03">Linux Web服务器性能调优 &#8211; Apache的工作模式及配置</a></li><li><a href="http://lazing.ave7.net/2010/ubuntu-8-10-vpn-simple-configuration-points/" rel="bookmark" title="2010/08/17">Ubuntu 8.10 VPN 简单配置要点</a></li><li><a href="http://lazing.ave7.net/2011/linux-web-server-tunning-toolbox/" rel="bookmark" title="2011/09/03">Linux WEB服务器性能调优 &#8211; 工具箱</a></li></ul><p></p><p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Flazing.ave7.net%2F2009%2Frelease-in-the-redhat-install-apt%2F&title=%E5%9C%A8RedHat%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%AD%E5%AE%89%E8%A3%85APT" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><br /><div><img src="http://lazing.ave7.net/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /> <img src="http://lazing.ave7.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=377" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://lazing.ave7.net/2009/release-in-the-redhat-install-apt/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license> </item> </channel> </rss>
