$ rpm2cpio
You can then use
$ rpm2cpio
5.1.3.2. ...a damaged RPM database?
Use
# rpm
5.1.4. Where Can I Learn More?
?
? The RPM web site: http://www.rpm.org
? The manpages for
5.2. Installing and Removing Software Using RPM
In addition to queries,
5.2.1. How Do I Do That?
-i
Installs a package that is not currently installed.
-U
Upgrades an existing package version, or installs the package if it is not currently installed.
-F
Freshens an existing installation of the package by upgrading the version. If the package is not currently installed, it remains uninstalled.
-e
Erases the installed package. Unlike the other options, -e requires a package name (
All of these operations must be performed as the
To perform a basic installation of a package, use the -i option and supply the name of a package file:
# rpm -i
To upgrade the package:
# rpm -U
In this case, the upgrade would succeed even if
To remove the package:
# rpm -e
Note that in this case, only the package name is given, not a package filename.
No additional arguments are needed if the installation or removal does not affect any other packages, but frequently a package to be installed will depend on other packages:
# rpm -i
error: Failed dependencies:
libdvdread >= 0.9.4 is needed by ogle-0.9.2-1.1.fr.i386
libdvdread.so.3 is needed by ogle-0.9.2-1.1.fr.i386
libmad.so.0 is needed by ogle-0.9.2-1.1.fr.i386
Likewise, when removing a package, other packages can depend on that package:
# rpm -e
error: Failed dependencies:
httpd-mmn = 20020903 is needed by (installed) mod_auth_kerb-5.0-6.i386
httpd-mmn = 20020903 is needed by (installed) mod_auth_mysql-2.6.1-4.i386
...(Lines snipped)...
httpd = 2.0.54-10.2 is needed by (installed) mod_ssl-2.0.54-10.2.i386
httpd is needed by (installed) squirrelmail-1.4.6-0.cvs20050812.1.fc4.noarch