如果有的话,此命令之间的区别是什么:
sudo apt-get clean
Run Code Online (Sandbox Code Playgroud)
而这个命令:
sudo apt-get clean all
Run Code Online (Sandbox Code Playgroud)
在我的 Lubuntu 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:~$
Run Code Online (Sandbox Code Playgroud)
是否有过任何差别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
Run Code Online (Sandbox Code Playgroud)
不过,这确实让我想知道,是否可能clean all 真的不存在(并且正在发生的事情all被忽略了,就像nano上面的例子一样)。
是否clean all只是一个都市传说?
Flo*_*sch 203
在
sudo apt-get clean all
Run Code Online (Sandbox Code Playgroud)
all只是被忽略,就像你在clean.
与例如相同
sudo apt-get clean my room
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
251512 次 |
| 最近记录: |