Alternatives

How to Use update-alternatives Command on Ubuntu

How to Use update-alternatives Command on Ubuntu
  1. How do I use Ubuntu update alternatives?
  2. What is Update alternatives in Ubuntu?
  3. How do I get rid of Ubuntu update alternatives?
  4. What does etc alternatives do?
  5. How do I use sudo update alternatives?
  6. What is Update alternatives in Linux?

How do I use Ubuntu update alternatives?

In auto mode, the alternatives selects the command/executable/alternative with the highest available priority by default. In manual mode, you select the default command/executable/alternative for the alternatives manually. The default mode for any alternatives is auto.

What is Update alternatives in Ubuntu?

update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the Debian alternatives system. It is possible for several programs fulfilling the same or similar functions to be installed on a single system at the same time.

How do I get rid of Ubuntu update alternatives?

1 Answer

  1. Remove the link from /etc/alternatives.
  2. Remove the relevant file from the admin directory. /var/lib/dpkg/alternatives/ on ubuntu (debian may be the same but check the man pages under the FILES section) /var/lib/alternatives/ on CentOS 6&7.

What does etc alternatives do?

It updates the links in /etc/alternatives to point to the program for this purpose. There's lots of examples, like x-www-browser , editor , etc. that will link to the browser or editor of your preference.

How do I use sudo update alternatives?

Assuming one has installed a JDK in /opt/java/jdk1.8.0_144 then:

  1. Install the alternative for javac $ sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.8.0_144/bin/javac 1.
  2. Check / update the alternatives config: $ sudo update-alternatives --config javac.

What is Update alternatives in Linux?

When each package providing a file with a particular functionality is installed, changed or removed, alternatives is called to update information about that file in the alternatives system. ... In manual mode, the alternatives system will not change the links; it will leave all the decisions to the system administrator.

How To Perform Git clone in Kubernetes Pod deployment
How do I clone a Git repository in a Docker container? How do I clone an existing Git repository? How do I start the pod in Kubernetes? How do you mak...
Spanish School Ditches Windows For Ubuntu
Latest in the trend is a Spanish school that has opted Ubuntu to replace Windows operating system on 120 school computers. It happened a year back whe...
Debian Network Interface Setup
How do I create a network interface in Debian? How do I setup a network on Debian 10? Where is the network configuration file in Debian? How do I enab...