RPM Redhat Package Manager T Shrinivasan [email_address]
Install Packages Source Compilation
Installpkg
Rpm
dpkg
What RPM can do? Install
Remove
Query
Verify
Upgrade
Who use it? Redhat
Fedora
CentOS
Mandriva
SuSE
...
RPM Terminology kernel-smp-2.4.18-3.athlon.rpm kernel-smp-2.4.18-3.i586.rpm kernel-smp-2.4.18-3.i686.rpm kernel-source-2.4.18-3.i386.rpm rootfiles-7.2-1.noarch.rpm  name-version-release.architecture.rpm
RPM Database Dir : /var/lib/rpm  # cd /var/lib/rpm # ls total 3534 -rw-r--r--  1 root  root  1351680 Oct 17 10:35 fileindex.rpm -rw-r--r--  1 root  root  16384 Oct 17 10:35 groupindex.rpm -rw-r--r--  1 root  root  16384 Oct 17 10:35 nameindex.rpm -rw-r--r--  1 root  root  2342536 Oct 17 10:35 packages.rpm -rw-r--r--  1 root  root  16384 Oct 17 10:35 providesindex.rpm -rw-r--r--  1 root  root  16384 Oct 17 10:35 requiredby.rpm #
Operations
Some Commands rpm -U filename.rpm rpm -i xcopilot-0.6.6-3.i386.rpm rpm -U xcopilot-0.6.6-3.i386.rpm
rpm -Uhv xcopilot-0.6.6-3.i386.rpm
rpm –e package_name
rpm –qa | more
Install Performing dependency checks.
Checking for conflicts.
Performing any tasks required before the install.
Deciding what to do with config files.
Unpacking files from the package and putting them in the proper place.
Performing any tasks required after the install.
Keeping track of what it did.
Install Options
Examples # rpm -ivv eject-1.2-2.i386.rpm D: installing eject-1.2-2.i386.rpm Installing eject-1.2-2.i386.rpm D: package: eject-1.2-2 files test = 0 D: running preinstall script (if any) D: setting file owners and groups by name (not id) D: ///usr/bin/eject owned by root (0), group root (0) mode 755 D: ///usr/man/man1/eject.1 owned by root (0), group root (0) mode 644 D: running postinstall script (if any) #
Examples # rpm -i --test rpm-2.0.11-1.i386.rpm /bin/rpm conflicts with file from rpm-2.3-1 /usr/bin/gendiff conflicts with file from rpm-2.3-1 /usr/bin/rpm2cpio conflicts with file from rpm-2.3-1 /usr/bin/rpmconvert conflicts with file from rpm-2.3-1 /usr/man/man8/rpm.8 conflicts with file from rpm-2.3-1 error: rpm-2.0.11-1.i386.rpm cannot be installed #

Rpm Introduction