Questions tagged [alternatives]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Change from update-alternatives command not taking effect

I tried to change my PHP CLI version with sudo update-alternatives --config php: There are 2 choices for the alternative php (providing /usr/bin/php). Selection Path Priority ...
user avatar
  • 1,720
0 votes
2 answers
54 views

How can I make the vimdiff command use the same Vim version as the vi and vim commands?

I've never worried about vimdiff on my own computer, where I have archlinux installed, so everything is up-to-date, generally speaking; I generally just used it, and I'm fine with it. After all, :...
user avatar
  • 1,012
1 vote
1 answer
177 views

How to use alternatives on linux - CentOS 6?

I am trying to configure python to 3.9 on CentOS 6. Here is my steps: [root@quickstart ~]# alternatives --install /usr/bin/python python /usr/local/bin/python3.9 10 [root@quickstart ~]# alternatives --...
user avatar
  • 347
0 votes
1 answer
56 views

how to cd into previous directory

I am using Ubuntu and sometimes when I use cd - I don't go into the previous directory. And every time I get the directory which it cded to. example:- $cd - /home/[usrname]/Downloads $cd - /home/[...
user avatar
1 vote
0 answers
26 views

Workspaces/Desktops thumbnails without gnome

I've been trying Openbox and other window managers this week. I'm quite happy and committed to leaving Gnome DE behind. There's one feature I'm missing though: I like the workspace preview popup that ...
user avatar
0 votes
1 answer
158 views

On RHEL8 how can I use `alternatives` to choose an already listed version as the used version

On a RHEL 8.3 system I have two python3 versions installed and they show up as the version when I list alterantives' versions: $ alternatives --display python3 /usr/bin/python3.6 - priority 1000000 ...
user avatar
  • 335
2 votes
0 answers
76 views

Are there any "richer" alternatives to cp and mv (like bat to cat and exa to ls)?

ls has exa. cat has bat. I don't know of a direct alternative to rm, but it also has rmtrash. All of these can usually work as drop-in alias replacements, retaining usual function and options of their ...
user avatar
0 votes
1 answer
45 views

The alternatives command on FreeBSD (for choosing between versions of a package)

There's an alternatives command on Linux (man page section 1, update-alternatives), and there's a select subcommand on the port command from MacPorts. Is there an equivalent on FreeBSD? Or do I have ...
user avatar
  • 475
7 votes
2 answers
3k views

Changing Python's default version breaks Ubuntu 20.04

I'm creating an AMI of Ubuntu 20.04 (Focal Fossa), and I want the default Python version to be 3.6. I installed Python 3.6, also the right pip, and then set the alternative like so: update-...
user avatar
  • 312
0 votes
1 answer
101 views

Why do i have four different default versions of python on my ubuntu?

Im new to linux and im struggling with the alternative install management for python. I managed to change the default python versions for sudo and root (if i understand it correctly). However i would ...
user avatar
3 votes
1 answer
220 views

A keynav alternative not dependent on X11?

Is there some alternative to keynav (a software that emulates mouse via keyboard) but without X11 dependencies?
user avatar
0 votes
1 answer
651 views

How to install a new version GCC and make it the default?

I built and installed a new version of gcc on my Linux (Ubuntu) machine and installed it in /opt/gcc-10.2.0. Then I used update-alternatives to make this the default gcc/g++. It works, however, ...
user avatar
1 vote
1 answer
2k views

alternatives java -OpenJDK RHEL

I have the following setup (on multiple machines with RHEL7): $ which java /usr/bin/java $ ls -ltr /usr/bin/java /usr/bin/java -> /etc/alternatives/java $ ls -ltr /etc/alternatives/java /etc/...
user avatar
5 votes
1 answer
3k views

How to add browser to update-alternatives?

In Debian 10 there is this command to choose the default browser: update-alternatives --config x-www-browser I installed Waterfox from a .deb file and it is not showing up in the list of available ...
user avatar
  • 519
0 votes
1 answer
133 views

What are the device limitations for installing Linux-based Android alternatives? [closed]

I have a new Samsung Galaxy A40 and would like to use a Linux-based alternative to Android. Reasons: Privacy/security, hackability, moving away from Google. 1.) Can I install an alternative OS even ...
user avatar
  • 111
0 votes
2 answers
50 views

Bash: Run Command (with a specific pattern) only if another Command (with another specific pattern) has failed

I have a shell script that creates a function (in a bashscript file which is sourced by .bashrc) for each Markdown files to open it in the editor. Example: ls /home/nikhil/Notes/Studies Physics.md ...
user avatar
  • 1,354
1 vote
0 answers
443 views

How to wield update-alternatives properly?

I was just trying to install vanilla-gnome-desktop by means of apt install vanilla-gnome-desktop ... in order to get a more vanilla GNOME experience than the default on Ubuntu Desktop 18.04. It ...
user avatar
  • 15.2k
1 vote
1 answer
194 views

Replacement for Microsoft Sync?

So, I recently bought a new (to me) plug-in hybrid: A Ford Fusion. Awesome in a lot of ways, but one glaring problem. As I drove one day, I noticed the dreaded Microsoft logo. Besides the obvious ...
user avatar
  • 125
2 votes
2 answers
9k 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 ...
user avatar
1 vote
0 answers
283 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 ...
user avatar
  • 23
3 votes
1 answer
3k 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 ---...
user avatar
  • 327
4 votes
4 answers
4k 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 ...
user avatar
  • 141
1 vote
2 answers
2k 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 101
1 vote
0 answers
22 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, ...
user avatar
  • 7,311
0 votes
1 answer
4k 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. [...
user avatar
  • 196
2 votes
1 answer
500 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 ...
user avatar
  • 10.9k
1 vote
2 answers
4k 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 ...
user avatar
  • 90.6k
2 votes
0 answers
257 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 90.6k
1 vote
1 answer
3k 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-...
user avatar
  • 90.6k
1 vote
1 answer
2k 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 ...
user avatar
2 votes
1 answer
19k 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/...
user avatar
  • 21
1 vote
1 answer
530 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-...
user avatar
1 vote
1 answer
78 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 ...
user avatar
  • 139
1 vote
1 answer
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....
user avatar
  • 45
4 votes
0 answers
670 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 ...
user avatar
1 vote
3 answers
948 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/...
user avatar
1 vote
0 answers
269 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 ...
user avatar
  • 41
3 votes
1 answer
151 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-...
user avatar
  • 255
3 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
461 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 ...
user avatar
1 vote
1 answer
247 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 ...
user avatar
  • 135
17 votes
2 answers
22k 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?
user avatar
  • 273
2 votes
2 answers
2k 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 ...
user avatar
  • 161
0 votes
1 answer
106 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-...
user avatar
  • 13k
2 votes
1 answer
2k 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 ...
user avatar
  • 10.9k
5 votes
1 answer
5k 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 ----------------------------------------------------...
user avatar
3 votes
2 answers
590 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 ...
user avatar
  • 3,783
2 votes
1 answer
649 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> ...
user avatar
  • 161