Closed krasnova19 closed 3 years ago
As the developer of the Dockerfile, I want to clarify that both commands are needed. autoremove
will uninstall unneeded packages while clean
will clear the local packages cache. Those two commands reduce the final Docker image size. Therefore, I suggest to reject this PR.
Difference between apt-get clean and apt-get autoremove They two commands are not same and have absolutely different functions. Apt-get clean or apt-get autoclean removes the retrieved packages from the local cache only while the apt-get autoremove removes the unneeded packages that were once installed as a dependency.