Score:3

How do I see the versions that apt upgrade wants to use

ng flag

When running apt upgrade I see a list of packages that will be upgraded. However, I would like to see the versions that would be upgraded, similar as it happens when using conda upgrade or pip x --upgrade.

Is there any way to directly see which versions would be used? Without having to track down the specific packages manually?

Score:4
cn flag

The command

apt list --upgradable

or, if you want to save some keystrokes, it's short version

apt list -u

is what you want to use to show the desired information.

Organic Marble avatar
us flag
Or if you're lazy like me `apt list -u`
Score:1
br flag

You might consider using aptitude instead. With aptitude you can use U to mark all available upgrades, and then when you press g you get (as you do for any operation) a list of the packages that will be affected along with their current and to-be-installed versions. You can also view changelogs (with C) and you get some pretty advanced conflict resolution features, in case they're ever needed.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.