# Accidentally uninstalled a critical bundle! help

**URL:** <https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060>\
**Category:** Installation\
**Created:** [August 16, 2019, 6:20am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060 "2019-08-16T06:20:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dastrix80](https://community.openhab.org/user_avatar/community.openhab.org/dastrix80/32/20582_2.png) [@dastrix80](https://community.openhab.org/u/dastrix80)\
**Post date:** [August 16, 2019, 6:20am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/1 "2019-08-16T06:20:22Z")

</div>

Hi All

i typed bundle:uninstall 21 instead of 212

Its removed a stack fo core things. Can I reinstall these without too much drama? openhab2 is running…

```csv

6:14:36.044 [ERROR] [org.openhab.binding.bom] - FrameworkEvent ERROR - org.openhab.binding.bom
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bom [257]
  Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.thing
    -> Export-Package: org.eclipse.smarthome.core.thing; bundle-symbolic-name="org.eclipse.smarthome.core.thing"; bundle-version="0.10.0.oh240"; version="0.0.0"
       org.eclipse.smarthome.core.thing [109]
         Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
         Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
           -> Export-Package: org.eclipse.smarthome.config.core; bundle-symbolic-name="org.eclipse.smarthome.config.core"; bundle-version="0.10.0.oh240"; version="0.0.0"
              org.eclipse.smarthome.config.core [97]
                Unresolved requirement: Import-Package: com.google.gson
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core
    -> Export-Package: org.eclipse.smarthome.config.core; bundle-symbolic-name="org.eclipse.smarthome.config.core"; bundle-version="0.10.0.oh240"; version="0.0.0"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.discovery
    -> Export-Package: org.eclipse.smarthome.config.discovery; bundle-symbolic-name="org.eclipse.smarthome.config.discovery"; bundle-version="0.10.0.oh240"; version="0.0.0"

```

```csv
openhab> bundle:install 198
Bundle IDs:
Error executing command: Error installing bundles:
        Unable to install bundle 198: org.osgi.framework.BundleException: Error reading bundle content.
openhab>

```

---

<div class="post-metadata">

**Author:** ![chriscolden](https://community.openhab.org/user_avatar/community.openhab.org/chriscolden/32/71507_2.png) [@chriscolden](https://community.openhab.org/u/chriscolden)\
**Post date:** [August 16, 2019, 7:23am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/2 "2019-08-16T07:23:40Z")

</div>

Easiest option might be to backup your config and reinstall.

---

<div class="post-metadata">

**Author:** ![dastrix80](https://community.openhab.org/user_avatar/community.openhab.org/dastrix80/32/20582_2.png) [@dastrix80](https://community.openhab.org/u/dastrix80)\
**Post date:** [August 16, 2019, 7:52am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/3 "2019-08-16T07:52:10Z")

</div>

Indeed, if you dont purge your install it keeps all the settings, more or less.

---

<div class="post-metadata">

**Author:** ![chriscolden](https://community.openhab.org/user_avatar/community.openhab.org/chriscolden/32/71507_2.png) [@chriscolden](https://community.openhab.org/u/chriscolden)\
**Post date:** [August 16, 2019, 8:14am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/4 "2019-08-16T08:14:13Z")

</div>

could also try just installing over the top. It might fix the core dependency.

---

<div class="post-metadata">

**Author:** ![dastrix80](https://community.openhab.org/user_avatar/community.openhab.org/dastrix80/32/20582_2.png) [@dastrix80](https://community.openhab.org/u/dastrix80)\
**Post date:** [August 16, 2019, 8:44am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/5 "2019-08-16T08:44:16Z")

</div>

Yeah all sorted, i think best to remove then reinstall. just remember DO NOT PURGE!

---

<div class="post-metadata">

**Author:** ![mhilbush](https://community.openhab.org/user_avatar/community.openhab.org/mhilbush/32/56108_2.png) [@mhilbush](https://community.openhab.org/u/mhilbush)\
**Post date:** [August 16, 2019, 11:10am UTC](https://community.openhab.org/t/accidentally-uninstalled-a-critical-bundle-help/80060/6 "2019-08-16T11:10:15Z")

</div>

For future reference… Removing the contents of tmp and cache usually does the trick for me.
