fix listinstalled for debian
implement package erasing for debian