⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpm 的介绍和应用 fedora 中文用户.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 3 页
字号:
      <DIV class=codeblock><CODE># rpm -qpi 
      http://mirrors.kernel.org/fedora/core/4/i386/os/ 
      Fedora/RPMS/gaim-1.3.0-1.fc4.i386.rpm<BR># rpm -ivh 
      http://mirrors.kernel.org/fedora/core/4/i386/os/ 
      Fedora/RPMS/gaim-1.3.0-1.fc4.i386.rpm</CODE></DIV>
      <P></P>
      <P>举一反三吧;</P>
      <P><B><BR>六、对已安装软件包查询的一点补充;<BR></B><BR>
      <DIV class=codeblock><CODE>[root@localhost RPMS]# 
      updatedb<BR>[root@localhost RPMS]# locate 软件名或文件名</CODE></DIV>
      <P></P>
      <P>通过updatedb,我们可以用 locate 来查询一些软件安装到哪里了;系统初次安装时要执行updatedb 
      ,每隔一段时间也要执行一次;以保持已安装软件库最新;updatedb 是slocate软件包所有;如果您没有这个命令,就得安装slocate 
      ;</P>
      <P>举例:</P>
      <P>
      <DIV class=codeblock><CODE>[root@localhost RPMS]# locate 
      gaim</CODE></DIV><BR><B><BR>七、从rpm软件包抽取文件;<BR></B><BR>
      <DIV class=codeblock><CODE>命令格式: rpm2cpio file.rpm |cpio 
      -div</CODE></DIV><BR>举例:<BR>
      <DIV class=codeblock><CODE>[root@localhost RPMS]# rpm2cpio 
      gaim-1.3.0-1.fc4.i386.rpm |cpio -div</CODE></DIV>
      <P></P>
      <P>抽取出来的文件就在当用操作目录中的 usr 和etc中;</P>
      <P>其实这样抽到文件不如指定安装目录来安装软件来的方便;也一样可以抽出文件;</P>
      <P>为软件包指定安装目录:要加 -relocate 参数;下面的举例是把gaim-1.3.0-1.fc4.i386.rpm指定安装在 
      /opt/gaim 目录中; </P>
      <P>
      <DIV class=codeblock><CODE>[root@localhost RPMS]# rpm -ivh --relocate 
      /=/opt/gaim gaim-1.3.0-1.fc4.i386.rpm<BR>Preparing... 
      ########################################### 
      [100%]<BR>&nbsp;&nbsp;&nbsp;1:gaim 
      ########################################### [100%]<BR>[root@localhost 
      RPMS]# ls /opt/<BR>gaim</CODE></DIV>
      <P></P>
      <P>这样也能一目了然;gaim的所有文件都是安装在 /opt/gaim 中,我们只是把gaim 
      目录备份一下,然后卸掉gaim;这样其实也算提取文件的一点用法;</P>
      <P><B><BR>八、RPM的配置文件;<BR></B><BR>RPM包管理,的配置文件是 rpmrc 
      ,我们可以在自己的系统中找到;比如Fedora Core 4.0中的rpmrc 文件位于;<BR>
      <DIV class=codeblock><CODE>[root@localhost RPMS]# locate 
      rpmrc<BR>/usr/lib/rpm/rpmrc<BR>/usr/lib/rpm/redhat/rpmrc</CODE></DIV>
      <P></P>
      <P>我们可以通过 rpm --showrc 
      查看;具体的还得我们自己来学习。呵。。。不要问我,我也不懂;只要您看了这篇文章,认为对您有用,您的水平就和我差不多;咱们水平是一样的,所以我不能帮助您了;请理解;<BR><B><BR>九、src.rpm的用法:<BR></B><BR><A 
      href="http://fedora.linuxsir.org/main/?q=src.spec.html">《file.src.rpm 
      使用方法的简介》</A></P>
      <P><B><BR>后记:</B>Fedora/Redhat 
      入门教程中的软件包管理篇,我已经写了很多了;目前还缺少通过源码包安装软件我方法以及一篇总结性的文档;我想在最近两天补齐,这两篇我以前写过;重新整理一下贴出来就行了;</P>
      <P>以我的水平来看,写Fedora 
      入门教程是极为费力气的,只能一点一点的完善和补充;我所写的教程是面对的是对Linux一无所知新手;教程中实例应用占大部份;我发现没有实例的情况下,新手不如看man 
      ;能看man了,当然也不是什么新手;</P>
      <P>经常在论坛上看一些弟兄的提问,虽然一问话解说过去也能应付;但想让大家更方便一点,不如写系统入门教程;虽然所花的时间要长一点;</P>
      <P><FONT size=4><B><BR>附录:<BR></B></FONT></P>
      <P><A href="http://fedora.linuxsir.org/main/?q=node/63">《Fedora / Redhat 
      软件包管理指南》</A></P>
      <TABLE id=attachments>
        <TBODY>
        <TR>
          <TH>附件</TH>
          <TH>大小</TH></TR>
        <TR class=dark>
          <TD><A 
            href="RPM 的介绍和应用  Fedora 中文用户.files/packageinstalllinuxsir.org0000.jpg">packageinstalllinuxsir.org0000.jpg</A></TD>
          <TD>10.23 KB</TD></TR></TBODY></TABLE></DIV>
      <DIV class=links>By beinan at 2005/08/28 - 16:05 | <A 
      href="http://fedora.linuxsir.org/main/?q=taxonomy/term/18">Fedora</A> | <A 
      href="http://fedora.linuxsir.org/main/?q=taxonomy/term/17">Redhat</A> | <A 
      href="http://fedora.linuxsir.org/main/?q=taxonomy/term/19">Apt Yum Rpm</A> 
      | <A href="http://fedora.linuxsir.org/main/?q=taxonomy/term/2">基础入门</A> | 
      <A title=共享你有关本文的思想和意见。 
      href="http://fedora.linuxsir.org/main/?q=comment/reply/50#comment">参与评论</A> 
      | 10723 阅读</DIV></DIV><A id=comment></A>
      <FORM action=?q=comment method=post>
      <DIV><INPUT type=hidden value=50 name=edit[nid]> </DIV></FORM><!-- end content -->
      <DIV id=footer>
      <CENTER><A href="http://www.linuxsir.org/" target=_blank>LinuxSir.Org 
      小组</A> | <A href="http://fedora.linuxsir.org/"><FONT color=red>© 2002-2005 
      Fedora&amp;Redhat 学习小组</FONT></A> | <A href="http://www.drupal.org/" 
      target=_blank>Powered By Drupal</A></CENTER><BR>
      <CENTER><FONT color=blue 
      size=3><B>本站属于LinuxSir.Org子站,转帖时请加来源,谢谢!</B></FONT></CENTER></DIV></TD>
    <TD id=sidebar-right>
      <DIV class="block block-block" id=block-block-2>
      <H2 class=title>基础知识</H2>
      <DIV class=content>
      <UL>
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/5/9/">安装配置</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/2/9/">基础入门</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/8/9/">硬件解决</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/19/9/">软件管理</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/16/9/">重要资源</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-4>
      <H2 class=title>软件应用</H2>
      <DIV class=content>
      <UL>
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/6/9/">桌面环境</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/10/9/">网络工具</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/11/9/">图形图像</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/12/9/">音乐视频</A> 
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=taxonomy/term/13/9/">软件其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-comment" id=block-comment-0>
      <H2 class=title>最新评论</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/137#comment-347">好像不灵</A><BR>21 
        hours 16 min 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/37#comment-346">同问啊..</A><BR>1 
        day 18 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/148#comment-345">找到了</A><BR>3 
        days 6 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/148#comment-344">装了</A><BR>3 
        days 11 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/134#comment-343">FC6挂载盘问题</A><BR>6 
        days 5 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/129#comment-342">简简单单Grub--从硬盘安装linux(原创)</A><BR>6 
        days 18 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/41#comment-341"></A><BR>1 
        week 15 hours 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/37#comment-340">我的也是</A><BR>1 
        week 2 days 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/138#comment-339"></A><BR>1 
        week 3 days 前
        <LI><A 
        href="http://fedora.linuxsir.org/main/?q=node/37#comment-338">这种方式最方便!</A><BR>1 
        week 4 days 前</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-aggregator" id=block-aggregator-feed-1>
      <H2 class=title>Fedora 讨论区</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267209&amp;goto=newpost">实在是不行了~发帖请教一下,关于samba的中文问题~~~</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267199&amp;goto=newpost">如何挂载第2块硬盘的ext3分区?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267193&amp;goto=newpost">请教/etc/fstab 
        用什么修改啊</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267184&amp;goto=newpost">FC6 
        Test2 安装好像有BUG</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267176&amp;goto=newpost">core5 
        罢工了!!</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267173&amp;goto=newpost">FC6t2可以硬盘安装吗?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267170&amp;goto=newpost">哪位是青岛的~~~~</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267168&amp;goto=newpost">为什么我的red 
        hat AS4用halt关机失败?</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267152&amp;goto=newpost">安装时遇到“No 
        devices of the appropriate type were found on the driver disk”</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267143&amp;goto=newpost">FC3笔记本安装问题</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267141&amp;goto=newpost">Office 
        for linux下载地址 + 安装方法</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267137&amp;goto=newpost">fedora5 
        启用SELinux后进入不了系统</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267136&amp;goto=newpost">Fedora 
        core 6 test 2装好了!!第一时间上图!!</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267134&amp;goto=newpost">大家帮忙:有无联网对Fedora启动的影响</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267130&amp;goto=newpost">[求助]SCSI硬盘报错,求救!~~</A> 
        </LI></UL></DIV>
      <DIV class=more-link><A title=查看此feed的最新消息 
      href="http://fedora.linuxsir.org/main/?q=aggregator/sources/1">更多</A></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -