Hi Rich, Thank you for your feature enhancement requests.
In the case of obtaining a package's BundleID, try using the exports command and grep for the package name - the BundleID providing it will be printed. Ex: On Karaf 3.0.1 karaf@root()> exports | grep spring-core Package Name | Version | BundleID | BundleName ... org.springframework.util | 4.0.2.RELEASE | 129 | org.apache.servicemix.bundles.spring-core karaf@root()> Above the Bundle exporting spring framework util is ID 129. I like the idea of adding a bundle-level flag on install, I'll look through our Jira to see if we already have a request for the feature. ex: karaf@root()> install -s -l 65 mvn:org.slf4j/slf4j-api/1.7.2 Cheers, Jamie On Tue, Apr 15, 2014 at 12:58 PM, rich.peters <[email protected]> wrote: > Hi, > > we have had a hard time working around installing some updates to osgi > bundles that our security required we make. There is currently not an easy > way to get the bundle id of an arbitrary package. > > > Life would be a lot easier if there were two new features: > > > 1. There was an osgi command to query the bundle id of a package name in > the maven format: > > osgi:bundle org.springframework/spring-core/3.1.4.RELEASE > > currently there is no way to get the bundle id of a package easily > > > > 2. The osgi:install command accepted a bundle bundle-level as an optional > parameter (as in the osgi:bundle-level command) > > if you do 1. you dont absolutely need this, but it would be > convenient > > > > These two features would make scripting upgrades easier > > > > thanks > > Rich > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Karaf-console-command-enhancements-for-osgi-tp4032774.html > Sent from the Karaf - User mailing list archive at Nabble.com.
