{"id":17,"date":"2021-01-11T09:43:52","date_gmt":"2021-01-11T09:43:52","guid":{"rendered":"https:\/\/veltzer.net:8890\/?p=17"},"modified":"2021-01-11T09:43:52","modified_gmt":"2021-01-11T09:43:52","slug":"purging-unneeded-packages-on-a-debian-system","status":"publish","type":"post","link":"https:\/\/veltzer.net:8890\/purging-unneeded-packages-on-a-debian-system\/","title":{"rendered":"Purging unneeded packages on a debian system"},"content":{"rendered":"\n

If you want to remove all packages which are in the \u201crc\u201d state (means that the package was already removed but only it\u2019s configuration remained) you can use the following command as administrator:<\/p>\n\n\n\n

dpkg --purge `dpkg --list | grep \"^rc\" | tr -s \" \" | cut -d \" \" -f 2`<\/code><\/p>\n\n\n\n

Take care to save configuration files that you need before issuing it.<\/p>\n","protected":false},"excerpt":{"rendered":"

If you want to remove all packages which are in the \u201crc\u201d state (means that the package was already removed but only it\u2019s configuration remained) you can use the following command as administrator: dpkg –purge `dpkg –list | grep “^rc” | tr -s ” ” | cut -d ” ” -f 2` Take care to … <\/p>\n