Is it possible to substitute binary with same name alternative? I have /usr/bin/qtcreator
I want to use alternative version but /usr/bin/qtcreator
is binary but not alternative.
What the way I should do this?
Is it possible to substitute binary with same name alternative? I have /usr/bin/qtcreator
I want to use alternative version but /usr/bin/qtcreator
is binary but not alternative.
What the way I should do this?
You could place your new qtcreator at /usr/local/bin/qtcreator
, that location should have preference over /usr/bin
.
You can check the possible locations for binaries and the order is which they are searched with echo $PATH
and you can check which binary will be called with which qtcreator
In Bash:
$ alias qtcreator="/usr/local/bin/qtcreator"
or make sure the path to desired binary is mentioned before the undesired path in $PATH
(... as mentioned by others).