I know in RedHat, you can use find / –exec rpm -qf {} \; |grep "is not"
to find files that are not associated with packages. One reason I need this is to find files that are installed from source so I know what packages I need to build from source and make everything go through the package manager. I'm coming into managing a system that someone else was loose with on the package management side of things and I need to ensure that the security is good so no stray rootkits, etc are installed.
The same method, different command:
$ dpkg -S /etc/profile
dpkg-query: no path found matching pattern /etc/profile
$ dpkg -S /etc/ssh/ssh_config
openssh-client: /etc/ssh/ssh_config
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments