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).

2
  • Why don't you checkout the source and build it if you want a newer version than supplied by your OS?
    – zomega
    Commented Feb 10, 2023 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
    Commented Feb 10, 2023 at 23:18

1 Answer 1

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .