To list installed packages:

dpkg -l

To look for a specific package by name:

dpkg -l <package name>

To determine the origin of a file:

dpkg -S <path to file>

eg:

# dpkg -S /etc/rc3.d/
sysv-rc