Linux distributions uses package managers in order to install new software. apt
is one of the most popular package management tool. Over time installed packages will be hold in the operating system. This is will create some overhead for disk usage. In this tutorial we will look to to remove this cached and unused packages.
Linux发行版使用软件包管理器来安装新软件。 apt
是最受欢迎的软件包管理工具之一。 随着时间的流逝,已安装的软件包将保留在操作系统中。 这将增加磁盘使用量。 在本教程中,我们将寻求删除此缓存和未使用的程序包。
使用apt自动删除 (Use apt autoremove)
We will use apt autoremove
which will automatically find package those are unused by other packages and not needed. The this packages will be removed. Generally alder versions of the kernel will be removed with this process.
我们将使用apt autoremove
来自动查找其他软件包未使用且不需要的软件包。 该软件包将被删除。 通常,此过程将删除内核的其他版本。
$ sudo apt autoremove
![Use apt autoremove](https://i-blog.csdnimg.cn/blog_migrate/3a0c85aa963acc6c31febac4c7d6c904.png)
Alternatively we can use following apt-get
version of the package manager.
另外,我们可以使用以下apt-get
版本的软件包管理器。
$ sudo apt-get autoremove
翻译自: https://www.poftut.com/how-to-clean-unused-packages-with-apt-autoremove/