As you said, you can use Fink, MacPorts, etc.
But if you just want to update grep, you might want to grab the sources and compile them.
If you decide to go with this option, do not install it in / usr / bin .
If you do this, you will overwrite something necessary for your OS.
Thus, with a different version, you may run into problems, since the OS will be with the exception of another version.
And also, if you do this, you will have problems updating the OS, as it may overwrite your own version.
So, if you want to compile it, put it in /usr/local/bin
(usually with the --prefix
option) and update the path environment variable.
This is a safe way.
Typically, compiling such a program is just standard ./configure
, make
and sudo make install
material.
But first, familiarize yourself with the compilation options by typing:
./configure --help
source share