当前位置: > Ubuntu >

清理 Ubuntu 系统硬盘空间

时间:2017-04-05 23:46来源:linux.it.net.cn 作者:IT
To delete downloaded packages (.deb) already installed (and no longer needed)



sudo apt-get clean

To remove all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).



sudo apt-get autoclean
To remove unnecessary packages (After uninstalling an app there could be packages you don’t need anymore)



sudo apt-get autoremove
To delete old kernel versions



sudo apt-get remove --purge linux-image-X.X.XX-XX-generic
If you don’t know which kernel version to remove



dpkg --get-selections | grep linux-image

转自:http://askubuntu.com/questions/5980/how-do-i-free-up-disk-space (责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容