9

Where does Macports install the GNU sed when I install coreutils port? I want to use GNU sed instead of BSD sed on Mac OS X.

14

coreutils in macports does not install GNU sed. GNU sed is installed by port gsed and will end up as /opt/local/bin/gsed

| improve this answer | |
  • 1
    If you'd like to use GNU sed as the default sed then add /opt/local/libexec/gnubin early in your PATH environment variable. – markshep Nov 12 '16 at 11:38
  • At least at this time, this answer appears to be incorrect. port contents coreutils | grep sed yields nothing. – oarfish Feb 18 '18 at 17:57
  • @oarfish The answer is correct it says "coreutils in macports does not install GNU sed. " that would lead me to expect the command you ran should be empty – mmmmmm Feb 18 '18 at 18:13
  • Sorry that was a huge brainfart on my part. Not sure what I was reading. – oarfish Feb 19 '18 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.