Re: Migration to new machine

"Thompson,Paul" <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <9B75E7CF385CB94EAD6587DD96AC2D9746619E4C@SFSMCEXMBX2.sanfordhealth.org>
When I get a new machine:

1) I copy my localtree from one machine to another. I call it localtree in both, and put it in the same place.
2) I re-install MikTeX since that forces an upgrade. Last time I did the full install, which took a long time. This time, I will do the "just-in-time" approach.

-----Original Message-----
From: Ulrike Fischer [mailto:[email protected]] 
Sent: Tuesday, July 24, 2012 3:13 AM
To: [email protected]
Subject: Re: [MiKTeX] Migration to new machine

Am Tue, 24 Jul 2012 07:57:31 +0200 schrieb Gabor Urban:

> Hi,
> 
> I will buy a new computer, and I would like to install the same
> packages that are installed on the old box. I found a command-line
> tool called MPM, but the description is not too detailed.
> 
> So my question is: after getting the list on installed packages with
> mpm, I can feed it into mpm on the new machine.

You can find the list of currently installed packages in
miktex\config\packages.ini. You will have to edit (a copy of) this
file to get a simple line-by-line list. 

But the main problem with such a list approach is that mpm will stop
if it encounters the name of a package it doesn't know or which is
already installed. So it could be that you will have to edit the
list and restart more than once. 

If you have the means to give your new machine access to the Install
tree (and the "UserInstall" tree if you have one) of your old miktex
(e.g. throught a copy on an external hard disk or an suitable usb
stick) I would at first try the following: 

On your new machine run

mpm --repository=path/to/root/of/old/tree1 --import-all
mpm --repository=path/to/root/of/old/tree2 --import-all

Then run the update manager.

> If I am switching to higher version of MikTex will this fetch the
> packages for the new version?

Packages can normally be used with all (active) miktex versions.
Only some packages with binaries are version dependent. 


-- 
Ulrike Fischer 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MiKTeX-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/miktex-users

-----------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
privileged and confidential information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.