Package Management (Apt/Dnf/Pacman Internals)
Stop hunting for the file that broke your package install
🧩 The Challenge
You finally fixed that one dependency hell issue only to find a stray configuration file is still throwing errors from a package you supposedly uninstalled. Nothing makes you feel more like a junior admin than grepping through /etc and /var/lib looking for leftover clutter.
💡 The Fix
Use your package manager’s internal database to see which files were actually dumped onto your disk by a specific package. It beats guessing where a package decided to hide its junk.
rpm -ql <package_name>
dpkg -L <package_name>
pacman -Ql <package_name>
⚙️ Why It Works
These commands query the local package database directly, which tracks every single file registered to an install, including those hidden in subdirectories you forgot existed.
🚀 Pro-Tip: Pipe it into grep if you are looking for a specific binary path and keep your sanity.
Linux Tips & Tricks | © ngelinux.com | 10/7/2026
