Folks, here an instruction how to get an actual platform-tools to debian stable
I’m using MX Linux, but anyhow, it’s based on debian stable (Bullseye). So it shouild be the same instructions:
Download latest platform-tools from here:
De-Install all platform-tools, adb, fastboot from your system. Stable, Testing, Dabian Backporting…
Extract downloaded platform-tools.
You should get an extracted folder “platform-tools” with all the binaries in it.
You can now copy this folder wherever you want and modify the $PATH variable.
But, this is not necessary and too complicated.
Debian has already a functionality to use own binaries in a pre-configured $PATH
These both paths are pre-configured:
$HOME/bin
$HOME/.local/bin
mkl@mx:~
$ cat .profile
~/.profile: executed by the command interpreter for login shells.
This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
exists.
see /usr/share/doc/bash/examples/startup-files for examples.
the files are located in the bash-doc package.
the default umask is set in /etc/profile; for setting the umask
for ssh logins, install and configure the libpam-umask package.
umask 022
if running bash
if [ -n “$BASH_VERSION” ]; then
include .bashrc if it exists
if [ -f “$HOME/.bashrc” ]; then
. “$HOME/.bashrc”
fi
fi
set PATH so it includes user’s private bin if it exists
if [ -d “$HOME/bin” ] ; then
PATH=“$HOME/bin:$PATH”
fi
set PATH so it includes user’s private bin if it exists
if [ -d “$HOME/.local/bin” ] ; then
PATH=“$HOME/.local/bin:$PATH”
fi
mkl@mx:~
now, it depends on you if you want to use $HOME/bin or $HOME/.local/bin
I’m using $HOME/bin
Create the folder bin in your home → you have to create this folder, it is not there by default
Copy the complete content of the extracted folder Platform-tools to $HOME/bin
Logout and Login again, to take effect of the new $PATH
That’s it
Now you can use the latest adb and fastboot
You should can use it from everywhere, because it’s in $PATH varible
To test if you have the right one:
run
which adb
should print: $HOME/bin/adb
adb --version
should print: 34.0.1 (day I wrote this 20230502)
Let’s see what’s next Debian stable (bookworm, should release beginning of june) brings, but with that solution, you can always have latest platform tools