There is a way, though I'm not sure I would call it easy. The essential idea is to install the files in your $HOME and then tell gdb how to find them.
The steps are like:
- Download the RPMs.
- Install them somewhere in
$HOME. Sometimes you can do this with rpm -i --prefix=..., though I don't know if that will work for debuginfo RPMs. You can always extract the files from an RPM using cpio. Be sure to preserve the directory names.
- In gdb, use
set debug-file-directory to tell gdb to look at your new directory. You can put multiple directories here by separating them with ;.
Some more fiddling with source directories (see dir) might be needed after this.
It's maybe worth noting that you normally don't actually need system debuginfo.