[Seek Help] 为何卸载软件后再重新安装,软件所有的设置和登陆信息自动恢复?
Tofloor
poster avatar
正直笔尖
deepin
2022-04-03 04:01
Author

卸载后应该是所有的设置信息没有了,难道卸载后还遗留该软件的所有的设置状态信息?

Reply Favorite View the author
All Replies
安洛
deepin
2022-04-03 04:30
#1

因为那些东西是软件运行时自己创建的。

卸载软件只会卸载安装软件时安装的文件,至于安装完成之后软件运行时产生的文件则不在管理范畴。

Reply View the author
Comments
正直笔尖
2022-04-04 04:37
那就是系统垃圾会越来越多了
Mr-Wan
deepin
2022-04-03 04:47
#2

如果说提到登陆信息之类的,那么一般相关设置信息存在于主目录,一般是隐藏文件或文件夹,包管理器应该是不会处理这个目录的。根据软件的不同,存储相关设置的文件位置可能稍有区别,有在 ~/.config ~/.local ~/.mozila .vimrc 之类的。

比如

find ~/ -name firefox

/home/aaa/.mozilla/firefox
/home/aaa/.cache/mozilla/firefox
/home/aaa/.p2/pool/plugins/org.eclipse.wildwebdeveloper_0.5.20.202202041634/org/eclipse/wildwebdeveloper/debug/firefox
/home/aaa/.p2/pool/plugins/org.eclipse.wildwebdeveloper_0.5.20.202202041634/icons/firefoxIcon.png
/home/aaa/.p2/pool/plugins/org.eclipse.wildwebdeveloper_0.5.20.202202041634/icons/firefoxIconSmall.png
/home/aaa/.p2/pool/plugins/org.eclipse.wildwebdeveloper_0.5.20.202202041634/node_modules/firefox-debugadapter

Reply View the author
吉吉如律令
deepin
2022-04-03 04:50
#3

似乎是保存在在主目录隐藏文件夹中了,比如.config

Reply View the author
Mr-Wan
deepin
2022-04-03 04:52
#4

linux 软件的配置信息有个层次级别,默认先看用户目录,其次看软件默认位置的配置文件(一般在/etc),最后是软件的默认值。

典型的就是bash vim

Reply View the author
andktan
deepin
2022-04-03 05:17
#5

所以记得自己不用了要把它格了去

Reply View the author
新手小白
deepin
2022-04-03 18:21
#6
It has been deleted!
Mr-Wan
deepin
2022-04-04 04:18
#7

apt-get remove 会删除软件包而保留软件的配置文件

apt-get purge 会同时清除软件包和软件的配置文件

Reply View the author
Comments
正直笔尖
2022-04-04 04:36
要root权限