Re: Best/recommended way to search if a Java library or class is packaged
I always use the following bash-based solution: dpkg -l | grep java | awk '{ print $2 }' | xargs -I {} dpkg -L {} | grep jar | xargs -I {} grep "javax.servlet.Servlet" {} But I'm pretty sure there is much better tolling for such tasks... On Thu, Dec 3, 2015 at 9:19 PM, Emmanuel Bourgwrote: > Le 3/12/2015 19:16, Miguel Landaeta a écrit : > > > Since jar-content.txt Torsten's file is not being updated since a long > > time, I was wondering what's the current recommended way to quickly > > check if a Java library is packaged in Debian. > > Maybe we could revive this tool. If the source is available somewhere I > can host the service on my server. > > > > I know I can use apt-file or apt-cache but sometimes that's not > > enough (IMO). > > I often use sources.debian.net with queries like 'class Foo' or 'package > org.bar' to locate the source package containing a class or a package. > > Emmanuel Bourg > > -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 6602747925 e: sergio.fernan...@redlink.co w: http://redlink.co
Re: Best/recommended way to search if a Java library or class is packaged
On Fri, Dec 4, 2015 at 2:16 AM, Miguel Landaeta wrote: > Since jar-content.txt Torsten's file is not being updated since a long > time, I was wondering what's the current recommended way to quickly > check if a Java library is packaged in Debian. The future of this sort of thing (mapping between $foo in language $bar and package $baz) is DEP-11. It is currently focussed on mapping packages to "apps" but is in theory aimed at more general mappings, allowing one to eventually do things like this: apt-get install java-class:javax.servlet.Servlet https://wiki.debian.org/DEP-11 https://wiki.debian.org/AppStream -- bye, pabs https://wiki.debian.org/PaulWise
Re: Best/recommended way to search if a Java library or class is packaged
Hi Emmanuel, On 12/3/15, Emmanuel Bourgwrote: > Le 3/12/2015 19:16, Miguel Landaeta a écrit : > >> Since jar-content.txt Torsten's file is not being updated since a long >> time, I was wondering what's the current recommended way to quickly >> check if a Java library is packaged in Debian. > > Maybe we could revive this tool. If the source is available somewhere I > can host the service on my server. If you want to host service for searching for classes (and other things) then the following project may be interesting for you: http://java-deptools.fedorainfracloud.org/ https://github.com/msimacek/java-deptools It is a web application where you can search for classes and manifest headers of all JARs in particular OS version. There are plans to extend it with other capabilities, such as searching for other things (eg. pom.xml and pom.properties embedded in JARs) and analysing dependencies between JAR files and distro packages. Currently only rpm packages are supported, but it should be fairly easy to add support for deb. It should even be possible to have a single instance where you would be able to search in various deb- and rpm-based distros. -- Mikołaj
Re: Best/recommended way to search if a Java library or class is packaged
Thanks to everyone for the helpful answers. -- Miguel Landaeta, nomadium at debian.org secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key. "Faith means not wanting to know what is true." -- Nietzsche signature.asc Description: Digital signature
Re: Best/recommended way to search if a Java library or class is packaged
Le 3/12/2015 19:16, Miguel Landaeta a écrit : > Since jar-content.txt Torsten's file is not being updated since a long > time, I was wondering what's the current recommended way to quickly > check if a Java library is packaged in Debian. Maybe we could revive this tool. If the source is available somewhere I can host the service on my server. > I know I can use apt-file or apt-cache but sometimes that's not > enough (IMO). I often use sources.debian.net with queries like 'class Foo' or 'package org.bar' to locate the source package containing a class or a package. Emmanuel Bourg