如何使用Apt Autoremove清理未使用的软件包?

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
Use apt autoremove
使用apt自动删除

Alternatively we can  use following apt-get version of the package manager.

另外,我们可以使用以下apt-get版本的软件包管理器。

$ sudo apt-get autoremove
LEARN MORE  How To Add PPA To Ubuntu, Debian Repository?
了解更多如何将PPA添加到Ubuntu,Debian存储库?

翻译自: https://www.poftut.com/how-to-clean-unused-packages-with-apt-autoremove/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值