How to configure yum server repository using iso dvd

If you are not already aware of "YUM" (Yellowdog Updater, Modified) is used for installing rpms. Yum allows automatic updates, package and dependency management, on RPM-based distributions. Ideally yum is used to get direct updates

sed :Replace whole line when match found

Here our requirement is to replace a line with our content when a match is found with in the file Our sample file /tmp/file This is line one This is line two This is line