What are transitional packages and what exact purpose do they have?
Asked
Active
Viewed 2.3k times
1 Answers
50
They simplify the transition if a package gets renamed:
Let's say we have a package called mypackage
in the current release. Now for some reasons this packages gets renamed mynewpackage
in the next release. As the package manager doesn't know anything about renaming packages it will treat mypackage
and mynewpackage
as different packages so that on upgrade users who have mypackage
not get mynewpackage
installed but stay with the old mypackage
(if the dependencies allow that).
To avoid this, the package maintainer simply creates a transitional package mypackage
in the new release that doesn't have any files but just a depends on mynewpackage
(this kind of package is called a "meta package").

BeastOfCaerbannog
- 14,585

Florian Diesch
- 87,389
mypackage
. I upgrade to 20.10, and I now I havemypackage
(which becomes transitional) and (which depends on)mynewpackage
. And then I upgrade to 21.04 and it fails because 21.04 doesn't havemypackage
? Meaning, when doesmypackage
get deleted? Do I have to delete it by hand? Does it happen automatically at some point? – x-yuri Jul 08 '21 at 11:47