Will it be logical by means of Debian oriented logic to unite the three commands apt-get clean and apt-get autoclean, and apt-get autoremove into one single command that does all of them?
익명
04:14
clean, autoclean, and autoremove --- combining them is a good step?
clean, autoclean, and autoremove --- combining them is a good step?
Top Answer/Comment:
Top Answer/Comment:
This completely depends on what you want to achieve, they are separate for a reason. But lets see what they actually do:
apt/apt-get clean→ cleans the packages and install script in/var/cache/apt/archives/apt/apt-get autoclean→ cleans obsolete deb-packages, less thancleanapt/apt-get autoremove→ removes orphaned packages which are not longer needed from the system, but not purges them, use the--purgeoption together with the command for that.
So it is up to you to decide if you want to combine one of the first two with the last one and you can do this like below:
sudo apt autoremove && sudo apt clean
If thats what you really want to do, but now to code an extra command for it is pretty superfluous to be honest.
Further reading material:
상단 광고의 [X] 버튼을 누르면 내용이 보입니다
