OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< 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


image

Red Hat rpm -qf file_name


image


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


Top OS Cloud Computing at OnWorks: