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:
sudo dnf install deltarpm rpm-build
- Download two different versions of an RPM package, for example,
example-1.0-1.fc39.noarch.rpm
andexample-1.1-1.fc39.noarch.rpm
How to test
- Go to the directory where the RPMs are saved
cd /path/to/rpms
- Create a delta RPM package
makedeltarpm example-1.0-1.fc39.noarch.rpm example-1.1-1.fc39.noarch.rpm delta.rpm
- Apply the delta to the old package
applydeltarpm example-1.0-1.fc39.noarch.rpm delta.rpm new.rpm
- Install the new RPM
sudo dnf install new.rpm
- Verify the installed package
rpm -q example
Expected Results
- The
makedeltarpm
command should complete without errors. - The
applydeltarpm
command should complete without errors. - The
dnf install
command should complete successfully and the new version of the package should be installed. - 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:
- Try different RPM packages.
- Uninstall the
new.rpm
package and install the original RPM package to verify that the system can return to the previous state.