3.23. Extracting RPM content
In particular cases, for example, if a package required by RPM is damaged, it is necessary to extract the content of the package. In such cases, if an RPM installation is still working despite the damage, you can use the
rpm2archive utility to convert an .rpm file to a tar archive to use the content of the package.
If the RPM installation is severely damaged, you can use the
rpm2cpio utility to convert the RPM package file to a cpio archive.
The following procedure describes how to convert an rpm payload to a tar archive using the
Exécutez la commande suivante :
$ rpm2archive filename.rpm
Replace filename with the name of the .rpm file.
The resulting file has the
.tgzsuffix. For example, to archive the
$ rpm2archive bash-4.4.19-6.el8.x86_64.rpm $ bash-4.4.19-6.el8.x86_64.rpm.tgz bash-4.4.19-6.el8.x86_64.rpm.tgz