You are not logged in.

#1 2007-08-25 14:57:54

schallstrom
Member
Registered: 2007-08-01
Posts: 11

How to find the package containing a certain file?

I would like to know which package is containing the file 'glxgears'.

But as I am often in the situation that I know the name of a file I need, but not which package it belongs to, I would rather like to know how to find this out with pacman or some other tool. On Debian I would use apt-file.

I skim read the wiki page for pacman but did not find the right command there.

Offline

#2 2007-08-25 15:05:44

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: How to find the package containing a certain file?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-08-25 15:11:07

schallstrom
Member
Registered: 2007-08-01
Posts: 11

Re: How to find the package containing a certain file?

Thanks for the link. But that is pretty disappointing. So how am I supposed to find out what package glxgears belongs to?

Offline

#4 2007-08-25 15:18:10

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to find the package containing a certain file?

/usr/bin/glxgears is owned by mesa 7.0.1-1

Offline

#5 2007-08-25 15:34:22

schallstrom
Member
Registered: 2007-08-01
Posts: 11

Re: How to find the package containing a certain file?

lucke wrote:
/usr/bin/glxgears is owned by mesa 7.0.1-1

Thanks!

Offline

Board footer

Powered by FluxBB