You are here

การอัปเดทและอัปเกรด Ubuntu

Submitted by admin on Sat, 11/10/2018 - 19:30
Ubuntu

การอัปเดทและอัปเกรด Ubuntu

Update
sudo apt-get update # old syntax
sudo apt update # new syntax

Upgrade
- Upgrade all current program packages in the Ubuntu operating system, that are installed automatically or from the repositories or from a PPA.
sudo apt-get upgrade # old syntax
sudo apt upgrade # new syntax

- or if you want to upgrade and also perform checks and fixes to upgrade to a fully upgraded and compatible system (this is what I do),
sudo apt-get dist-upgrade # old syntax
sudo apt full-upgrade # new syntax

- Install a program package, a new package that was not yet installed
sudo apt-get upgrade # old syntax
sudo apt upgrade # new syntax

Update & Upgrade
- When you intend to upgrade the system (within the same version of Ubuntu), you can run one of the following command lines
sudo apt update && sudo apt upgrade
sudo apt update && sudo apt full-upgrade

Install
- When you intend to install a new program package, you can run the following command lines. It is a good idea to update before installing.
sudo apt-get update # old syntax
sudo apt-get install program-package-name # old syntax

sudo apt update # new syntax
sudo apt install program-package-name # new syntax

Manual page
- You find more details in the built-in manual
man apt-get # old syntax
man apt # new syntax

Upgrade to a new version alias release of Ubuntu
- This is a completely different task. It is complicated and risky. Backup everything that you don't want to lose before you start on this venture.
sudo do-release-upgrade

- You find more details in the built-in manual
man do-release-upgrade

---
Source:
- https://askubuntu.com/questions/975968/ubuntu-the-difference-between-sud...

Tags: