From Fedora Project Wiki

Description

This test case ensures that deltarpm functions correctly. It tests creating a delta RPM package, applying it, and verifying that the applied package works as expected.

Setup

Install the required packages:

  1. sudo dnf install deltarpm rpm-build
  2. Download two different versions of an RPM package, for example, example-1.0-1.fc39.noarch.rpm and example-1.1-1.fc39.noarch.rpm

How to test

  1. Go to the directory where the RPMs are saved cd /path/to/rpms
  2. Create a delta RPM package makedeltarpm example-1.0-1.fc39.noarch.rpm example-1.1-1.fc39.noarch.rpm delta.rpm
  3. Apply the delta to the old package applydeltarpm example-1.0-1.fc39.noarch.rpm delta.rpm new.rpm
  4. Install the new RPM sudo dnf install new.rpm
  5. Verify the installed package rpm -q example

Expected Results

  1. The makedeltarpm command should complete without errors.
  2. The applydeltarpm command should complete without errors.
  3. The dnf install command should complete successfully and the new version of the package should be installed.
  4. The rpm -q example command should show the new version of the package installed (e.g., example-1.1-1.fc39.noarch).

Optional

For exploratory testing:

  1. Try different RPM packages.
  2. Uninstall the new.rpm package and install the original RPM package to verify that the system can return to the previous state.