Delete old packages and added output redirect.