Using tlmgr and a repo from a local machine

Reinhard Kotucha reinhard.kotucha at gmx.de
Wed Aug 30 00:42:12 CEST 2023


On 2023-08-29 at 21:57:29 +0200, Angelo Graziosi via tex-live wrote:

 > > Il 29/08/2023 17:12 CEST Zdenek Wagner ha scritto:
 > >
 > >
 > > >
 > > > I used this command
 > > >
 > > > tlmgr --repository utente at macchina:/myApps/tlrepo/tlnet update --all
 > > >
 > > > in which "macchina" is a MBP in the LAN and
 > > > "/myApps/tlrepo/tlnet" a mirror of a CTAN tlnet.
 > > >
 > > > The issue is that it asks the password two or three times **for
 > > > each package** and if the packages are more than 20, this
 > > > results in a very inefficient way to update.
 > > >
 > > > I wonder if someone know a trick to avoid all this...
 > > >
 > > Yes, you can use authentication by a key. Run ssh-keygen on a computer
 > > where you want to install TL. In your ~/.ssh you will find id_rsa and
 > > id_rsa.pub. Copy id_rsa.pub to macchina and append it to
 > > /home/utente/.ssh/authorized_keys (or create that file). Permissions
 > > should be 0644. Remember that each key must be a single long line, so
 > > be sure that they are not split to shorter lines. The return to the
 > > computer where you want to install TL and run "ssh utente at macchina".
 > > If it is your first access, it will ask you to accept connection and
 > > macchina will be added to .ssh/known_hosts. It should not ask for a
 > > password because you are authenticated by the key. Afterwards you can
 > > use tlmgr without a password.
 > >
 >
 > Interesting explanation! I will try that. Thank you!

You don't have to copy your public key manually.  There is a program
ssh-copy-id which does this for you.

Regards,
  Reinhard

--
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at gmx.de
------------------------------------------------------------------



More information about the tex-live mailing list.