From Fedora Project Wiki
(Created page with "{{QA/Test_Case |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` and `example-1.1-1.fc39.noarch.rpm` |actions= # Go to the directory where the RPMs are saved # `cd /pa...") |
No edit summary |
||
Line 6: | Line 6: | ||
|actions= | |actions= | ||
# Go to the directory where the RPMs are saved | # 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` | |||
# Create a delta RPM package | # 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` | |||
# Apply the delta to the old package | # Verify the installed package `rpm -q example` | ||
# Install the new RPM | |||
# Verify the installed package | |||
|results= | |results= |
Latest revision as of 10:36, 17 August 2023
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.