Questions tagged [alternatives]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
69 views

Can I make update-alternatives keep 2 commands in sync?

I have 2 commands that I switch between using update-alternatives on Debian. My problem is that each command also has an autocompleter command that has to be switched at the same time the command is ...
Old Pro's user avatar
  • 1,306
0 votes
0 answers
111 views

startx (xinit) on debian bookworm: where should I add a call to xrandr?

tl;dr: Is ~/.xsessionrc the only place to add a call to xrandr without breaking startx's connection to my x-{session,window}-manager alternatives? I start my window manager on Debian Bookworm by ...
jaimet's user avatar
  • 348
0 votes
0 answers
245 views

Why, in my Kali Linux, setting user-installed python3.9.5 to default python3 results in "permission denied: python3" or "python3: command not found"?

BACKGROUND I am using a fresh installation of Kali Linux 2023.1, which has come with Python3.11.1. I need to install MobSF, which requires python3 to correspond to version between python3.8 and ...
Shy's user avatar
  • 597
0 votes
1 answer
486 views

No update-alternatives in AlmaLinux 8 for PHP

I run the command update-alternatives --config php and nothing shows up. I checked for the binaries and they are executables in the /usr/bin folder. Installed PHP versions are 7.4 from the AppStream ...
supmethods's user avatar
1 vote
2 answers
472 views

Zenity (or alternative) with custom file selector

When I use zenity and type --file-selection, if spawns the default GTK file selector. The problem with that is, of course, the lack of image thumbnails. Considering that I want to make an image ...
I.P's user avatar
  • 111
0 votes
1 answer
3k 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 ...
Black's user avatar
  • 2,079
0 votes
2 answers
472 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, :...
Enlico's user avatar
  • 1,525
1 vote
1 answer
3k 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 --...
Astora's user avatar
  • 429
0 votes
1 answer
494 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/[...
user135142's user avatar
1 vote
0 answers
158 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 ...
Pedro Lima's user avatar
3 votes
2 answers
7k 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 ...
halloleo's user avatar
  • 565
3 votes
0 answers
389 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 ...
Atai Ambus's user avatar
0 votes
1 answer
146 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 ...
DannyNiu's user avatar
  • 622
8 votes
2 answers
6k 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-...
Moshe's user avatar
  • 322
0 votes
1 answer
891 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 ...
linux_noob's user avatar
2 votes
1 answer
357 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?
Anderson Torres's user avatar
0 votes
1 answer
1k 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, ...
StackedCrooked's user avatar
1 vote
1 answer
4k 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/...
dejanualex's user avatar
10 votes
1 answer
8k 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 ...
raphael75's user avatar
  • 703
0 votes
1 answer
389 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 ...
david's user avatar
  • 329
0 votes
2 answers
70 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 ...
Porcupine's user avatar
  • 1,844
1 vote
0 answers
525 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 ...
0xC0000022L's user avatar
  • 16.6k
1 vote
1 answer
410 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 ...
lilHar's user avatar
  • 125
3 votes
2 answers
15k 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 ...
Oleg Suzdalev's user avatar
1 vote
0 answers
489 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 ...
Em Ka's user avatar
  • 23
3 votes
1 answer
5k 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 ---...
Zach's user avatar
  • 337
11 votes
6 answers
7k 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 ...
Melle's user avatar
  • 221
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 ...
anatoly techtonik's user avatar
1 vote
1 answer
3k 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 ...
Cutter's user avatar
  • 111
1 vote
0 answers
30 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, ...
einpoklum's user avatar
  • 9,462
1 vote
1 answer
5k 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. [...
dryleaf's user avatar
  • 206
2 votes
1 answer
700 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 ...
shirish's user avatar
  • 12.3k
2 votes
2 answers
6k 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 ...
Tim's user avatar
  • 101k
2 votes
0 answers
304 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 ...
TiberiumFusion's user avatar
0 votes
2 answers
2k 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 ...
Tim's user avatar
  • 101k
2 votes
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-...
Tim's user avatar
  • 101k
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 ...
tatmanblue's user avatar
2 votes
1 answer
22k 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/...
yxs8495's user avatar
  • 21
1 vote
1 answer
637 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-...
Vlastimil Burián's user avatar
1 vote
1 answer
131 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 ...
JETM's user avatar
  • 139
1 vote
1 answer
3k 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....
TK421's user avatar
  • 45
4 votes
0 answers
711 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
2k 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/...
Vlastimil Burián's user avatar
1 vote
0 answers
294 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 ...
Jakub's user avatar
  • 51
3 votes
1 answer
237 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-...
Addman's user avatar
  • 255
3 votes
1 answer
2k 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 ...
Skippy le Grand Gourou's user avatar
1 vote
1 answer
564 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 ...
Léo Léopold Hertz 준영's user avatar
1 vote
1 answer
348 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 ...
grebwerd's user avatar
  • 145
28 votes
2 answers
30k 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?
baudo2048's user avatar
  • 383
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 ...
ghostly_s's user avatar
  • 163