Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pfs - search for packages which contain a specific file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Thu Jun 02, 2005 5:41 pm    Post subject: pfs - search for packages which contain a specific file Reply with quote

i started a project called portage file search. the client script collects information about installed packages from /var/db/pkg/ and sends them to me. this makes it possible to setup a file search like http://www.debian.org/distrib/packages. i need some volunteers (especially the ones who merge "exotic" packages ;) who install my client script from http://www.rommel.stw.uni-erlangen.de/~fejf/pfs/download/ to get more data for my database which is accessable via: http://www.rommel.stw.uni-erlangen.de/~fejf/pfs/

fejf
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.
Back to top
View user's profile Send private message
Darkael
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1321
Location: France

PostPosted: Fri Jun 03, 2005 4:37 am    Post subject: Reply with quote

This is a nice project :)

I'm not sure it worked for me though. Is your database updated in real time? There are some packages installed on my box which were not updated on your site (ex: fvwm).
Back to top
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Fri Jun 03, 2005 8:44 am    Post subject: Reply with quote

A very nice and useful thing (maybe the interface could be polished a bit? but that's just a question of taste).

It should be promoted, I am sure a lot of people would use such a thing.
_________________
shine on,

dr_strange

Set the Controls for the Heart of Gentoo
http://magenta.linuxforum.hu
Back to top
View user's profile Send private message
andrew_wiggin
n00b
n00b


Joined: 21 Apr 2005
Posts: 59
Location: Israel

PostPosted: Fri Jun 03, 2005 8:57 am    Post subject: Reply with quote

Very nice and useful thing :) thanks
Back to top
View user's profile Send private message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Fri Jun 03, 2005 12:41 pm    Post subject: Reply with quote

hi,

KarnEvil: no the database is not updated in real time atm because i want to see if there are any errors. so the update can take some days :)

dr_strange: what do you mean with "the interface" ? the colors ? than download http://www.rommel.stw.uni-erlangen.de/~fejf/pfs/default.css, modify it to fit your needs and i'll implement it - you if mean the layout: tell me what you don't like - i'm open for suggestions :)

please note:
i received three 0 byte files. as i don't log anything i don't know if these were caused by a bug in the upload-script or perhaps a search robot. if anyone receives a "Uploaded succeded with 0 bytes" message plz contact me via pm or on ircnet/efnet nick FEJF
additonal note:
i now log the ip if the uploaded file size was 0 bytes. i will stop the logging as soon as i don't get any more 0 byte files. if you don't like it that your ip might get logged please do not install the pfs-client.

thx
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.


Last edited by fejf on Fri Jun 03, 2005 1:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Fri Jun 03, 2005 12:52 pm    Post subject: Reply with quote

Ummm, basically I meant the actual search section could be more separated from the News section. Maybe. But it is usable in the present form, so don't bother.

The "Packages w/o files" would mean that you have not yet erceived file listings for 17 thousand packages?
_________________
shine on,

dr_strange

Set the Controls for the Heart of Gentoo
http://magenta.linuxforum.hu
Back to top
View user's profile Send private message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Fri Jun 03, 2005 1:06 pm    Post subject: Reply with quote

dr_strange wrote:
The "Packages w/o files" would mean that you have not yet erceived file listings for 17 thousand packages?


short: YES

in detail: YES, but the package count does not consider masked packages. this means it would be lower if you subtract the masked packages. additionaly the package count counts every package version as different package (e.g. vim-core-6.3-r3, vim-core-6.3-r4, vim-core-6.3.068, vim-core-6.3.074, vim-core-6.3.075, vim-core-7.0_alpha20050321, vim-core-7.0_alpha20050326 count as 7 packages) but in most cases it is enough to have the files of one of them.
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.
Back to top
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Sat Jun 04, 2005 7:49 am    Post subject: Reply with quote

Emerged, tried. Works, my CONTENTS uploaded:-)
_________________
shine on,

dr_strange

Set the Controls for the Heart of Gentoo
http://magenta.linuxforum.hu
Back to top
View user's profile Send private message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Sun Jun 05, 2005 1:24 am    Post subject: Reply with quote

hi,
dr_strange: thx for the publicity on http://magenta.linuxforum.hu (even if i can't read it ;)

further notes:
1. i wrote a script which tries to emerge packages inside a chroot environment which are not yet in my database. hope this will bring down the "packages w/o files"-count. it will take some time and it will only merge one version and non-masked packages. that means about 8000 packages from the current 17022 "packages" w/o files.
2. i recognized that the dev-perl/Algorithm-Diff package from gentoo stable does not work with the current pfs.pl - for a workaround look at the news. i try to fix this as soon as i have some time
3. i kind of screwed my database by a bug in one of my scripts which added thousands (or even more - i don't know for sure ;) invalid entries. so i need to rebuild it from scratch. so don't be suprised if the file-count starts over from zero.
4. the layout split to sth. like news/changelog/help/bugs(?) is on the todo...

fejf
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.
Back to top
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Mon Jun 06, 2005 7:29 am    Post subject: Reply with quote

You are very much welcome. I have seen a lot of questions across this board concerning which package contains which file so your script/site is sorely needed IMHO. I was planning to add some similar feature to my emerge wrapper script pye, but you conveniently did the job for me:-) Also I am no good in web programming so kudos to you for the website/search engine also.
_________________
shine on,

dr_strange

Set the Controls for the Heart of Gentoo
http://magenta.linuxforum.hu
Back to top
View user's profile Send private message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Thu Jul 21, 2005 10:55 am    Post subject: Reply with quote

ok just a short update:
there are nearly 8000 ebuilds (perhaps same packages with different versions) entered in my database which is near to the half way of a complete db. the problem was that the database got ugly slow (about 1-3minutes per query). now i had some time to fix this (about 3-15secs per query now). i think i might get some more ebuilds into my db soon if everything works out as i expect it ;)
fejf
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.
Back to top
View user's profile Send private message
bzzz
n00b
n00b


Joined: 08 Apr 2005
Posts: 9

PostPosted: Wed Sep 07, 2005 10:37 pm    Post subject: Reply with quote

Great project!
Coming from 8 years of Debian usage, i'm surprised that Gentoo lacks a very useful tool like this.
Too many times i have need to know in which uninstalled package is located a file, and now is
possible thanks to you (there isn't another way, or i'm wrong? ).
I think your project have to become an official db and should be near "Online Package Database" in the Gentoo's homepage or even better integrated in it; so while searchig for a package would be possible to view also the file list ( like the Debian Packages DB do).
If you think to propose it, i'll vote for you!
Back to top
View user's profile Send private message
UTgamer
Veteran
Veteran


Joined: 10 Aug 2003
Posts: 1326
Location: Troisdorf (Köln) Deutschland

PostPosted: Thu Sep 15, 2005 10:31 am    Post subject: Reply with quote

Since some days your "File Search:" is no longer working :(
_________________
AMD Phenom II x4 >> CFLAGS="-march=amdfam10 -O2 -mmmx -msse3 -mfpmath=sse,387 -pipe -ffast-math" is stable and here in use.

Did Intel produce at any time bugfree HW?
http://www.urbanmyth.org/microcode/
http://www.heise.de/newsticker/meldung/91748
Back to top
View user's profile Send private message
fejf
n00b
n00b


Joined: 20 Sep 2002
Posts: 42

PostPosted: Thu Sep 15, 2005 10:50 am    Post subject: Reply with quote

k should be fixed...

was a permission problem - each time the daily cron job updated the db the perms were too restricted... encountered this problem and changed the perms manualy -> didn't remember to check again after one day...

fejf
_________________
There are 10 types of people in the world. Those who understand binary, and those that dont.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum