skip to main | skip to sidebar

Thursday, July 05, 2007

How to use RPM

In its simplest form, RPM can be used to install packages:

rpm -i foobar-1.0-1.i386.rpm

The next simplest command is to uninstall a package:

rpm -e foobar

One of the more complex but highly useful commands allows you to install packages via FTP. If you are connected to the net and want to install a new package, all you need to do is specify the file with a valid URL, like so:

rpm -i ftp://ftp.redhat.com/pub/redhat/rh-2.0-beta/RPMS/foobar-1.0-1.i386.rpm

Please note, that RPM will now query and/or install via FTP.

While these are simple commands, rpm can be used in a multitude of ways. To see which options are available in your version of RPM, type:

rpm --help

You can find more details on what those options do in the RPM man page, found by typing:

man rpm



Posted by Guccica at 7:36 PM
Labels: linux

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

La' Guccica Memory Cafe'

Total Visitor

Blog Counters

Category 分类

  • EatinOut (1)
  • FTTx (1)
  • linux (2)
  • Networking (1)
  • Programming (2)
  • ss7 (7)
  • Websphere MQ Server (1)
  • 心情 (7)
  • 旅游 (3)
  • 芬兰出差的日子 (7)

Blog Archive

  • ►  2011 (1)
    • ►  July (1)
  • ►  2010 (1)
    • ►  May (1)
  • ►  2009 (1)
    • ►  July (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  November (4)
    • ►  October (5)
    • ►  September (2)
    • ►  May (1)
    • ►  February (2)
    • ►  January (1)
  • ▼  2007 (13)
    • ►  October (1)
    • ►  September (3)
    • ▼  July (2)
      • C++ Copy File Function
      • How to use RPM
    • ►  June (1)
    • ►  May (2)
    • ►  April (4)
  • ►  2006 (3)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)

About Me 关于我

Guccica
View my complete profile