Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6875473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:19:40+00:00 2026-05-27T04:19:40+00:00

I would like to update grep on my Mac to a more recent version

  • 0

I would like to update grep on my Mac to a more recent version than 2.5.1, which came with Mac OS 10.7.2. My question is: what is the best way to update grep (or any similar program) for the Mac? I could use Fink or MacPorts to install a new version and set my path variable to look in the appropriate branch of the file tree, or I could update the grep program in usr/bin, or perhaps there’s another approach that I haven’t considered. Because I am relatively new to the command line and the Unix back-end of the Mac, I’m concerned about breaking something. That said, I’d certainly be willing to compile the most recent stable release of grep from source and install it in /usr/bin if that’s the appropriate method. In case anyone wonders why I’d want to update grep from 2.5.1, I have two reasons: 1st, I’m learning to use grep with a reference book that is based on 2.5.3 (probably similar, I know); 2nd and more importantly, I want to learn how to update such programs simply as a matter of administrating my own system effectively.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:19:41+00:00Added an answer on May 27, 2026 at 4:19 am

    As you said, you may use Fink, MacPorts, etc…

    But if you just want to update grep, you may want to grab the sources, and compile them.

    If you decide to go with this option, don’t install it in /usr/bin.

    If you do so, you will overwrite something needed by your OS.
    So with another version, you may encounter problems, as the OS will except another version.

    And also, if you do so, you’ll have problems when updating your OS, as it might overwrite your own version.

    So if you want to compile it, place it in /usr/local/bin (usually with the --prefix option), and update your path environment variable.
    This is the safe way.

    Usually, compiling such a program is just the standard ./configure, make and sudo make install stuff.
    But be sure to take a look at the compiling options first, by typing:

    ./configure --help
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I forked someone's repository on GitHub and would like to update my version with
I would like to update a Windows Forms application to provide the following features:
I would like to update a large number of C++ source files with an
I would like to update a dll for a server process without stopping the
I would like to update (change the content) some part of the webpage without
I'm making an update to our database and would like to update rows that
I have a list of custom objects List and I would like to update
_stuckVertices is an array of pointers and I would like to update one index
I have a couple of tables (mySQL) that i would like to update with
I've a collection of a class' properties and would like to update each one's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.