in some distributions, a way for the system administrator to choose between similar programs

learn more… | top users | synonyms

0
votes
2answers
89 views

Why is apt upgrade changing my x-www-browser to google-chrome-stable?

For the second time now, I've just run apt upgrade and had this happen: [...] Setting up google-chrome-stable (48.0.2564.116-1) ... update-alternatives: using /usr/bin/google-chrome-stable to provide ...
0
votes
1answer
37 views

How to find all the available packages (and executables) that can fulfill an “alternative”? [duplicate]

By "alternatives" I mean (for the most part; see exception below) the "roles" corresponding to the files under /var/lib/dpkg/alternatives. These roles include awk desktop-background editor ...
2
votes
1answer
146 views

“alternatives” for shared libraries? Does that even work?

I'm trying to link against a shared library that has several different implementations - specifically blas, openblas and atlas all provide the same binary interface through the /usr/lib/libblas.so ...
2
votes
1answer
329 views

update-alternatives has two entries, one in auto and other in manual

On my Ubuntu 15.04, sudo update-alternatives --config java shows: Selection Path Priority Status ...
3
votes
2answers
158 views

Debian alternatives system: programs with the same name and priorities

I can't understand from the update-alternatives documentation how the priorities system works. Suppose that I want /usr/bin/node to point to nodejs for nodejs applications and to an amateur radio ...
2
votes
1answer
66 views

How to use update-alternatives in an alternate root path

Is there a way to have the update-alternatives command operate on a root file system mounted on a path other than '/'? For example, the update-rc.d and ldconfig commands have an -r <path> ...
0
votes
1answer
667 views

Installing jre-8u51-linux-x64.rpm on SLES 11 SP3: Failed dependencies

I tried to update my Java installation on a SLES 11 SP3 system using rpm -i jre-8u51-linux-x64.rpm (for some reasons I want to run the original Java and not the IBM Java provided by SUSE) and I got ...
0
votes
1answer
76 views

How to prevent Google Chrome from circumventing the default browser settings?

After I installed Google Chrome on my work laptop, Pidgin links open with Chrome even though Firefox is set as my default browser. Pidgin is using sensible-browser to open links. How can I get ...
1
vote
0answers
312 views

java version not found in redhat

My OS is redhat linux. It's having the default java 1.4.2, but I need java 1.7.45, for that I am trying as follows: /usr/sbin/alternatives --install /usr/bin/java java /u01/java7/bin/java 5 ...
1
vote
1answer
310 views

Installing java 1.6 when 1.7 already installed?

I have java 1.7 installed and I am trying to install java 1.6. I have updated java_home and path variable pointing to the new location, also ran these commands. sudo update-alternatives --set java ...
3
votes
6answers
194 views

search a command in PATH with the same name of the script

For example, my script is $HOME/bin/sudo. I'd like to search for an executable in $PATH with the same name, sudo, and run it - but not the script $HOME/bin/sudo itself, otherwise I will run into an ...
1
vote
0answers
292 views

Are there any alternatives to pidof? (smaller footprint)

Well, I've just found out that with extensive usage of pidof in very short intervals, the seemingly tiny tool can be a great CPU hog. (Source: top) On my older machine, it can easily reach 30 percent ...
8
votes
4answers
213 views

Finding all software packages in Debian that provide a particular alternative

The Debian distribution has the Debian Alternatives System. From the Wiki: The Debian alternatives system creates a way for several programs that fulfill the same or similar functions to be ...
3
votes
2answers
425 views

Why whould xterm behave differently than x-terminal-emulator when it points to the same executable?

lrwxrwxrwx 1 root root 14 Apr 19 14:36 /etc/alternatives/x-terminal-emulator -> /usr/bin/xterm Running it using these 2 calls: /usr/bin/xterm /etc/alternatives/x-terminal-emulator First ...
8
votes
1answer
6k views

What is the difference between JAVA_HOME and update-alternatives?

I have been trying to figure out the best way to run OpenJDK Java Runtime as default Java for my Fedora box and use Oracle JDK 6 for Android development namely for running Android SDK Manager, Android ...
1
vote
2answers
1k views

I deleted /etc/alternatives/java [closed]

I'm on Ubuntu 12.04 on a 32-bits Dell machine. I was trying to install java JDK for 32-bits linux platform and I accidentally deleted the file /etc/alternatives/java. I would love to recreate my ...
2
votes
1answer
545 views

update-alternatives: disable log file /var/log/alternatives.log

I would like to disable the logfile /var/log/alternatives.log. I understand that this is being logged by update-alternatives script, and I also understand that update-alternatives can take the ...
2
votes
1answer
70 views

What happens to the old binary when a new one compiled from source?

I've compiled git from source after git from the repository was already installed via the package manager. In that process, the "from source" git took its place as the "main system git". ...
9
votes
2answers
13k views

Better way to add alternative using update-alternatives?

I'm sorry for my bad writing, I'm not a native speaker. I've looked up the manual of update-alternatives several times but I can't find out how to show the current link pointing to a specific ...
2
votes
1answer
308 views

apt-get can not detect correct python version when using update-alternatives for python

I have installed different python versions on my Linux Mint DE. I used the update-alternatives --set statement to easily switch between the different versions. Unfortunately sometimes apt-get install ...
2
votes
0answers
389 views

Install man pages in directory with update-alternatives

Using update-alternatives(8) on a Debian system it is possible to add man pages as slaves under some master alternative. For example, the following command installs an alternative man page tclsh.1 ...
1
vote
1answer
2k views

How to set clang++ as the c++ compiler?

I'm trying to set clang++ as the system C++ compiler on Fedora 18. I have installed clang and added it to alternatives but it doesn't appear to be working. [user@localhost ~]$ alternatives --display ...
5
votes
1answer
90 views

How does APT deal with different programs with the same name?

I decided to finally learn vi and as I was doing that I realized that vi wasn't behaving as I expected. I learned from another post that this was because, on Ubuntu, vim-tiny is installed by default. ...
6
votes
1answer
2k views

update-alternatives just for one user

I'm using a shared server. On that server different versions of Java are installed: Selection Path Priority Status ...
1
vote
2answers
2k views

Several versions of JAVA on one PC

I want to use jre-1_5_0_21 on my Fedora 14 box. Here's whats installed on my PC: $ update-alternatives --config java There are 2 programs which provide 'java'. Selection Command ...
2
votes
1answer
2k views

Simple example of using Fedora alternatives to install old version of make

Can anyone help me using the Fedora alternatives system in order to install an old version of make? I know the actual program is irrelevant, but I need it so I'll use it as my example. I currently ...