Something has installed nginx on my system, I have not specfically typed apt-get install nginx. How can I find what has installed nginx ? I only noticed after a reboot, the system is rarely rebooted so the timescale is unknown.I've found it in dpkg.log. But I don't remember installing it and I can't figure out from the list what package required it.
What installed nginx?
ubuntu;linux mint;apt
Try running the commands:grep nginx /var/log/apt/history.log nginxgrep nginx /var/log/apt/history.log.1.gzetc (for whatever history.log files are present). The apt history shows what packages were installed by apt, so will show your package as long as it wasn't too long ago. To do these all at one shot, use (thanks to Stephen Kitt):zgrep nginx /var/log/apt/history.log*