Linux 版 (精华区)

发信人: clx (楚留香), 信区: Unix
标  题: RPM HOWTO (RPM at Idle)(06)
发信站: 紫 丁 香 (Sat Jun 27 17:09:47 1998), 转信

RPM HOWTO (RPM at Idle) : Now what can I really do with RPM?
Previous: Using RPM
Next: Building RPMs 


5. Now what can I really do with RPM?

RPM 是个非常有用的工具, 而且如您所知的, 它具有许多选项功
能。 让您了解这些功能的最好方式, 便是实际介绍几个□例, 前
面我们已经提过安装与解除安装的简单例子, 底下是一些额外的□
例: 

     假设说, 您不小心误删了几个档案, 但不确定到底是哪些档
     案, 您想对整个系统进行确认动作, 以了解哪些部份可能已
     经遗损, 您可以这样做: 

          rpm -Va

     假设说, 您碰到一个认不出来的档案, 想要知道它是属於哪
     一个程式套件的话, 您可以这样做: 

          rpm -qf /usr/X11R6/bin/xjewel

     其结果会得到: 

          xjewel-1.6-1

     如果您找到一个新的 RPM 档案, 却不清楚它的内容, 想要获
     得相关的资讯, 可以这样做: 

          rpm -qpi koules-1.2-2.i386.rpm

     其结果会得到: 

          Name        : koules                      Distribution: Red Hat Linux Colgate
          Version     : 1.2                               Vendor: Red Hat Software
          Release     : 2                             Build Date: Mon Sep 02 11:59:12 1996
          Install date: (none)                        Build Host: porky.redhat.com
          Group       : Games                         Source RPM: koules-1.2-2.src.rpm
          Size        : 614939
          Summary     : SVGAlib action game with multiplayer, network, and sound support
          Description :
          This arcade-style game is novel in conception and excellent in execution.
          No shooting, no blood, no guts, no gore.  The play is simple, but you
          still must develop skill to play.  This version uses SVGAlib to
          run on a graphics console.

     如果您想了解某个 RPM 档案, 会在系统里安装哪些档案, 您
     可以这样做: 

          rpm -qpl koules-1.2-2.i386.rpm

     其结果会是: 

          /usr/doc/koules
          /usr/doc/koules/ANNOUNCE
          /usr/doc/koules/BUGS
          /usr/doc/koules/COMPILE.OS2
          /usr/doc/koules/COPYING
          /usr/doc/koules/Card
          /usr/doc/koules/ChangeLog
          /usr/doc/koules/INSTALLATION
          /usr/doc/koules/Icon.xpm
          /usr/doc/koules/Icon2.xpm
          /usr/doc/koules/Koules.FAQ
          /usr/doc/koules/Koules.xpm
          /usr/doc/koules/README
          /usr/doc/koules/TODO
          /usr/games/koules
          /usr/games/koules.svga
          /usr/games/koules.tcl
          /usr/man/man6/koules.svga.6

上述只是一些□例, 当您对 RPM 愈加熟悉时, 应该能想出其他更
多的创意组合。


RPM HOWTO (RPM at Idle) : Now what can I really do with RPM?
Previous: Using RPM
Next: Building RPMs 

--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: 202.118.244.16]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:5.025毫秒