Linux 软件卸载后的依赖检查
重新安装samba后发现没有生成配置文件,是因为卸载samba之后有依赖没有卸载干净,查找出samba依赖包并进行卸载,重新安装samba即可生成配置文件
[root@vm7 ~]# rpm -qa samba
[root@vm7 ~]# find / -name samba /run/samba /etc/sysconfig/samba /etc/selinux/targeted/active/modules/100/samba /etc/logrotate.d/samba /var/lib/samba /var/log/samba /usr/lib64/samba
[root@vm7 ~]# dnf list installed|grep samba samba-client-libs.x86_64 4.10.16-19.el7_9 @System samba-common.noarch 4.10.16-19.el7_9 @System samba-common-libs.x86_64 4.10.16-19.el7_9 @System samba-common-tools.x86_64 4.10.16-19.el7_9 @System samba-libs.x86_64 4.10.16-19.el7_9 @System