How can I backup a currently installed RPM

–repackage Re-package the files before erasing.

The previously installed package will be named according to the macro %_repackage_name_fmt and will be created in the directory named by the macro %_repackage_dir (default value is /var/spool/repackage).

–replacefiles

Install the packages even if they replace files from other, already installed, packages.

–replacepkgs

Install the packages even if some of them are already installed on this system.

Once the package has been downloaded, install it with the –repackage option.

This will create an RPM from the existing package and install the new one.

rpm -Fvh –repackage rpm-file-name.rpm

One Response to “How can I backup a currently installed RPM”

  1. 3chequeredon 13 Jan 2022 at 12:08 am

    2wherewithal…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.