You are not logged in.

#1 2004-05-07 03:45:18

jf/
Member
Registered: 2003-10-26
Posts: 79

Requested feature (comments?) - search within DB for a packa

hi, i just got thinking about this after failing to look for a package containing a particular binary (ie. basically trying to figure out which package i should -S; see http://bbs.archlinux.org/viewtopic.php?p=25647 for more info) - do u think that such a feature could be incorporated into pacman?

much like '-Qo' - but probably less 'strict' on the 'path' thing (ie. if i want to find out which packages provides the 'dig' binary, it's ok if i just specify 'dig', instead of say '/usr/bin/dig' - since i may not know the exact path) - and possibly allowing for grep patterns as well (basically just a grep anyway through the filelist).

Caveat: I recognize though, that for this change to be made, changes must be made to the info that stored in the local database as well (currently, it seems to store only rudimentary info like "depends", and a short "desc", comprising "name", "version", "desc", and "md5sum"...

what do u guys think? i think that would be a really useful feature (at least for guys who arent that familiar with the packages yet - or who want to find out if there's a package for 'such-and-such')

Offline

#2 2004-05-07 05:46:39

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Requested feature (comments?) - search within DB for a packa

I'm not sure I understand, are you looking for something different from the pacman -Ss functionality?

Dusty

Offline

#3 2004-05-07 07:41:42

jf/
Member
Registered: 2003-10-26
Posts: 79

Re: Requested feature (comments?) - search within DB for a packa

yes - basically, 'what package in the db provides for a binary called "dig" (for example'?

that's what i'm suggesting. 'pacman -Ss' only provides for a rudimentary search through the package /names/ themselves - and the short descriptions.

Offline

#4 2004-05-07 20:44:44

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Requested feature (comments?) - search within DB for a packa

It could be done... but then we'd need a server somewhere that knew the contents of every package.  As it stands, we don't have anything like that wink

The other thing is that -S is the only option that uses the internet (and only if it's with a -y or -u).  Likely you don't want to download the list of files in packages on every db update, so pacman would be doing some real more difficult querying.

More likely you'd see a web interface so searching instead of something in pacman.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-05-08 01:48:14

jf/
Member
Registered: 2003-10-26
Posts: 79

Re: Requested feature (comments?) - search within DB for a packa

Xentac wrote:

It could be done... but then we'd need a server somewhere that knew the contents of every package.

yep!!! indeed...

As it stands, we don't have anything like that wink

The other thing is that -S is the only option that uses the internet (and only if it's with a -y or -u).  Likely you don't want to download the list of files in packages on every db update, so pacman would be doing some real more difficult querying.

well yeah - i guess to be "efficient", this new feature would necessitate a change in the downloading "logic" for pacman... well perhaps one of these days when i am more free and am in a "hacking" mode, i will sit down with the pacman source and see what i can do. Provided u guys dont mind adding the new feature, of course.

More likely you'd see a web interface so searching instead of something in pacman.

does the web interface have what i want?

Offline

#6 2004-05-08 07:18:31

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

Re: Requested feature (comments?) - search within DB for a packa

I am thinking at something like that since some time.
My problem sometime is to understand a certain file, that is not in the system, to which  package belong
In this case pacman -Qo is unuseful.
I know that is impossible having ALL possible package contents in the system but this can be done for official and extra and eventually extended to all the repository that are configured in the local pacman.conf by downloading a complete database of the filelist.
But this has also a drawback. The size of the DB increase considerably. This can be partially solved by adding  a  unix time as identifier for the version of the repository DB (maybe is already like that), the filelist-repository DB is downloaded separatly on user command and is built having has version identifier the same timestamp repository.
In this way you can download separatly the  filelist-repository DB only if you need it.
And evetually during an interrogation pacman can give a warning message like
Some of filelist-repository DB are outdated
extra has been created on 1 May 2004 12:25.24 and filelist-repository DB is of the version 25 April 2004 10:00.19

In this way the user can decide if is the case to update the filelist or not, maybe if the difference is only of 10 minutes it is not realy necessary

Offline

Board footer

Powered by FluxBB