我安装了 OBS Studio:
sudo apt-get install obs-studio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libkeybinder-3.0-0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libfdk-aac0 libluajit-5.1-2 libluajit-5.1-common libxcb-xinerama0
The following NEW packages will be installed:
libfdk-aac0 libluajit-5.1-2 libluajit-5.1-common libxcb-xinerama0 obs-studio
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,678 kB of archives.
After this operation, 13.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
我决定删除它:
sudo apt-get --purge remove obs-studio Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libfdk-aac0 libkeybinder-3.0-0 libluajit-5.1-2
libluajit-5.1-common libxcb-xinerama0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
obs-studio*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 11.6 MB disk space will be freed.
Do you want to continue? [Y/n]
删除它时,我希望释放13.0 MB的磁盘空间,因为这是安装所需的,但我却释放了11.6 MB的磁盘空间:为什么?
可以在这里找到区别:
卸载后,如果没有其他包依赖
obs-studio
这些包,则应该可以使用这些包来删除它们。apt-get autoremove
你也可以运行:
你应该直接得到原始尺寸。
因为不是所有的东西都被删除了。请注意,该软件包需要安装几个库,其中
libluajit-5.1-2
. 在卸载过程中,仅会删除软件包本身,并会提示您删除autoremove
未使用的其他软件包。再次阅读卸载提示。配置文件也可能不会被删除。有时建议选择完全删除--purge
。至于为什么要这样做,我只能猜测这是一个保护功能,因为各种软件都依赖于库和 API,所以促进系统管理员手动删除它们是一个健全的检查,这正是他们想要的。或者换句话说,避免破坏以防万一。