< Previous | Contents | Next >
Finding Which Package Installed A File
To determine what package is responsible for the installation of a particular file, the fol- lowing commands can be used:
Table 14-12: Package File Identification Commands
Style Command(s)
Style Command(s)
Debian dpkg --search file_name
Red Hat rpm -qf file_name
Example: To see what package installed the /usr/bin/vim file on a Red Hat system:
rpm -qf /usr/bin/vim
rpm -qf /usr/bin/vim