Efectuare upgrade packages Ubuntu 22.04 LTS

Configurare noua (How To)

Situatie

Este important sa avem sistemul cu upgrade-urile la zi, indiferent de OS sau Distributie.

Solutie

Pasi de urmat

Pentru a efectua un update al pachetelor disponibile putem folosi comanda:

“sudo apt update”

Exemplu output:

Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://ro.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://ro.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://ro.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Fetched 336 kB in 1s (461 kB/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
9 packages can be upgraded. Run ‘apt list –upgradable’ to see them.

Folosim comanda “apt list –upgradable” pentru a vedea pachetele ce pot primi upgrade:

Exemplu output:

Listing… Done
fonts-noto-color-emoji/jammy-updates,jammy-updates 2.038-0ubuntu1 all [upgradable from: 2.034-1]
gnome-initial-setup/jammy-updates 42.0.1-1ubuntu2.1 amd64 [upgradable from: 42.0.1-1ubuntu2]
gnome-remote-desktop/jammy-updates 42.7-0ubuntu1 amd64 [upgradable from: 42.3-0ubuntu1]
python3-software-properties/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
software-properties-common/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
software-properties-gtk/jammy-updates,jammy-updates 0.99.22.5 all [upgradable from: 0.99.22.2]
ubuntu-advantage-tools/jammy-updates 27.13.3~22.04.1 amd64 [upgradable from: 27.9~22.04.1]
update-notifier-common/jammy-updates,jammy-updates 3.192.54.5 all [upgradable from: 3.192.54]
update-notifier/jammy-updates 3.192.54.5 amd64 [upgradable from: 3.192.54]

In cazul in care avem packete de genul “Linux Kernel” sistemul va trebui restartat. In cazul in care dorim sa efectuam un upgrade pe toate pachetele din pending folosim comanda:

“sudo apt upgrade -y”

Daca dorim upgrade doar pe anumite pachete putem folosi comanda “sudo apt upgrade denumire-pachet”.

Tip solutie

Permanent

Voteaza

(10 din 19 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?