I am planning to do an upgrade on my system and I have a mix of three releases, there are some packages from wheezy, some from jessie and some of stretch. I would like to get the list of the packages with their release so I can do some purge before upgrading the system.
Asked
Active
Viewed 104 times
0
-
If you plan to upgrade the whole system to a single release, then what does it matter? – Michael Hampton Feb 13 '19 at 22:29
-
I have nginx,php5-fpm,mysql,python, ..., I'd rather upgrade it bit by bit :) – aseques Feb 13 '19 at 23:00
-
2`I'd rather upgrade it bit by bit` - Debian isn't built to work that way. You are almost certainly going to make a big mess. – Zoredache Feb 13 '19 at 23:13
-
I have never found anything that was great, but someone came up witha python script. https://unix.stackexchange.com/a/185698/1209 – Zoredache Feb 13 '19 at 23:14
1 Answers
1
I think apt-show-versions
(available in the package with the same name) might be the tool you are looking for.

user2233709
- 1,384
- 1
- 10
- 16
-
I just installed it, it's mostly what I needed, the only drawback is that it's pretty slow to run, I hoped something with dpkg+flags would have been possible – aseques Feb 13 '19 at 22:59
-
@Aseques I don’t think dpkg tracks the origin of packages; as I understand it, only apt does. – user2233709 Feb 13 '19 at 23:02