Questions tagged [alternatives]
in some distributions, a way for the system administrator to choose between similar programs
76 questions
0
votes
1
answer
125
views
GNU assembler alternatives
I am trying to build my system from scratch, since I really like the idea of atomicity of each program in unix-like approach, I would like to preserve it as much as possible in my build.
Since GNU ...
0
votes
1
answer
87
views
I deleted my /etc/alternatives/ by accident
I'm on ubuntu 22.04. I was there removing the files related to libcudnn. However, I thought i was CDing inside, but an enter later, I realized that I was on sudo rm -rfing there. So, I ended up ...
2
votes
1
answer
88
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 ...
0
votes
0
answers
348
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 ...
-1
votes
1
answer
839
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 ...
1
vote
2
answers
950
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 ...
0
votes
1
answer
5k
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 ...
0
votes
2
answers
1k
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, :...
2
votes
2
answers
6k
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 --...
0
votes
1
answer
700
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/[...
1
vote
0
answers
211
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 ...
3
votes
2
answers
17k
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
...
4
votes
0
answers
994
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 ...
0
votes
2
answers
272
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 ...
8
votes
2
answers
8k
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-...