![卸载应用程序不会删除 ~ 中的文件](https://linux22.com/image/863190/%E5%8D%B8%E8%BD%BD%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B8%8D%E4%BC%9A%E5%88%A0%E9%99%A4%20~%20%E4%B8%AD%E7%9A%84%E6%96%87%E4%BB%B6.png)
我从软件中心卸载了wine 1.6.1,因为我将通过从源代码编译来安装更高版本的wine。
但卸载不会删除~中的那些文件。
~/.wine/drive_c$ ls *
os433025.bin
Program Files:
Common Files Internet Explorer Microsoft Visual Studio NewSoft Ultrapico
Djvu Bookmarker JGsoft Microsoft Visual Studio 8 OpenBUGS
Foxit Software MathType Microsoft Works Tracker Software
InstallShield Installation Information Microsoft.NET MSBuild TTKN
users:
Public tim
windows:
assembly Fonts Installer notepad.exe SHELLNEW temp Vbox win.ini~
COCR2.INI help logs PCHEALTH system twain_32.dll winhelp.exe winsxs
command hh.exe Microsoft.NET regedit.exe system32 twain.dll winhlp32.exe xinstaller.dll
explorer.exe inf mono rundll.exe system.ini UnDeployV.exe win.ini xinstaller.exe
为什么不把它们移除?有什么理由让它们仍然值得保留吗?
如果我想删除应用程序的所有未被其他应用程序使用的文件,我应该使用哪个命令?
答案1
“清除”选项应该apt-get
删除该包和相关的配置文件......
sudo apt-get purge <package_name>
apt-get 手册页 (http://manpages.ubuntu.com/manpages/trusty/en/man8/apt-get.8.html) 说,
purge is identical to remove except that packages are removed and
purged (any configuration files are deleted too).