Discussion:
Auto-removal of packages
(too old to reply)
Mojca Miklavec
2018-03-31 20:24:21 UTC
Permalink
Dear Norbert,

Is this expected behaviour of tlmgr?
tlmgr install xetex
tlmgr: package repository http://ctan.ijs.si/mirror/tlpretest
[1/6, ??:??/??:??] install: babel [136k]
[2/6, 00:01/00:53] install: latex [161k]
[3/6, 00:01/00:24] install: latex-fonts [18k]
[4/6, 00:01/00:23] install: xetex.x86_64-darwin [6949k]
[5/6, 00:03/00:03] install: xetex [7k]
[6/6, 00:03/00:03] install: xetexconfig [1k]
tlmgr install context
tlmgr: package repository http://ctan.ijs.si/mirror/tlpretest
[1/2, ??:??/??:??] install: context.x86_64-darwin [1k]
[2/2, 00:00/00:00] install: context [7643k]
tlmgr remove context
tlmgr: saving backups to /opt/tl/2018/tlpkg/backups
[1/7, ??:??/??:??] remove: babel
[2/7, 00:01/00:27] remove: context
[3/7, 00:23/00:33] remove: context.x86_64-darwin
[4/7, 00:23/00:33] remove: latex
[5/7, 00:24/00:34] remove: latex-fonts
[6/7, 00:24/00:33] remove: xetex
[7/7, 00:24/00:33] remove: xetex.x86_64-darwin
[8/7, 00:34/00:34] remove: xetexconfig
tlmgr: ultimately removed these packages: babel context
context.x86_64-darwin latex latex-fonts xetex xetex.x86_64-darwin
xetexconfig

Mojca
Norbert Preining
2018-04-01 01:20:55 UTC
Permalink
Hi Mojca,
Post by Mojca Miklavec
Is this expected behaviour of tlmgr?
Well, kind of.
Post by Mojca Miklavec
tlmgr remove context
'tlmgr remove' removes also all dependencies that are not required by
any other package.

Since we don't have a status database like debian where packages
can be / are marked as auto-installed and only those are auto-removed,
there is only this way, or making removal a single package only option.

Since most users (I guess) use tlmgr install with collections and then
remove the collections, the current operation mode does indeed make
sense, but it fails, as you found out, for single packages.

What I CAN think about is the following:
- if the removed package is a collection, remove all depending packages
that are not required by something else
- if the removed package is a normal package, don't remove depending
packages.

What this be more senseful? Or create more complications due to
complicated explanations?

Karl?

All the best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Karl Berry
2018-04-01 22:56:08 UTC
Permalink
'tlmgr remove' removes also all dependencies that are not required by
any other package.

By default. We already have --no-depends and --no-depends-at-all for both
tlmgr remove and install.
http://tug.org/texlive/doc/tlmgr.html#remove-option-...-pkg
http://tug.org/texlive/doc/tlmgr.html#install-option-...-pkg

Although in this case it's surely strange to see more packages removed
than installed, it would also be strange if the operations were not
defined symmetrically. That is, if those dependent packages were
installed as the result of an explicit tlmgr install, it would be
expected for them to be uninstalled by tlmgr remove.

Since there is no way to do it perfectly without a lot more work (the
how-it-got-installed status Norbert mentions), I think leaving it alone
is better than churning the behavior. -k
Mojca Miklavec
2018-04-02 07:15:26 UTC
Permalink
Post by Norbert Preining
'tlmgr remove' removes also all dependencies that are not required by
any other package.
Since there is no way to do it perfectly without a lot more work (the
how-it-got-installed status Norbert mentions), I think leaving it alone
is better than churning the behavior. -k
Agreed.

Thank you,
Mojca

Loading...