List package content and sed replacement

* list package content feature
* substitute sed with minimal commands
* handling error when compiling