If you find that you have deleted one file from a package which you have not modified from the original, there is a way to extract just that file from the RPM package. You need to be comfortable with CLI and RPM files for this. I won't describe some maneuvers in detail.
First find which package owns the file:
Code:
$ rpm -qf /etc/ppp/ip-down
sysconfig-0.71.11-7.2
Turns out it's in sysconfig.
Next, get hold of the RPM one way or another. If it's on the DVD you need to mount the DVD. If you have the ISO image, you can loop mount it. Otherwise you can fetch it from the repo with your web browser. Then run rpm2cpio to convert the RPM to a CPIO image and you can view its contents like this:
Code:
$ rpm2cpio sysconfig-0.71.11-7.2.x86_64.rpm | cpio -itv | grep down
lrwxrwxrwx 1 root root 5 Dec 3 21:45 ./etc/ppp/ip-down -> ip-up
lrwxrwxrwx 1 root root 5 Dec 3 21:45 ./etc/ppp/ipv6-down -> ip-up
So in fact it's just a symlink to ip-up and you can fix it by remaking the link. But if you had to extract it, you would do:
Code:
# cd /
# rpm2cpio /somewhere/sysconfig-0.71.11-7.2.x86_64.rpm | cpio -idmv ./etc/ppp/ip-down
It's important to be in / for the extraction and also to use the exact path as stored in the CPIO archive, that's why we entered ./etc/ppp/ip-down