Qual é a diferença entre este comando:
sudo apt-get clean
E este comando:
sudo apt-get clean all
No meu sistema Lubuntu 12.04, a simulação desses comandos revela que o comportamento deles é exatamente o mesmo:
ek@Apok:~$ apt-get -s clean
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
ek@Apok:~$ apt-get -s clean all
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
ek@Apok:~$
Existe alguma diferença no apt-getcomportamento de com cleane clean all? Em caso afirmativo, qual é a diferença, sob que circunstâncias é relevante e como devo escolher entre as duas? Se não há diferença, por que clean allexiste?
Se eles são iguais, clean allainda faria sentido se, cleannormalmente, fosse possível usar o nome de um pacote como argumento. Mas esse não é o caso - tentar passar o nome de um pacote para cleannão alterar cleano comportamento de todo, o cache inteiro ainda é excluído:
ek@Apok:~$ apt-get -s clean nano
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
Isso me faz pensar, no entanto, se talvez clean all não exista realmente (e que o que está acontecendo é que allé ignorado, exatamente como nanono exemplo acima).
É clean allapenas uma lenda urbana?