I understand the motivation behind your question. update-alternatives elegantly solves the problem of managing several installed versions of a program (for example Java) or different ports of a program (vim vs. elvis vs. vile) by making one of them the default one.

update-alternatives, found in many Linux distros, creates and manages a set of symlinks from /bin, /usr/bin (and the like) to /etc/alternatives, and from there to the location where the program is installed.

For example, in openSUSE java is symlinked to /etc/alternatives/java, which is symlinked to a "private" path where java resides:

/usr/bin/java -> /etc/alternatives/java
/etc/alternatives/java -> /usr/lib64/jvm/java-1.5.0-sun-1.5.0/jre/bin/java

Unfortunately, and although some think it would be necessary, at least for MacPorts, there is no such thing in OS X. I have personally solved the lack of update-alternatives with aliases in my .bashrc:

alias ls='/usr/local/bin/ls'

or simply changing $PATH:

PATH=/usr/local/bin:$PATH

If you can't solve it like this and are weighing the fact of porting it to OS X be aware that although update-alternatives' first incarnation was a Perl script, it was rewritten in C for Debian, and some other distros adopted it later (for instance openSUSE 12.1).

openSUSE 11.4 provides the Perl version as an RPM package. If you are looking for the C version, go for any recent Ubuntu or Debian release, or openSUSE 12.1 or later.

Answer from jaume on Stack Exchange
Top answer
1 of 2
13

I understand the motivation behind your question. update-alternatives elegantly solves the problem of managing several installed versions of a program (for example Java) or different ports of a program (vim vs. elvis vs. vile) by making one of them the default one.

update-alternatives, found in many Linux distros, creates and manages a set of symlinks from /bin, /usr/bin (and the like) to /etc/alternatives, and from there to the location where the program is installed.

For example, in openSUSE java is symlinked to /etc/alternatives/java, which is symlinked to a "private" path where java resides:

/usr/bin/java -> /etc/alternatives/java
/etc/alternatives/java -> /usr/lib64/jvm/java-1.5.0-sun-1.5.0/jre/bin/java

Unfortunately, and although some think it would be necessary, at least for MacPorts, there is no such thing in OS X. I have personally solved the lack of update-alternatives with aliases in my .bashrc:

alias ls='/usr/local/bin/ls'

or simply changing $PATH:

PATH=/usr/local/bin:$PATH

If you can't solve it like this and are weighing the fact of porting it to OS X be aware that although update-alternatives' first incarnation was a Perl script, it was rewritten in C for Debian, and some other distros adopted it later (for instance openSUSE 12.1).

openSUSE 11.4 provides the Perl version as an RPM package. If you are looking for the C version, go for any recent Ubuntu or Debian release, or openSUSE 12.1 or later.

2 of 2
1
Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted.

Macports supports this capability via 'port select' for many language packages, mysql, and others. (I'm using version MacPorts 2.4.2.)

🌐
Den's Hub
denshub.com › home › posts › how to update macos apps without macupdater
How to Update macOS Apps Without MacUpdater - Den's Hub
May 19, 2026 - MacUpdater shut down January 1, 2026. Compare the best alternatives: Latest, Updatest, Homebrew, mas-cli, and Topgrade.
Discussions

OS update alternative to download? - Apple Community
Purchased version allows for smart updates and schedules) ... If you have a small thumbdrive you can create a bootable High Sierra installer. See these links for help creating a bootable installer. You will not have to download again. How to Create a Bootable Install Drive for macOS High Sierra More on discussions.apple.com
🌐 discussions.apple.com
November 25, 2017
linux command --> macos command equivalent
I don't know; I'm here because I use Linux. More on reddit.com
🌐 r/linuxquestions
5
0
August 26, 2021
macos - How to update Java to 7 on max OSX? - Stack Overflow
When I type java -version into my terminal, I get: java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462,... More on stackoverflow.com
🌐 stackoverflow.com
MacUpdater alternatives? - Software - MPU Talk
Wednesday December 31, 2025 will be the last day we can use/enjoy CoreCode’s MacUpdater 3 to keep software on our Mac up-to-date: Which alternatives do you (plan to) use? I’m currently using these (but interested in alternatives): More on talk.macpowerusers.com
🌐 talk.macpowerusers.com
1
0
December 20, 2025
People also ask

What is the best app updater for Mac?
It depends on what you value. The best updater before 2026 was MacUpdater, but it's unsupported now. So, if you want an actively maintained tool with in-app updates and a batch update option, App Cleaner & Uninstaller is one of the strongest options in 2026.
🌐
nektony.com
nektony.com › home › blog › macupdater alternative: how nektony app cleaner & uninstaller updates apps
MacUpdater alternative in 2026: How to update apps with one click
Is MacUpdater safe to use?
Yes, it's safe. MacUpdater is Apple-notarized and doesn't contain malware. However, it's officially discontinued (since January 2026), and its update database is no longer actively maintained. That means safety isn't the issue — long-term reliability is.
🌐
nektony.com
nektony.com › home › blog › macupdater alternative: how nektony app cleaner & uninstaller updates apps
MacUpdater alternative in 2026: How to update apps with one click
Can App Cleaner & Uninstaller update apps?
Absolutely — App Cleaner & Uninstaller can detect and install updates directly inside the app, including App Store and developer-site apps. You can update apps one by one or all at once.
🌐
nektony.com
nektony.com › home › blog › macupdater alternative: how nektony app cleaner & uninstaller updates apps
MacUpdater alternative in 2026: How to update apps with one click
🌐
AlternativeTo
alternativeto.net › software › macupdate-desktop
MacUpdate Desktop Alternatives - Explore Similar Software | AlternativeTo
The best MacUpdate Desktop alternatives are Ninite, MacUpdater and GNOME Software. Our crowd-sourced lists contains more than 25 apps similar to MacUpdate Desktop for Windows, Web-based, Linux, Mac and more.
🌐
Apple Community
discussions.apple.com › thread › 8173024
OS update alternative to download? - Apple Community
November 25, 2017 - Purchased version allows for smart updates and schedules) ... If you have a small thumbdrive you can create a bootable High Sierra installer. See these links for help creating a bootable installer. You will not have to download again. How to Create a Bootable Install Drive for macOS High Sierra
🌐
Nektony
nektony.com › home › blog › macupdater alternative: how nektony app cleaner & uninstaller updates apps
MacUpdater alternative in 2026: How to update apps with one click
March 16, 2026 - You’ll also find a detailed ... & Uninstaller is a solid alternative to MacUpdater. ... To figure out how MacUpdater and App Cleaner & Uninstaller handle app updates in practice, I ran both tools on a single MacBook Pro M1 2020 running macOS Tahoe 26.2....
🌐
Product Hunt
producthunt.com › products › macupdate › alternatives
MacUpdate Competitors & Alternatives (2026) | Product Hunt
May 25, 2026 - Explore MacUpdate alternatives like Raycast, Setapp, Alfred, and Swish to boost Mac productivity and app discovery with curated tools and smart workflows.
Find elsewhere
🌐
Reddit
reddit.com › r/linuxquestions › linux command --> macos command equivalent
r/linuxquestions on Reddit: linux command --> macos command equivalent
August 26, 2021 -

linux command --> macos command equivalent

I came across an linux sudo command that I need to port to macos.

sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force

This command should set the priority when calling ninja to /usr/local/bin/ninja (* Am I right? *)

What's the equivalent command for MacOS?

EDIT:

This is the 3 lines of codes that I need to port to MacOS.

The third is for a specific environment for a python program to run.

!wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip

!sudo unzip ninja-linux.zip -d /usr/local/bin/

!sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force

🌐
TidBITS
tidbits.com › home › macupdater shuts down, leaving users searching for alternatives
MacUpdater Shuts Down, Leaving Users Searching for Alternatives - TidBITS
January 15, 2026 - Here are a few notable MacUpdater alternatives, some of which were discussed in a lengthy TidBITS Talk thread about the situation: CleanMyMac, Latest, MacUpdate Desktop, and Updatest.
🌐
Beyondjava
beyondjava.net › selecting-java-version-macos-linux-windows
Selecting a Java Version on MacOS, Linux, and Windows
Beyond Java · Sitemap · Talks & Articles · Projects · Guest Posts · About · Legalese · Statistics · (opt out) · Mastodon
🌐
Blogger
gochev.blogspot.com › 2019 › 07 › use-multiple-jvm-versions-on-mac-os-and.html
Use Multiple JVM versions on Mac OS and Linux
Register them as alternatives sudo update-alternatives --install /usr/bin/java java /opt/java-8-oracle/bin/java 1081 sudo update-alternatives --install /usr/bin/java java /opt/sap-machine-jdk-11.0.3/bin/java 1080
🌐
OnWorks
onworks.net › home › programs › update alternatives online
update-alternatives
Run online update-alternatives in free Ubuntu online, free Fedora online, free Windows online emulator or free MACOS online emulator by OnWorks
🌐
Quora
quora.com › Whats-the-best-alternative-to-MacUpdate-com-to-update-Mac-applications-for-free
What's the best alternative to MacUpdate.com to update Mac applications for free? - Quora
Answer (1 of 5): I’ve found MacUpdate to be unnecessary these days. Software purchased through the Mac App Store gets updated automatically and I’ve found that all of the frequently used applications I’ve bought direct from the authors can be updated from within the applications themselves.
Top answer
1 of 2
1

Oracle Java 7 and Apple Java 6 are completely different and they coexist on the same machine as they inhabit totally separate locations.

Java 7, if installed, lives in:

/Library/"Internet Plug-Ins"/JavaAppletPlugin.plugin/Contents/Home

Java 6, if installed, lives in:

/System/Library/Frameworks/JavaVM.framework/Versions/A/

(And the more traditional Java 6 JDK is at: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home)

When you type java, you're running /usr/bin/java, which is a symbolic link to Java 6. In fact, if you type ls -l /usr/bin | grep -i java you will see a bunch of symbolic links for the typical JDK/JRE executables.

So if you have installed Java 7, and that's what you want to use from the command line, you can change into its directory and run its specific binaries in bin. To avoid that, you can add its bin directory to your Bash search path, so its contents are invoked instead of the Java 6 symlinks in /usr/bin. To do this, alter /etc/paths to add the bin directory before the first line:

{ echo "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin"; \
  cat /etc/paths; } | sudo tee /etc/paths > /dev/null

Then set the JAVA_HOME environment variable, so supporting software knows where to find Java 7:

{ echo -n "export JAVA_HOME=";
echo "/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"; } \
| sudo tee -a /etc/bashrc > /dev/null

Now, in any new Terminal window, when you type java -version, you'll see java version "1.7.0_51". (And if you still want to be able to run the Java 6 binaries, you can call them with /usr/bin/java, /usr/bin/javac, etc.)

2 of 2
1

You could try issuing the following command:

update-alternatives –config java

That command will make you able to choose between Java versions. This command worked for me on a Linux-based machine, so I think there would be no different than a Mac, but I'm not sure, you could try it out.

🌐
MacPowerUsers
talk.macpowerusers.com › software
MacUpdater alternatives? - Software - MPU Talk
December 20, 2025 - Wednesday December 31, 2025 will be the last day we can use/enjoy CoreCode’s MacUpdater 3 to keep software on our Mac up-to-date: Which alternatives do you (plan to) use? I’m currently using these (but interested in …
🌐
Command Not Found
command-not-found.com › update-alternatives
command-not-found.com – update-alternatives
Add a symbolic link: sudo update-alternatives --install path/to/symlink command_name path/to/command_binary priority