Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [alternatives]

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

1
vote
1answer
55 views

Python symbolic links mixed up

Using Ubuntu 16.04 Tried to set python 3.6 as default for the python3 command. I found what seemed to be the answer and quickly copy-pasted the following lines without carefully reading: $ sudo ...
1
vote
0answers
33 views

Cannot change default text editor using update-alternatives

I want to use vim over nano as default text editor. I tried to do it with sudo update-alternatives --config editor From menu I chose vim. However, when I open any file, Linux launches nano just as ...
1
vote
1answer
37 views

How can I reload java module

We are building a java source. When we build it with the official repo of Ubuntu it actually installs 10.0.2. see -------- which javac --------------- /usr/lib/jvm/java-11-openjdk-amd64/bin/javac ---...
3
votes
3answers
84 views

Choose which browser to open link in

I am using both Firefox and Google Chrome with multiple windows (profiles). When clicking a link in e.g. a terminal or another GUI app I'd like to choose which browser/window to load the URL in ...
1
vote
2answers
197 views

Where is the editor choice kept in ranger?

On a fresh ranger install I tried to open neofetch config with ranger and selected ed to see what is it. I am glad Ctrl+D worked to exit the ed, but now ranger opens all files with it. Restarting ...
0
votes
1answer
398 views

LightDM GTK+ greeter doesn't use the right cursor theme

I'm trying to define Suru++ as the cursor theme for LightDM GTK+ greeter on Debian stretch. This is supposedly done by adding Suru++ to the list of alternatives for x-cursor-theme, and choosing it as ...
1
vote
0answers
15 views

Thunderbird not willing to start firefox when binary replaced with symlink

I've been using the Debian "alternatives" mechanism to support multiple installed versions of Firefox. Regardless of the specifics, the bottom line is that instead of /usr/bin/firefox being a binary, ...
0
votes
1answer
581 views

Java is running from /usr/java/latest/bin/java instead of /usr/bin/java

I have the latest version of Java installed on my system. But I wonder why when I run any program, the location from where java executes is /usr/java/latest/bin/java instead of /usr/bin/java. [...
0
votes
0answers
19 views

python pip: “type -a” shows more alternatives, how to change

I installed a side version of python following these nice how-to how-to-install-latest-python-on-centos python is fine, the centos 6.9 shipped version (2.6.6) is preserved : type -a python python ...
0
votes
1answer
154 views

is there an alternative to usbkill or silk-guardian in Debian?

I saw usbkill and silk-guardian sometime back. I specifically like the whole shutdown or whatever I want to be done if a usb key is inserted which isn't whitelisted before. Does anybody of any ...
0
votes
2answers
1k views

`update-alternatives` vs `dpkg-reconfigure`

From Why is the default shell on my Ubuntu 14.04 bash?: On Debian derivatives, you can switch between Dash and Bash as the default /bin/sh by running dpkg-reconfigure dash as root. Is it correct ...
2
votes
0answers
90 views

Alternative to debugfs for Android environment

For the purposes of retrieving a file's creation time (if available), I'd use debugfs. Unfortunately, debugfs is not part of most Android distributions. Are there any similar, more ubiquitous ...
0
votes
2answers
356 views

Can setting up environment variables replace using `update-alternatives`?

Can setting up environment variables replace using update-alternatives? If not, when shall we use which way? Thanks. My question comes from reading https://askubuntu.com/a/895024/1471 Too complex ...
1
vote
1answer
918 views

How does `update-alternatives --config somecommand` find the symlinks for `somecommand`?

From https://stackoverflow.com/a/48374564/156458 update-alternatives --config java works by installing symlinks to commands as /usr/bin/java, /usr/bin/javac and so on. How does update-...
0
votes
1answer
804 views

Why use the alternatives command?

I'm following instructions from this site about building a spring-boot docker container. They are using CentOS. In their dockerfile, they call the alternative command several times. I would like ...
1
vote
1answer
9k views

Alternatives command and Centos7

I am trying to use the alternatives system on CentOS Linux release 7.3.1611 (Core). I am trying to choose between multiple editors. I am following the tutorial here. http://www.linuxquestions.org/...
0
votes
1answer
112 views

Compiled GNU/Nano: How to add to system editors list

I have compiled GNU/Nano editor myself and I wish to add it to the system editors list. which nano Tells me the following location: /usr/local/bin/nano So it should be something like: sudo update-...
1
vote
0answers
35 views

I made a typo when installing an alternatives. How do I clear it?

I accidentally typed alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip instead of alternatives --install /usr/[...] . Now I can't set it to anything else, or I ...
1
vote
1answer
2k views

Fedora 25 Change from Python 2.7.13 to Python3 (broken by `alternatives`)

So I'm starting out with python. I'm working on a laptop with a fresh install of fedora25. I got everything running in eclipse with pydev, but per directions of the instructor I need to use python 3....
3
votes
0answers
466 views

Alternatives to SkyPE that can call “real” phone numbers

I currently pay SkyPE $3/month to make unlimited calls across the USA and Canada (ie, the NANPA "1" international dialing code), and, less importantly, pay them about $4 month for an inbound ...
1
vote
3answers
181 views

What is the proper way to use an alternative binary

I am on Linux Mint 18 Cinnamon 64-bit. I have these binaries of 7z and their versions on my system: /usr/bin/7z 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 and /usr/local/...
1
vote
0answers
183 views

mentor graphics pads alternative

Windows only SW: mentor graphics pads I want to move from Windows to linux, but I need this kind of SW for my work. I know some alternatives with similar functionality exist, for example KiCad, but ...
3
votes
0answers
88 views

update alternatives to change whole toolchain

In debian-like distros there is a cool tool for managing multible versions of tools: It is called update-alternatives. Manual. For example, if I want to switch between two version of gcc: # update-...
1
vote
1answer
477 views

PDF readers not based on poppler?

It seems that most GNU/Linux PDF readers use poppler for rendering. For testing purposes I would like not to use poppler. Are there any (recent) alternatives ? xpdf doesn't count, since I expect ...
1
vote
1answer
220 views

Why failing to increase Chromium's priority and set it default internet browser in Debian?

I want to set Chromium my default internet browser i.e. Chromium is being launched as the primary internet browser from other applications and that I do not receive the notification about Chromium not ...
1
vote
1answer
172 views

Bushound alternative for Linux for SCSI logging

I was wondering if anyone knew of a good solution to logging specific SCSI device traffic on Linux? Does anyone knew of a comprable Linux alternative to Window's Bushound? I have looked at already ...
7
votes
2answers
8k views

Difference between auto mode and manual mode in update-alternatives

When I run $ update-alternatives --config java I get a few rows: What is the difference between auto mode and manual mode?
2
votes
2answers
942 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
69 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 global-...
2
votes
1answer
1k 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 ...
5
votes
1answer
3k 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
491 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
320 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
3k 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
264 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
838 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 /usr/sbin/...
1
vote
1answer
669 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
462 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 ...
2
votes
2answers
1k 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 ...
11
votes
5answers
703 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 ...
6
votes
2answers
852 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 starts with ...
12
votes
1answer
13k 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 ...
2
votes
2answers
3k 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
1k 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
74 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". user@jeanny:...
12
votes
2answers
27k views

Better way to add alternative using update-alternatives?

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 alternative, and that information is needed when adding a new ...
2
votes
1answer
659 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 ...
3
votes
0answers
583 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 ...
3
votes
1answer
10k 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
125 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. ...