0

I'm using debian bullseye.

I want to install a newer version than default for a single package: python3. I do not want this behaviour for all packages.

Also I do not want to install from a tar ball, since this won't work with apt update. Also I want this to not interfere with the package repository (still receive updates from there).

Asqiir
  • 149
  • 10
  • Why don't you checkout the source and build it if you want a newer version than supplied by your OS? – zomega Feb 10 '23 at 19:10
  • I have a feeling that we're not talking about a single package here. If it were so, I'd suggest looking at backports and, if this doesn't help, get the source from sid and build. But for getting a newer Python version, I'd recommend something like `pyenv`. – nickie Feb 10 '23 at 23:18

1 Answers1

0

This type of scenario is handled by 'APT Pinning', as described on the Debian Wiki page for apt configuration.

You will need to be very careful with version dependencies, though. I suspect that upgrading python3 will involve upgrading so many dependent packages that you'll encounter version conflicts with packages required elsewhere in your system.

Clydog
  • 1
  • 2