J’ai rencontré de nouveaux des soucis et voilà la procédure de nettoyage qui m’a aidé à les résoudre.
Si ça peut être utile à quelqu’un dans le futur.
Tailles des partitions :
root@portable-debian:~# df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda6 323M 323M 0 100% /
tmpfs 501M 4,0K 501M 1% /lib/init/rw
udev 496M 232K 496M 1% /dev
tmpfs 501M 300K 500M 1% /dev/shm
/dev/sda11 7,2G 1,3G 5,5G 19% /home
/dev/sda10 368M 79M 271M 23% /tmp
/dev/sda7 6,8G 2,5G 3,9G 39% /usr
/dev/sda8 2,8G 841M 1,8G 32% /var
/dev/sda5 49G 44G 4,8G 91% /mnt/Donnees
Les 10 plus gros fichiers contenus dans la partition de la racine (en ko) :
root@portable-debian:~# du -ax / | sort -nr | head -10
319874 /
116931 /opt
116930 /opt/java
116929 /opt/java/32
114043 /opt/java/32/jre1.7.0_17
113302 /opt/java/32/jre1.7.0_17/lib
92347 /lib
82442 /root
80000 /lib/modules
79999 /lib/modules/3.2.0-0.bpo.2-686-pae
C’est java qui prend le plus de place.
Je l’avais installé en suivant les conseils lus ici mais surtout iciici, et en suivant ce manuel, en particulier cette partie :
[quote]Repository
The repository provides a Debian package with the script and the same support files as in the support tarball. Setting things up is a bit more work, but the script will be properly integrated in your system. Additional advantages: a possibly installed out-of-date sun-java6 installation will be removed completely and if you keep the software source in your list, you will automatically receive updates of the script. The procedure:
[b]put the line
deb [duinsoft.nl/pkg](http://www.duinsoft.nl/pkg) debs all
in the file /etc/apt/sources.list[/b], either using Software Sources from your System Menu or by editing the file in an editor (as root)
or:
put this line in a file named (e.g.) duinsoft.list in the directory /etc/apt/sources.list.d
import the gpg key with the command (all on one line)
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
enter the commands (two lines)
sudo [b]apt-get update[/b]
sudo [b]apt-get install update-sun-jre[/b]
or use Synaptic to install the package
installation of the Runtime Environment will follow automatically
[/quote]
Pour supprimer java j’ai donc suivi cette partie :
[quote]Remove
If you want to remove the script, how you go about it depends on how you installed it. To undo a manual install, execute the command
sudo update-sun-jre -v remove
(with the directory containing the script open in a terminal). This will not work if the script was installed using a Debian package. In that case you could use e.g. Synaptic or apt-get (dpkg --remove will not work). You will be offered another Java installation: OpenJDK. If you do not want that, you can start by installling the sun-java6-plugin (if it is still available in the repository). The other sun-java6 packages will tag along and the script package will be removed automatically. [/quote]
# suppression paquet java
root@portable-debian:~# apt-get remove update-sun-jre
# detection paquets orphelins
root@portable-debian:~# aptitude search ~c
update-sun-jre - Updater/installer for Oracle's (Sun) Java Runtime Environment
# suppression paquets orphelins
root@portable-debian:~# dpkg -P $(dpkg -l | awk '$1~/^rc$/{print $2}')
(Lecture de la base de données... 95777 fichiers et répertoires déjà installés.)
Suppression de update-sun-jre ...
Purge des fichiers de configuration de update-sun-jre ...
dpkg : avertissement : lors de la suppression de update-sun-jre, le répertoire « /var/cache/update-sun-jre » n'était pas vide, donc il n'a pas été supprimé.
# y'a quoi là bas ?
root@portable-debian:~# cd /var/cache/update-sun-jre/
root@portable-debian:/var/cache/update-sun-jre# du -h *
4,0K cached-download-32
46M jre-7u17-linux-i586.tar.gz
47M jre-7u21-linux-i586.tar.gz
root@portable-debian:# rm -rf /var/cache/update-sun-jre/
# y a t'il du mieux ?
root@portable-debian:~# df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda6 323M 320M 0 100% /
tmpfs 501M 4,0K 501M 1% /lib/init/rw
udev 496M 232K 496M 1% /dev
tmpfs 501M 300K 500M 1% /dev/shm
/dev/sda11 7,2G 1,3G 5,5G 19% /home
/dev/sda10 368M 79M 271M 23% /tmp
/dev/sda7 6,8G 2,5G 3,9G 39% /usr
/dev/sda8 2,8G 754M 1,9G 29% /var
/dev/sda5 49G 44G 4,8G 91% /mnt/Donnees
# non, seule var a été impactée
# bon bha suppression à la mano des gros fichiers java vu plus haut
root@portable-debian:# cd /opt
root@portable-debian:/opt# du -ax . | sort -nr | head -10
114046 .
114045 ./java
114044 ./java/32
114043 ./java/32/jre1.7.0_17
113302 ./java/32/jre1.7.0_17/lib
52915 ./java/32/jre1.7.0_17/lib/rt.jar
49690 ./java/32/jre1.7.0_17/lib/i386
23170 ./java/32/jre1.7.0_17/lib/i386/libjfxwebkit.so
10178 ./java/32/jre1.7.0_17/lib/i386/server
10175 ./java/32/jre1.7.0_17/lib/i386/server/libjvm.so
root@portable-debian:/opt# rm -rf java/
root@portable-debian:/opt# df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda6 323M 209M 98M 69% /
tmpfs 501M 4,0K 501M 1% /lib/init/rw
udev 496M 232K 496M 1% /dev
tmpfs 501M 300K 500M 1% /dev/shm
/dev/sda11 7,2G 1,3G 5,5G 19% /home
/dev/sda10 368M 79M 271M 23% /tmp
/dev/sda7 6,8G 2,5G 3,9G 39% /usr
/dev/sda8 2,8G 844M 1,8G 32% /var
/dev/sda5 49G 44G 4,8G 91% /mnt/Donnees
# Mieux !
root@portable-debian:/opt# du -ax / | sort -nr | head -10
202944 /
92347 /lib
82442 /root
80000 /lib/modules
79999 /lib/modules/3.2.0-0.bpo.2-686-pae
77056 /lib/modules/3.2.0-0.bpo.2-686-pae/kernel
58301 /root/Téléchargements
58300 /root/Téléchargements/git
55244 /lib/modules/3.2.0-0.bpo.2-686-pae/kernel/drivers
40154 /root/Téléchargements/git/.git
root@portable-debian:# rm -rf /root/Téléchargements/git/
root@portable-debian:# du -ax / | sort -nr | head -10
144654 /
92347 /lib
80000 /lib/modules
79999 /lib/modules/3.2.0-0.bpo.2-686-pae
77056 /lib/modules/3.2.0-0.bpo.2-686-pae/kernel
55244 /lib/modules/3.2.0-0.bpo.2-686-pae/kernel/drivers
24154 /root
18774 /root/ClefUSB.zip
15427 /boot
13513 /lib/modules/3.2.0-0.bpo.2-686-pae/kernel/drivers/net
root@portable-debian:~/Téléchargements/git# rm /root/ClefUSB.zip
root@portable-debian:~/Téléchargements/git# df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda6 323M 133M 173M 44% /
# Impec =)