1

I had installed OpenJDK 7 Runtime (openjdk-7-jre) and when it was installed, it also accompany with lot of package depends, but when i wanted to remove. it just removed openjdk-7-jre size 800 kb, and not removed all OpenJDK 7 Runtime depends. Actually, it become unnecessary packages.

How should I do to fix it?

0

2 Answers 2

3

If the other packages were installed only as dependencies of openjdk-7-jre and you have removed openjdk-7-jre, you should be able to remove those now-unnecessary packages with:

sudo apt-get autoremove

If you want to remove their systemwide configuration files too, run this instead:

sudo apt-get --purge autoremove
6
  • I'm very grateful i have tried but it didn't work well. do you have any solution?
    – obysr
    Jun 3, 2012 at 22:00
  • @obysr When you say it didn't work well, what do you mean? Do you mean that no packages were listed to be removed? Or do you mean that there were errors trying to remove them? Jun 3, 2012 at 22:04
  • yes, there's no any packages to be removed.
    – obysr
    Jun 3, 2012 at 22:15
  • @obysr Do you know which packages you want removed? Jun 3, 2012 at 22:16
  • i don't know, I installed it with USC automatically and doesn't show any depends. i checked it with command : apt-cache show openjdk-7-jre | grep Depends but I doubt what package which should remove, cause some package intended relation with other apps
    – obysr
    Jun 3, 2012 at 22:21
0

I also suspect that there must be a pile of old applications that I tried but discarded. I have also uploaded many packages that simply did not work on Ubuntu, for example Debian software. You have to remove those downloads manually.

Check this site - http://www.stchman.com/cleanup.html

sudo apt-get autoclean
1
  • sudo apt-get autoclean does not uninstall anything. It just removes cached package files (i.e., files for installing packages, .deb files) that are no longer provided by download servers and are thus considered unlikely candidates for future (re)installation. Jul 2, 2012 at 11:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .