You are not logged in.

#1 2010-04-24 13:07:20

RufusD
Member
Registered: 2010-03-21
Posts: 86

[SOLVED] pacman: which package should I install for a given file?

Hi there!
I'm still trying to learn arch's essentials. A question coming up frequently is:
Say I know I need file /usr/bin/zipinfo. How do I find out which package it's delivered in? The only thing remotely similar in the wiki is

pacman -Qo /path/to/a/file

but this only works for already installed packages. So what next?
Best wishes,
Rufus

P.S.: google told me the package is called unzip so that's not the problem. Still, there has to be some way to get this information from the command line.

Last edited by RufusD (2010-04-24 15:30:31)

Offline

#2 2010-04-24 13:08:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] pacman: which package should I install for a given file?

install pkgtools and with that package you'll have pkgfile. first you need to sync his database with pkgfile -u and then search for a file using pkgfile zipinfo


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-04-24 15:30:20

RufusD
Member
Registered: 2010-03-21
Posts: 86

Re: [SOLVED] pacman: which package should I install for a given file?

brilliant, thanks! I could have figured it's not a standard pacman function (since the situation is similar with debian's apt-get).

Maybe this is worth a mention on pacman's wiki page. This is the first time arch's fabulous wiki let me down

Last edited by RufusD (2010-04-24 15:32:35)

Offline

Board footer

Powered by FluxBB