I'd like to do similar as to what I can with Python - pip freeze > installed.txt and pip install -r installed.txt.
Is this possible?
I'd like to do similar as to what I can with Python - pip freeze > installed.txt and pip install -r installed.txt.
Is this possible?
In lieu of someone more in the know, I believe that I worked it out (although it turned out I didn't need it in the end).
I first used mpm to get a list of my installed packages (I used grep through Git Bash on my Windows machine).
mpm --list | grep ^i > installed.txt
However this contains more information than just names.
i 00003 1494 zerohyph
So I used Notepad++ to do a regex replace to find the stuff prior to the name and replace it with nothing.
^.*\d+
With a file which listed package names, I then ran the command to install the packages.
mpm --require=@installed.txt
Which seemed to work okay.
28 packages have been successfully installed.
I'm sure that this could be improved upon.
awk to grab the fourth column. This is included w/ Git Bash on Windows.
mpm --list | grep ^i | awk '{print $4}' > mpmlist.txt.
mpm --admin --list to start with.
– matthew-e-brown
Apr 09 '20 at 07:58