Ubuntu: Как полностью удалить Java
Nov. 1st, 2015 09:01 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
понедельник, 4 ноября 2013 г.
http://eldoradozpua.blogspot.com/2013/11/ubuntu-java.html
Ubuntu: Как полностью удалить Java
Удалить все пакеты Java (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ):
sudo apt-get update apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove sudo apt-get -y autoremove
Очистить конфигурационные файлы:
dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge
Удалить конфигурационный файл Java и кэш:
sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf
Удалить виртуальные машины, установленные вручную:
sudo rm -rf /usr/lib/jvm/*
Удалить все остальное:
for g in ControlPanel java java_vm javaws jcontrol jexec keytool mozilla-javaplugin.so orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc xulrunner-1.9-javaplugin.so; do sudo update-alternatives --remove-all $g; done
Поиск оставшихся директорий:
sudo updatedb sudo locate -b '\pack200'
Если вывод предыдущей команды показал что-то вроде этого: /path/to/jre1.6.0_34/bin/pack200 , удалите родительский директорий bin, как здесь:
sudo rm -rf /path/to/jre1.6.0_34
.http://eldoradozpua.blogspot.com/2013/11/ubuntu-java.html
no subject
Date: 2015-11-01 06:50 pm (UTC)2007-11, see http://wiki.debian.org/AtiHowTo
As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.
Warning: do not mix the non-free packages with the packages created by the installer as they will conflict in non-obvious ways. Before switching from one method to another, completely remove all fglrx-related packages. Never do upgrade from one method to another directly!
The buildpackage will fail on Debian 6.0 (Squeeze). They're quite broken.
In addition, the generic installer will fail if your / partition has less space available than it wants, even if all of the files would be placed on a different partition (such as /usr).
Update the xorg.conf file (Configuration)
sudo aticonfig --initial
Now restart X, or reboot for the driver changes to take effect.
#############################################################
$ apt-get update
$ apt-get install module-assistant build-essential fakeroot dh-make debconf bzip2
#############################################################
$ fglrxinfo
http://wiki.cchtml.com/index.php/Debian_Installation_Guide