क्या, अगर कुछ भी, इस कमांड के बीच अंतर है:
sudo apt-get clean
और यह आदेश:
sudo apt-get clean all
मेरे लुबंटू 12.04 सिस्टम पर, इन कमांड्स का अनुकरण करने से उनके व्यवहार का पता चलता है:
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:~$
वहाँ के apt-getसाथ cleanऔर व्यवहार में कभी कोई अंतर है clean all? यदि हां, तो क्या अंतर है, किन परिस्थितियों में यह प्रासंगिक है, और मुझे दोनों के बीच कैसे चयन करना चाहिए? अगर कोई अंतर नहीं है, तो clean allअस्तित्व क्यों है ?
यदि वे समान हैं, तो फिर clean allभी समझ में आता है कि cleanक्या तर्क के रूप में पैकेज नाम ले सकता है। लेकिन यह मामला नहीं है - एक पैकेज के नाम को पारित करने का प्रयास करने से व्यवहार में cleanपरिवर्तन नहीं होता है clean, पूरा कैश अभी भी हटा दिया जाता है:
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
यह मुझे आश्चर्यचकित करता है, हालांकि, अगर वास्तव में अस्तित्व में clean all नहीं है (और जो हो रहा है, allउसे अनदेखा किया nanoगया है , जैसा कि ऊपर दिए गए उदाहरण में था)।
क्या clean allसिर्फ एक शहरी किंवदंती है?