On Fri, Sep 01, 2006 at 02:43:55PM -0400, Benjamin Esham wrote: > > I guess my point in writing all of this is to ask: is there any way to > determine which of my packages are applications and which are libraries? > Such a thing would not only aid in cleaning up messy Fink > installations, but > it would also provide a list of "the things you can install with Fink."
One heuristic might be "an app is a package that installs an executable in /sw/bin or /sw/sbin". Well that's slightly off because some libs have a config script or build tool there, but anyway. For one's installed packages, something like 'dpkg -S /sw/bin /sw/sbin' would list all packages with their files that are installed there, so you could parse that down to just package names. Might be a good idea to remove all packages that are flagged as BuildDependsOnly to reduce false positives, since they are lib headers and probably don't have applications, but any config scripts for the lib would be there. An alternate approach would be to parse the whole package database instead of the installed package set. Probably any package that is flagged as BuildDependsOnly is just lib headers, not an app. Probably any package that has a Shlibs field is just runtime shared library code, not an app. What's left is data files and apps, and we have very few pure data-file packages. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
