InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Brew tutorials

  • Mac brew (homebrew) - quick start guide
  • Mac brew - how to find latest available package without installing
  • Mac brew - how to relink installed binaries for a package
 
  • Home
  • > Tutorials
  • > Mac
  • > Brew

Mac brew – how to relink installed binaries for a package

By admin on Dec 3, 2015

When brew installs a package, it also links the binary commands to brew prefix location. In case you have installed a package and for reason linking did not happen properly, you can relink the package. Here are steps to do brew relink for package imagamagick.

brew – unlinking a package

First run the following to unlink imagamagick.

$ brew unlink imagemagick
Unlinking /usr/local/Cellar/imagemagick/6.9.2-7... 72 symlinks removed

brew – linking a package

  1. Run the following to link imagamagick in dryrun mode. This will also list down what all will get linked.
    $ brew link imagemagick --dry-run
    
  2. To do actual linking run the following
    $ brew link imagemagick
    Linking /usr/local/Cellar/imagemagick/6.9.2-7... 71 symlinks created
    
  3. To see if link has been for created for one command (e.g. convert), run the following
    $ ls -l $(brew --prefix)/bin/convert
    

    Note that brew --prefix will list the brew prefix for installation.

  4. Suggested posts:

    1. Php look ahead and look behind regex examples
    2. How to install Imagemagick on Mac
    3. Javascript – print all methods of an object
    4. How to use CasperJS to automate website testing
    5. Mac – how to convert mp4 to webm
    6. How to install node.js on Ubuntu Linux
    7. php preg_match – greedy and lazy regex examples
    8. How to create animated gif using Mac preview
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Brew, Mac, Mac Command Line, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress