0

I am not using kde desktop enviroment(lxde instead), and I download kchmviewer via apt-get install kchmviewer. It downloaded a lot of packages and takes up space about 200M. However when I uninstall the packages via sudo apt-get --purge autoremove kchmviewer it doesn't remove the packages installed alongside the install. It only removes hundreds of kb. I think I did right way, usually --purge autoremove will remove all the packages alongside the install, but not this case.

How can I remove all the package that actually I don't need, it is annoying to have them installed but can't remove them.

0

Use deborphan:

apt-get remove `deborphan`
  • nothing happens – 喵喵是我的猫猫 Sep 20 '16 at 3:47
  • 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – 喵喵是我的猫猫 Sep 20 '16 at 3:48
  • Then you have no unnecessary packages. You may try deborphan --guess-all. – Ipor Sircer Sep 20 '16 at 3:51
  • But how could this be? I installed 200M packages, and now remove just a few kb. guess-all doesn't work also, only two packages removed. – 喵喵是我的猫猫 Sep 20 '16 at 3:56
  • 1
    dpkg and apt have logs at /var/log/dpkg.log and /var/log/apt. Look at the history. – Ipor Sircer Sep 20 '16 at 4:03
0

The following command will remove packages installed as dependencies which are no longer needed

apt-get autoremove

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.