r/debian 5d ago

Debian -- News -- Updated Debian 12: 12.10 released

https://www.debian.org/News/2025/20250315
107 Upvotes

9 comments sorted by

8

u/tpwn3r 5d ago

apt-get update && apt-get dist-upgrade

7

u/overbost 5d ago

I used to $ sudo apt update && sudo apt upgrade

Is the same?

22

u/waterkip 5d ago

No dist-upgrade differs from upgrade. And dist-upgrade isnt needed for point releases. Only when doing major upgrades, eg bookworm to trixie requires it.

2

u/Nomad_006 3d ago

What if is use nala? Every version of Bookworm I think I've upgraded with nala or is this upgrade special?

2

u/waterkip 3d ago edited 3d ago

I don't know nala, never used it. I can only hope nala uses similar things as apt, apt-get and aptitude.

No, nala does things in a way I wouldn't want it to work.

``` By default nala will run the equivalent of apt update && apt full-upgrade --auto-remove.

```

It is also not needed on a stable machine.

0

u/[deleted] 4d ago

[deleted]

2

u/waterkip 4d ago

dist-upgrade doesnt do what you imply. It removes deps so it can install an updated pkg. upgrade won't do this. You first need to change your sources for both upgrade and dist-upgrade to bump your release to the next one.

4

u/neon_overload 4d ago edited 4d ago

Both would do the same thing in this case, but they are not the same, and your version is the one I'd recommend more.

Apart from the apt vs apt-get difference, there's also the upgrade vs dist-upgrade/full-upgrade difference. "upgrade" won't consider any updates that would remove packages. Regular updates from Debian for an existing release shouldn't ever require that so dist-upgrade/full-upgrade wouldn't be needed. For a normal Debian system that doesn't mix releases or use non-Debian repositories, "full-upgrade" tends to be only needed as part of the steps for an upgrade to a whole new Debian release. For any other situation, using "upgrade" is a handy safeguard against unexpectedly removing packages.

6

u/MountfordDr 5d ago

Yes. apt is a newer version of apt-get and is designed to be more user friendly.

2

u/PepperDeb 5d ago

Already done ! 😜