当前位置:网站首页>Apt update and apt upgrade commands - what is the difference?
Apt update and apt upgrade commands - what is the difference?
2022-07-03 05:43:00 【TAOXC( ̿ ▀ ̿ ̿Ĺ̯̿̿ ▀ ̿ ̿】
In the previous post , We checked APT Commands and various methods that you can use the package manager to manage packages . This is a general overview , But in this guide , We pause and focus on 2 Command usage . These are apt update and apt upgrade command .
apt update and apt upgrade It's a lot of Linux Two commands most commonly used by users but misunderstood . For some people , They play the same role , But that's not the case . In this guide , We try to distinguish between the two and how to use them .
1)apt update command
This is a command that is mainly called after the installation of a new system or before the installation of a new software package .apt update The command to update Linux Package index or package list of the system . It will not upgrade any packages , Just like some Linux Users are misled .
/etc/apt/sources.list A package index file is a file or database , It contains a list of packages defined in the repository located in the file . The list of other packages is located at /etc/apt/sources.list.d Directory .
Running this command is very safe . If the power supply is suspended or unplugged for some reason , You can recover from where you stopped .
samsung Galaxy S22 Ultra vs iPhone 13 Pro Max vs Pixel 6 Pro
Use... On the terminal cat Command to view the source list file .
$ cat /etc/apt/sources.list
/etc/apt/sources.list file
To update the package list , Please call the following command :
about Ubuntu 18.04 And higher
$ sudo apt update
about Ubuntu 16.04 And earlier
$ sudo apt-get update
2)apt upgrade command
You need to upgrade your software package to the latest version ? then apt upgrade It's an order to execute .apt upgrade The command takes no parameters , Upgrade all outdated software packages on the system to the latest version .
If you need any dependencies , This command will also trigger the installation of new software packages . besides ,apt upgrade It will also install all the security updates required for your system , This strengthens the security of your system .
List the packages that need to be upgraded , Please run apt list --upgradable command . in fact , This is apt update The last displayed prompt of the output .
therefore , To view the packages ready for upgrade , Please run :
$ sudo apt list --upgradable
Upgrade all outdated software packages and apply security patches , Please run the following command :
$ sudo apt upgrade
Do not interrupt or conduct during operation apt Upgrading is safer .
A few things to remember :
If it is interrupted for some reason , Do you have a good backup to restore ?
Whether you send the log to another remote system ?
Is there any manually compiled software ?
Generalization
apt update The command is used to synchronize the list of packages on the system . It is for PPA And the repository to get the latest package list , And make sure they are up to date .
apt upgrade Command to upgrade the software package to the latest version , And install new packages when they are needed as dependencies . It will not delete any packages , If you specify to delete any packages , It will skip them .
边栏推荐
- Disassembly and installation of Lenovo r7000 graphics card
- [set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
- Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn
- [written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
- 獲取並監控遠程服務器日志
- 穀歌 | 蛋白序列的深度嵌入和比對
- Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
- 期末复习(day3)
- Niuke JS separator
- Communication - how to be a good listener?
猜你喜欢
![[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]](/img/b0/aa5dce0bb60c50eea907de9e127d6c.jpg)
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]

Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN

Notepad++ wrap by specified character

今天很多 CTO 都是被幹掉的,因為他沒有成就業務

Mapbox tasting value cloud animation
![Together, Shangshui Shuo series] day 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Together, Shangshui Shuo series] day 9

College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN

大二困局(复盘)

2022.DAY592

Go practice -- gorilla / websocket used by gorilla web Toolkit
随机推荐
mysql启动报错:The server quit without updating PID file几种解决办法
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
Sophomore dilemma (resumption)
ninja: build stopped: subcommand failed.
2022.DAY592
期末复习(Day5)
Hotel public broadcasting background music - Design of hotel IP network broadcasting system based on Internet +
ES 2022 正式发布!有哪些新特性?
Troubleshooting of 32GB Jetson Orin SOM failure to brush
Jetson AGX Orin 平台移植ar0233-gw5200-max9295相机驱动
Final review (Day5)
Kubernetes resource object introduction and common commands (V) - (configmap)
Deploy crawl detection network using tensorrt (I)
PHP notes are super detailed!!!
Progressive multi grasp detection using grasp path for rgbd images
Go practice -- gorilla / websocket used by gorilla web Toolkit
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
Brief introduction of realsense d435i imaging principle
Obtenir et surveiller les journaux du serveur distant