0

Is there any way to port a program like Apache Airflow which is installed in the WSL to another windows machine without the need to open the linux terminal ?

Thank you, Igor

Parsa Mousavi
  • 3,305
  • 16
  • 37
  • Do you want to install a whole desktop environment suite in WSL ? If so why don't you install and use a full-featured ubuntu desktop in virtualbox or VMWare and use the shared-folder feature to move the files between them ? – Parsa Mousavi May 26 '20 at 12:10
  • The only thing I actually want to install is Apache Airflow, so I want to keep the Linux component as small as possible, using terminal works just fine. – Igor Grossman May 26 '20 at 12:13
  • What do you mean by terminal application ? Do you mean Command-line apps ? So what's the problem with apt-get install ? – Parsa Mousavi May 26 '20 at 12:18
  • There is no problem, apt-get install works just fine. What I want to do is to avoid using it when installing the environment (which is exactly the same) on other computers, people there may have no Linux experience at all. So my idea is: install it once, make sure it works and make some kind of image out of it, which can be distributed as a whole. – Igor Grossman May 26 '20 at 12:23
  • Each program that you install with apt spreads through different directories in the system. For example /usr/ , /etc/ , /var/ , etc. So it is difficult to copy and paste all of them . Also at the time of this writing , there's no program in windows to actually install .deb packages ( i.e the format of all downloaded apps via apt-get ) in the WSL. So it's not possible to install a linux program via the windows environment . – Parsa Mousavi May 26 '20 at 12:37
  • But your case is different , you want to install apache airflow which can be installed via python pip so you can install it in your WSL and then copy all the files in the " ~/.local/lib/python-version/site-packages" folder and reuse it on another system. But notice that the python version should be the same , so if the ubuntu version on the second machine is different , that might cause problems. – Parsa Mousavi May 26 '20 at 12:39
  • I hoped there is another way. Thank you very much for your answer! – Igor Grossman May 26 '20 at 12:42
  • I edited your question to be more specific and informative . If there's not any flaw in it and if it conveys what you wanted , please consider accepting it. – Parsa Mousavi May 26 '20 at 12:57
  • Which version of WSL is installed? See https://askubuntu.com/questions/1177729/wsl-am-i-running-version-1-or-version-2 – K7AAY May 26 '20 at 16:36
  • WSL 2.0 is installed. – Igor Grossman May 27 '20 at 06:50

1 Answers1

1

In your case you can install the Apache Airflow via python pip in your WSL subsystem and then copy all the files in the ~/.local/lib/python[your_python_version]/site-packages and then you can zip it in order to transfer to another computer.

But note that if the Ubuntu version in the WSL subsystem of the second machine is different , that might cause some problems. Just make sure that the python's minor version is the same since the compatibility between the different minor versions of python isn't guaranteed.

You might need to install python-pip first.

Note : I haven't do it myself but it should work at least on the paper.

If anybody has a better solution , I'm glad to hear.

Parsa Mousavi
  • 3,305
  • 16
  • 37