removido
(usa Nenhuma)
Enviado em 16/06/2013 - 23:48h
EDITADO
pinduvoz escreveu:
Primeira providência:
sudo apt-get clean
Isso vai remover o cache do apt, liberando bastante espaço.
Segunda providência (é um só comando, uma só linha):
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
Isso vai remover os kernels antigos, que também ocupam muito espaço.
Finalmente, rode:
sudo apt-get autoremove
---
Agora vc deve ter espaço, então:
sudo apt-get install bleachbit
Use o bleachbit pelo menu para remover o resto da sujeira, como cache do Forefox e outros navegadores.
---
O Ubuntu só vai ocupar 10 GB de espaço em disco se vc instalar uma montanha de jogos 'grandes', dos quais são exemplos aqueles de combate tipo "doon".
Discordo quase que completamente (que me desculpe), mas usar aquele comando de remoção do kernel (ao menos no Debian), leva a uma catástrofe sem tamanho:
*** De acordo com o colega @pinduvoz, isso não ocorre no Ubuntu, para mais veja os comentários subsequentes.
Simulando...
$ uname -a
$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -s purge
* troquei o
-y do apt-get purge por
-s
O log...
[debian] [~]
[h4rd3r] >> uname -a
Linux debian 3.9-6.dmz.2-liquorix-686 #1 ZEN SMP PREEMPT Sat Jun 15 22:35:29 UTC 2013 i686 GNU/Linux
[debian] [~]
[h4rd3r] >> dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -s purge
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Os pacotes a seguir serão REMOVIDOS:
build-essential* comerr-dev* g++* g++-4.7* g++-4.7-multilib* g++-multilib*
gcc-4.7-multilib* gcc-multilib* gir1.2-notify-0.7* google-earth-stable*
kernel-package* krb5-multidev* libasound2-dev* libatk1.0-dev*
libatkmm-1.6-dev* libc6-dev* libc6-dev-amd64* libcairo-script-interpreter2*
libcairo2-dev* libcairomm-1.0-dev* libcurl4-openssl-dev* libdbus-glib-1-dev*
libexpat1-dev* libfontconfig1-dev* libfreetype6-dev* libgcrypt11-dev*
libgdk-pixbuf2.0-dev* libglib2.0-bin* libglib2.0-dev* libglibmm-2.4-dev*
libgnutls-dev* libgnutls-openssl27* libgnutlsxx27* libgpg-error-dev*
libgssrpc4* libgtk2.0-dev* libgtkmm-2.4-dev* libgudev-1.0-dev*
libharfbuzz-dev* libharfbuzz-icu0* libice-dev* libidn11-dev*
libkadm5clnt-mit8* libkadm5srv-mit8* libkdb5-6* libkrb5-dev* libldap2-dev*
libncurses5-dev* libnotify-dev* libp11-kit-dev* libpango1.0-dev*
libpangomm-1.4-dev* libpcre3-dev* libpcrecpp0* libpixman-1-dev*
libpng12-dev* librtmp-dev* libsigc++-2.0-dev* libsm-dev* libssh2-1-dev*
libssl-dev* libstartup-notification0-dev* libstdc++6-4.7-dev*
libtasn1-3-dev* libthunarx-2-dev* libtinfo-dev* libtool* libusb-dev*
libwnck-dev* libxcb-render0-dev* libxcb-shm0-dev* libxcomposite-dev*
libxcursor-dev* libxdamage-dev* libxext-dev* libxfixes-dev* libxft-dev*
libxi-dev* libxinerama-dev* libxrandr-dev* libxrender-dev* libxres-dev*
linux-headers-3.2.0-4-686-pae* linux-headers-3.2.0-4-common*
linux-headers-3.9-5.dmz.1-liquorix-686*
linux-headers-3.9-6.dmz.2-liquorix-686* linux-headers-686-pae*
linux-headers-liquorix-686* linux-image-3.2.0-4-686-pae*
linux-image-3.9-5.dmz.1-liquorix-686* linux-image-3.9-6.dmz.2-liquorix-686*
linux-image-686-pae* linux-image-liquorix-686* linux-kbuild-3.2*
linux-libc-dev* lsb-core* lsb-security* nvidia-kernel-3.2.0-4-686-pae* pax*
x11proto-composite-dev* x11proto-damage-dev* x11proto-fixes-dev*
x11proto-randr-dev* x11proto-render-dev* x11proto-resource-dev*
x11proto-xext-dev* x11proto-xinerama-dev* zlib1g-dev*
0 pacotes atualizados, 0 pacotes novos instalados, 108 a serem removidos e 1 não atualizados.
Purg kernel-package [12.036+nmu3]
Purg build-essential [11.5]
Purg libcurl4-openssl-dev [7.26.0-1+wheezy2]
Purg libkrb5-dev [1.10.1+dfsg-5+deb7u1]
Purg krb5-multidev [1.10.1+dfsg-5+deb7u1]
Purg comerr-dev [2.1-1.42.5-1.1]
Purg g++-multilib [4:4.7.2-1]
Purg g++ [4:4.7.2-1]
Purg g++-4.7-multilib [4.7.2-5]
Purg g++-4.7 [4.7.2-5] [libstdc++6-4.7-dev:i386 ]
Purg libstdc++6-4.7-dev [4.7.2-5]
Purg gcc-multilib [4:4.7.2-1]
Purg gcc-4.7-multilib [4.7.2-5]
Purg libnotify-dev [0.7.5-1]
Purg gir1.2-notify-0.7 [0.7.5-1]
Purg google-earth-stable [7.1.1.1580-r0]
Purg libasound2-dev [1.0.25-4]
Purg libgtkmm-2.4-dev [1:2.24.2-1]
Purg libatkmm-1.6-dev [2.22.6-1]
Purg libthunarx-2-dev [1.6.3-1]
Purg libwnck-dev [2.30.7-1]
Purg libgtk2.0-dev [2.24.10-2]
Purg libatk1.0-dev [2.4.0-2]
Purg libc6-dev-amd64 [2.17-3]
Purg libpangomm-1.4-dev [2.28.4-1]
Purg libpango1.0-dev [1.32.5-5+b1]
Purg libgudev-1.0-dev [175-7.2]
Purg libglibmm-2.4-dev [2.32.1-1]
Purg libdbus-glib-1-dev [0.100.2-1]
Purg libgdk-pixbuf2.0-dev [2.26.1-1]
Purg libcairomm-1.0-dev [1.10.0-1]
Purg libcairo2-dev [1.12.2-3]
Purg libglib2.0-dev [2.36.1-2build1]
Purg libpcre3-dev [1:8.31-2]
Purg lsb-core [4.1+Debian8+deb7u1]
Purg libusb-dev [2:0.1.12-20+nmu1]
Purg librtmp-dev [2.4+20111222.git4e06e21-1]
Purg libgnutls-dev [2.12.20-7]
Purg libssh2-1-dev [1.4.2-1.1]
Purg libgcrypt11-dev [1.5.0-5]
Purg libxft-dev [2.3.1-1]
Purg libfontconfig1-dev [2.9.0-7.1]
Purg libfreetype6-dev [2.4.9-1.1]
Purg libtool [2.4.2-1.1]
Purg libexpat1-dev [2.1.0-1]
Purg libpng12-dev [1.2.49-1]
Purg libssl-dev [1.0.1e-2]
Purg zlib1g-dev [1:1.2.7.dfsg-13]
Purg libncurses5-dev [5.9-10]
Purg libc6-dev [2.17-3]
Purg libcairo-script-interpreter2 [1.12.2-3]
Purg libglib2.0-bin [2.36.1-2build1]
Purg libgnutls-openssl27 [2.12.20-7]
Purg libgnutlsxx27 [2.12.20-7]
Purg libgpg-error-dev [1.10-3.1]
Purg libkadm5srv-mit8 [1.10.1+dfsg-5+deb7u1]
Purg libkdb5-6 [1.10.1+dfsg-5+deb7u1]
Purg libkadm5clnt-mit8 [1.10.1+dfsg-5+deb7u1]
Purg libgssrpc4 [1.10.1+dfsg-5+deb7u1]
Purg libharfbuzz-dev [0.9.18-3]
Purg libharfbuzz-icu0 [0.9.18-3]
Purg libsm-dev [2:1.2.1-2]
Purg libice-dev [2:1.0.8-2]
Purg libidn11-dev [1.25-2]
Purg libldap2-dev [2.4.31-1+nmu2]
Purg libp11-kit-dev [0.12-3]
Purg libpcrecpp0 [1:8.31-2]
Purg libpixman-1-dev [0.26.0-4]
Purg libsigc++-2.0-dev [2.2.10-0.2]
Purg libstartup-notification0-dev [0.12-1]
Purg libtasn1-3-dev [2.13-2]
Purg libtinfo-dev [5.9-10]
Purg libxcb-render0-dev [1.8.1-2+deb7u1]
Purg libxcb-shm0-dev [1.8.1-2+deb7u1]
Purg libxcomposite-dev [1:0.4.3-2]
Purg libxcursor-dev [1:1.1.13-1+deb7u1]
Purg libxdamage-dev [1:1.1.3-2]
Purg libxres-dev [2:1.0.6-1+deb7u1]
Purg libxrandr-dev [2:1.3.2-2+deb7u1]
Purg libxinerama-dev [2:1.1.2-1+deb7u1]
Purg libxi-dev [2:1.6.1-1+deb7u1]
Purg libxext-dev [2:1.3.1-2+deb7u1]
Purg libxfixes-dev [1:5.0-4+deb7u1]
Purg libxrender-dev [1:0.9.7-1+deb7u1]
Purg linux-headers-686-pae [3.2+46]
Purg linux-headers-3.2.0-4-686-pae [3.2.46-1]
Purg linux-headers-3.2.0-4-common [3.2.46-1]
Purg linux-headers-3.9-5.dmz.1-liquorix-686 [3.9-4]
Purg linux-headers-liquorix-686 [3.9-6]
Purg linux-headers-3.9-6.dmz.2-liquorix-686 [3.9-6]
Purg nvidia-kernel-3.2.0-4-686-pae [304.88+1+1+3.2.41-2]
Purg linux-image-686-pae [3.2+46]
Purg linux-image-3.2.0-4-686-pae [3.2.46-1]
Purg linux-image-3.9-5.dmz.1-liquorix-686 [3.9-4]
Purg linux-image-liquorix-686 [3.9-6]
Purg linux-image-3.9-6.dmz.2-liquorix-686 [3.9-6]
Purg linux-kbuild-3.2 [3.2.17-1]
Purg linux-libc-dev [3.2.46-1]
Purg lsb-security [4.1+Debian8+deb7u1]
Purg pax [1:20120606-2]
Purg x11proto-composite-dev [1:0.4.2-2]
Purg x11proto-damage-dev [1:1.2.1-2]
Purg x11proto-fixes-dev [1:5.0-2]
Purg x11proto-randr-dev [1.3.2-2]
Purg x11proto-render-dev [2:0.11.1-2]
Purg x11proto-resource-dev [1.2.0-3]
Purg x11proto-xext-dev [7.2.1-1]
Purg x11proto-xinerama-dev [1.2.1-2]
[debian] [~]
[h4rd3r] >>
Ou seja, remove até o kernel em uso! não sei se ocorre o mesmo no Ubuntu (se não ocorrer que bom pra vocês).
Quanto ao Bleachbit, concordo, o mesmo faz um excelente trabalho desde que bem configurado.
Outro que ajuda bastante é o localepurge:
$ sudo apt-get install localepurge
$ sudo localepurge -v