
공간을 절약하려고 하는데 /var/cache/apt
이 apt autoclean
명령이 효과가 없습니다. 왜 그런 겁니까?
root@server:/var/cache# du -sh *
4.7G apt
3.2M debconf
20K ldconfig
1.9M man
8.0K PackageKit
8.0K postgresql
root@server:/var/cache# apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@server:/var/cache# du -sh *
4.7G apt
3.2M debconf
20K ldconfig
1.9M man
8.0K PackageKit
8.0K postgresql
데비안 9에서 작업 중입니다.
답변1
대신 sudo apt clean
이 문서에서는 이 두 명령을 더 자세히 다루지만 기본적으로 autoclean
제거된 패키지를 제거하고 clean
제거된 패키지와 캐시된 .deb 파일을 모두 삭제합니다.
https://www.how2shout.com/linux/apt-get-command-autoclean-clean-autoremove/