How to Download a Source RPM with DNF and Install it to See the Patches
How to Download a Source RPM with DNF and Install it to See the Patches
- Install the
rpmbuildpackage:
dnf install -y rpmbuild
- Download the source RPM that you want, for example:
dnf download --source openssh
- Install the downloaded RPM like the following:
rpm --install ./openssh-8.7p1-47.el9_7.rocky.0.1.src.rp
- Check the home directory and you’ll see the
rpmbuilddirectory available. Inside will be theSOURCESandSPECdirectories. Patches are available underSOURCES.