我sudo apt-get upgrade
在终端上执行了此操作并得到了:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
krb5-locales libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/531 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [O/n]
这句话After this operation, 0 B of additional disk space will be used.
让我很感兴趣。
我想了解为什么它在更新某些软件包时不需要更多(或更少)的空间。这种情况0 B
已经发生在我身上不止一次了,所以这不可能是巧合。
答案1
升级套餐代替较旧的软件包。
有时,新包装比旧包装稍大或稍小。
有时新包装的尺寸是相同的。
答案2
升级后的软件包可能会比旧软件包更大或更小,如果新软件包比旧软件包小,那么您将获得一些空间,您知道
sudo apt 自动删除
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
在该命令行之后,您的磁盘将释放一些空间,并且软件包的大小也相同。(新软件包和旧软件包)
在两种情况下你会得到相同的输出
**After this operation, 0 B of additional disk space will be used**