- refactor to library
- compare with installed packages
- deb trees?