TeX Live and MacTeX"sudo tlmgr backup --clean --all" is doing nothing

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
marek_step
Posts: 27
Joined: Sun Aug 19, 2012 8:48 am

"sudo tlmgr backup --clean --all" is doing nothing

Post by marek_step »

Hello all!


I have TeXLive 2017 installed and I removed the old one from 2016. I update regularly with tlmgr in my shell. Only issue I have had this morning, was the repository:

Code: Select all

tlmgr: The TeX Live versions supported by the repository
http://mirror.unl.edu/ctan/systems/texlive/tlnet
  (2016--2016)
do not include the version of the local installation
  (2017).
  
  tlmgr option repository ctan
Here the command I issued as suggested in the manual. But now the cleanup does not work:

Code: Select all

sudo tlmgr backup --clean --all

This does nothing! So I made my cleanup "manually" by:

Code: Select all

cd /usr/local/texlive/2017/tlpkg/backups
sudo rm -rf *.tar.xz
Any hints?

Best greetings marek

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

"sudo tlmgr backup --clean --all" is doing nothing

Post by thomasb »

Try a Ubuntu or Linux forum, maybe...
m_v
Posts: 2
Joined: Mon Oct 25, 2021 1:32 pm

"sudo tlmgr backup --clean --all" is doing nothing

Post by m_v »

@marek_step: Right after the upgrade, there may have been only one set of backup remaining, which won't be removed by default. If you want to remove that, try running

Code: Select all

sudo tlmgr backup --all --clean=0
Append --dry-run to see what files will be removed without taking any action:

Code: Select all

sudo tlmgr backup --all --clean=0 --dry-run
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

"sudo tlmgr backup --clean --all" is doing nothing

Post by Ijon Tichy »

@m_v Do you really think, answering to a question about TeX Live 2016/2017, that depend on a specific mirror, that does not provide TeX Live 2016 any longer, is useful?
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
m_v
Posts: 2
Joined: Mon Oct 25, 2021 1:32 pm

"sudo tlmgr backup --clean --all" is doing nothing

Post by m_v »

Yes, I do. I encountered the same issue with TeXLive 2021 and want to document the solution.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

"sudo tlmgr backup --clean --all" is doing nothing

Post by Ijon Tichy »

But IMHO the original problem was an update problem, that happened because the mirror still provided TeX Live 2016 and the local installation was already TeX Live 2017. So IMHO using another repository should have been the best suggestion. But every answer to the question is more or less speculative and nobody really can say, what could have been or was the real solution for the problem of the original post.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply