-1

I asked a question here about accidentally calling apt-get install python 3.5(space intentional) on Linux Mint. I learned, or was reminded that it was the same as calling ...install python, then calling ...install 3.5.

My new question is this:

I have python 3.5 installed on my Linux Mint system, via apt-get install python3.5

If I type apt-get install 3.5, it seems like a shorthand for python 3.5, because I get a list of already installed packages that have the python 3.5 name in them.

However, I also get a list of NEW packages;

The following NEW packages will be installed:
blt idle-python3.5 libpython3.5 libpython3.5-dbg libpython3.5-dev
libpython3.5-gdbm libpython3.5-gdbm-dbg libpython3.5-testsuite
libpython3.5-tk libpython3.5-tk-dbg python3.5-complete python3.5-dbg
python3.5-dev python3.5-doc python3.5-examples python3.5-gdbm
python3.5-gdbm-dbg python3.5-tk python3.5-tk-dbg python3.5-venv

So why if I have python 3.5 installed does typing install 3.5show new packages wherein typing install python3.5 does not? What is the relationthip between python3.5 and 3.5, and what (if any) deleterious affect does installing just 3.5 have?

Community
  • 1
  • 1
SteveJ
  • 3,034
  • 2
  • 27
  • 47
  • `install 3.5` installs all packages with `3.5`, not only `Python 3.5`. As I saw the newest Ubuntu install `python3.5` without `tkinter` (`python3.5-tk`). And I'm sure `python3.5` doesn't install `python3.5-dev` which have C/C++ files .h to compile some modules for Python. – furas Dec 24 '16 at 06:43
  • @furas By all packages, do you mean any package in any subscribed library that as "3.5" in it? – SteveJ Dec 24 '16 at 06:45
  • yes all packages with 3.5 in name (and maybe in description too). – furas Dec 24 '16 at 06:47
  • That seems less than good. – SteveJ Dec 24 '16 at 06:51
  • is your system working slower ? if not then there is no problem. Don't repair it because you brake something else :) – furas Dec 24 '16 at 07:06
  • this should be on [askubuntu](https://askubuntu.com/), don't you think? – hiro protagonist Dec 24 '16 at 09:29

1 Answers1

1

When you use command apt-get install 3.5 or (in my case)sudo apt-get install 3.5, system checks for all packages with 3.5 in their name.

It basically uses a regex to find all packages(not only Python packages) that match the pattern 3.5

Same can be seen in the screenshot I have attached: Regex search for apt-get install command

Dhaval Simaria
  • 1,886
  • 3
  • 28
  • 36