On May 17, 2005, at 6:57 PM, Paul Nicholas McCubbins wrote:
http://packages.debian.org allows searching for packages, or files.

Thanks, Paul. That's exactly what I was looking for[1,2]. The search URL looks fairly straight forward. Should be easy enough to turn that into a CLI tool. Or does one already exist?


Here's a quick-and-dirty bash function that does the trick:

apt-get.pkg.search ()
{
    [ -z "$1" ] && {
        echo "Usage: apt-get.search.file file_in_package";
        return
    };
    lynx --dump --width=100 \
      'http://packages.debian.org/cgi-bin/search_contents.pl?word='\
$1'&searchmode=searchfiles&case=insensitive&version=stable&arch=i386'
}

[1] http://tinyurl.com/aqskk
[2] http://packages.debian.org/cgi-bin/search_contents.pl?word=xml2- config&searchmode=searchfiles&case=insensitive&version=stable&arch=i386


Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent


_______________________________________________ CWE-LUG mailing list [email protected] http://www.cwelug.org/ http://www.cwelug.org/archives/ http://www.cwelug.org/mailinglist/

Reply via email to