Difference between revisions of "Knoppix Remastering Howto Brazilian Portuguese"


From Knoppix Documentation Wiki
Jump to: navigation, search
(Configurações do APT)
(Configurações do APT)
Line 99: Line 99:
 
*:Nota: Isso foi feito como "chroot" conforme descrito acima.
 
*:Nota: Isso foi feito como "chroot" conforme descrito acima.
  
Before you can add stuff, you will probably need to remove some packages. To get a list of packages installed, type this:
+
Antes de poder adicionar programas, você provavelmente precisará remover alguns pacotes. Para obter uma lista de pacotes instalados, tecle isto:
 
  dpkg-query -l
 
  dpkg-query -l
If you are looking for big installed packages then the command
+
Se você está procurando por pacotes instalados pelo tamanho, para eliminar os que ocupam mais espaço, então o comando
 
  dpkg-awk "Status: .* installed$" -- Package Installed-Size | \
 
  dpkg-awk "Status: .* installed$" -- Package Installed-Size | \
 
   awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | \
 
   awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | \
 
   perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg
 
   perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg
will list the  packages  with size in descending order.
+
vai listar os pacotes em ordem decrescente de tamanho.
  
At least ten times faster is the command
+
O comando a seguir é, pelo menos, dez vezes mais rápido:
 
  dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
 
  dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
and you don't need dpkg-awk or awk or perl; however it does not exclude packages that are not installed. If you have trouble with the above sort command, try using KPackage, expanded all the trees and sorted by the size column to find big packages.
+
e você não precisa de "<tt>dpkg-awk</tt>" ou "<tt>awk</tt>" ou "<tt>perl</tt>"; entretanto, ele não exclui pacotes que não estejam instalados. Se você tiver problemas com o comando "<tt>sort</tt>" acima, tente usar "<tt>KPackage</tt>", expandido em todas as árvores e ordenado pela coluna de tamanho para encontrar os maiores pacotes.
  
Or, you could use this command to get the qpkg-query speed with the non-installed packages not listed:
+
Ou, você poderia usar este comando para obter velocidade no comando "<tt>dpkg-query</tt>" com os pacotes não-instalados que não forem listados:
 
  dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | grep -v deinstall | sort -n | awk '{print $1" "$2}'
 
  dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | grep -v deinstall | sort -n | awk '{print $1" "$2}'
It does the same thing as above, I assume.  I couldn't get the first one to work because I don't have dpkg-awk.
+
Ele faz a mesma coisa anterior, para os que não têm o "<tt>dpkg-awk</tt>".
  
To remove a package (and all packages dependant on it), type this:
+
Para remover um pacote (e todos os pacotes dependentes dele), tecle isto:
 
  apt-get remove --purge ''name-of-package-to-remove''
 
  apt-get remove --purge ''name-of-package-to-remove''
To check for orphaned packages, type this:
+
Para verificar se há pacotes órfãos, tecle isto:
 
  deborphan
 
  deborphan
Want to save more space by getting rid of those pesky orphans (how cruel!), type this ('''Warning''', you won't be prompted yes/no to remove these packages.  When you press Enter after this command, those packages ''will be gone''):
+
Se quer salvar mais espaço retirando os pacotes órfãos, tecle isto (<u>Cuidado</u>: você <u>não</u> será indagado com "yes/no" para confirmar a remoção destes pacotes; quando você pressionar Enter depois deste comando, os pacotes serão eliminados):
 
  deborphan | xargs apt-get -y remove
 
  deborphan | xargs apt-get -y remove
 
If you're uncertain about the previous command and want to see what will happen without making any changes, just add the '''-s''' option to the apt-get command like this (you can do this with all of the apt-get commands, and it's a good habit to use this option before mass operations like this one):
 
If you're uncertain about the previous command and want to see what will happen without making any changes, just add the '''-s''' option to the apt-get command like this (you can do this with all of the apt-get commands, and it's a good habit to use this option before mass operations like this one):

Revision as of 19:57, 21 June 2007