Exchanged rpm related code for debian equivalent.