vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've been using Gentooo for about a month now and am really, really impressed. I just have a couple of questions, things that maybe I've missed. 1. Where can I find the files with the package descs in them? The reason I ask, I'm sure it must be faster to search them using the find command than the the emerge -S option, which seems to take about 10 minutes, and also it'd be handty to be able to look at the desc of a package when deciding whether or not to emerge it. 2. Is there an easy wway either to get a list of files in a package, or to find out which package a file belongs to? This was a nice piece of functionality in Slackware where, if you were wanting to know which package foobar.txt belonged to, you could just issue the command: grep 'foobar.txt' /var/log/packages/* And assuming you'd installed the relevant package using pkgtool or installpkg you would immediately find out which package it was in, because each package had it's own file containing a list of files and a description of the package. Thanks in advance. -- Toby Fisher Email: toby@tjfisher.co.uk Tel.: +44(0)1480 417272 Mobile: +44(0)7974 363239 ICQ: #61744808 Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html |
| ||||
| Toby Fisher wrote: > 1. Where can I find the files with the package descs in them? The reason > I ask, I'm sure it must be faster to search them using the find command > than the the emerge -S option, which seems to take about 10 minutes, and > also it'd be handty to be able to look at the desc of a package when > deciding whether or not to emerge it. they are stored in the ebuilds directly. e.g., to get the description of the package gentoolkit, you can use $ cat /usr/portage/app-portage/gentoolkit/gentoolkit-0.1.30.ebuild \ | grep DESCRIPTION > 2. Is there an easy wway either to get a list of files in a package, or > to find out which package a file belongs to? This was a nice piece of > functionality in Slackware where, if you were wanting to know which > package foobar.txt belonged to, you could just issue the command: > grep 'foobar.txt' /var/log/packages/* > > And assuming you'd installed the relevant package using pkgtool or > installpkg you would immediately find out which package it was in, > because > each package had it's own file containing a list of files and a > description of the package. yes. first install gentoolkit, if you haven't already $ emerge gentoolkit you can use 'etcat -b path-to-file/filename' or 'qpkg -f path-to-file/filename' then to find out to which package file filename belongs. 'qpkg -l foo' gives you a list of files in package foo. use 'etcat' and 'qpkg --help' to find out more options. Regards, Dennis |