Categorized | News

Tips & Tricks: The RPM Package Manager

Posted on 12 June 2003 by Demian Turner

What is RPM? And how can it be used? The RedHat Package Manager can be used to install, uninstall, query and maintain the packages on your RedHat system. There are a few basic commands everyone should know:

Bookmark and Share

2 Comments For This Post

  1. tychay Says:

    There are a lot of rpm commands but one of the most
    (not very well documented is)

    rpm2cpio  | cpio -ivmud

    This will rip open a source RPM for the source files, patches, etc
    as well as the spec file into the current directory (so you may
    want to move into a subdirectory before running).

    Perform this command on the Red Hat’s PHP file to see
    really f*cked way of compiling PHP (in php.spec). 🙂

    BTW, to rebuild you need to use the rpmbuild command in
    newer Red Hat versions. This is also not very well

  2. tychay Says:

    rpm2cpio <some source rpm> | cpio -ivmud

    (forgot to use the &lt; &gt;)

Leave a Reply



Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists



PHPkitchen recommends you also check out the following sites :

Accounting for Small Businesses

FreeAgent sign-up