You are not logged in.

#1 2006-04-22 19:37:00

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

pacfind (automated pacman -Qo)

function pacfind()
{
  LOCATION=`whereis $1 |awk -F " " '{ print $2 }'`
  echo "Finding what owns ${LOCATION}..."
  pacman -Qo ${LOCATION}
}

Thought of it today, and thought maybe it would be useful for someone.

syntax: pacfind name_of_file

The only real limititation is that it will find bins and libs first (because that's what 'whereis' lists first.


·¬»· i am shadowhand, powered by webfaction

Offline

#2 2006-04-23 19:56:38

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: pacfind (automated pacman -Qo)

whereis $1|cut -f2 -d':'| xargs pacman -Qo

faster and shows all matching files

Offline

#3 2006-04-24 06:46:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacfind (automated pacman -Qo)

heh, owned

Offline

#4 2006-04-24 16:43:18

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: pacfind (automated pacman -Qo)

phrakture wrote:

heh, owned

:cry:


·¬»· i am shadowhand, powered by webfaction

Offline

#5 2006-04-24 21:06:35

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: pacfind (automated pacman -Qo)

shadowhand wrote:
phrakture wrote:

heh, owned

:cry:

so mayby we should change the function name?
pacowned? pacown?

function pacowned()
{
    whereis $1|cut -f2 -d':'| xargs pacman -Qo                                  
}

Offline

#6 2006-04-25 12:26:15

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: pacfind (automated pacman -Qo)

Lol, owned². Sorry, shadowhand.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#7 2006-05-16 14:18:05

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: pacfind (automated pacman -Qo)

phrakture wrote:

heh, owned

LOL!

Way to kick a man in the crotch tongue


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB