To run Apache Felix OSGi, you need to download the
felix-framework-4.x.x.tar.gz or
felix-framework-4.x.x.zip compressed file from the site. Once you have extracted the Felix framework distribution, from the command line in the extracted directory type the following: After bundles are installed and running, typing a command like
help from the console will display all available commands, which are: •
bundlelevel ... | - set or get bundle start level. •
cd [] - change or display base URL. •
find - display bundles matching substring. •
headers [ ...] - display bundle header properties. •
help - display impl commands. •
inspect - inspect dependency information (e.g., packages, service, etc.). •
install [ ...] - install bundle(s). •
log [] [error|warn|info|debug] - list recent log entries. •
obr help - OSGi bundle repository. •
ps [-l | -s | -u] - list installed bundles. •
refresh [ ...] - refresh packages. •
resolve [ ...] - attempt to resolve the specified bundles. •
shutdown - shutdown framework. •
start [ ...] - start bundle(s). •
startlevel [] - get or set framework start level. •
stop [ ...] - stop bundle(s). •
sysprop [-r] [] [] - Display, set, modify and remove system properties. •
uninstall [ ...] - uninstall bundle(s). •
update [] - update bundle. •
version - display version of framework. ==Version history==