I tried to apply patch to my file with following command
patch -p0 < foo.patch
I got the following output
bash: patch: command not found
I have Centos 5.x server.
Please guide what to do in this case
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
If you have your yum repo configured correctly.
otherwise, find an rpm on the internet for your OS and do