Illegal websites should not initiate any form of manual service requests to our staff. It is strictly prohibited to use honmau Media's technical support services and products to engage in any illegal activities. If discovered, no technical support will be provided.×
Current location:home> news > help and support

How to update and upgrade software packages on Debian systems

How to update and upgrade software packages on Debian systems

1. Update local package cache

sudo apt update

2. View available software packages that can be upgraded

apt list --upgradable

3. Preview upgrades

apt -s upgrade

4. upgrade

a). Upgrade all packages

sudo apt upgrade #requires confirmation

sudo apt upgrade -y #no confirmation required

b). Upgrade specified package

sudo apt --only-upgrade install package1 package2

#Take debian12 kernel upgrade as an example

apt --only-upgrade install linux-image-amd64

c). Keep selected packages when upgrading

sudo apt-mark hold package_name

When all system packages are upgraded, a given package will not be upgraded.

d). Delete c). retention settings

sudo apt-mark unhold package_name

© Website copyright and disclaimer

1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;

2. No one is allowed to copy it without the express written permission of [honmau Media];

3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;

4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;

5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice

submission
Working days: 8:30 - 22:00 Online QQ

customer service

Company Introduction
top