
Modules are Python code libraries you can include in your project. I tried this with git on my machine:Į: Version '2.32. A package contains all the files you need for a module. According to Docker docs, I should be able to do: RUN apt-get update & apt-get install -y \ Is there no way to just specify that I want 2.32.0 without the other stuff?ĮDIT: For some more context, I'm trying to create a Docker image with particular package versions. But with apt-get, I have to do: sudo apt-get install git=1:2.32.0-1~ppa0~ubuntu20.04.1 If git were a Python package, with pip, I'd just do pip install git=2.32.0 to install it. I first run sudo apt-cache policy git, which gives me: Installed: 1:2.32.0-1~ppa0~ubuntu20.04.1 In particular, let's say I want to install the same git version on a machine as my machine.


This question has been asked previously here and here, but my question is slightly different.
