<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>dpkg &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/dpkg/</link>
	<description>Feed of posts on WordPress.com tagged "dpkg"</description>
	<pubDate>Mon, 30 Nov 2009 04:38:12 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Afinal, é fácil ou não instalar programas e drivers no Linux? E remover?]]></title>
<link>http://educarrega.wordpress.com/2009/11/14/afinal-e-facil-ou-nao-instalar-programas-e-drivers-no-linux-e-remover/</link>
<pubDate>Sat, 14 Nov 2009 22:48:20 +0000</pubDate>
<dc:creator>Eduardo Carrega</dc:creator>
<guid>http://educarrega.wordpress.com/2009/11/14/afinal-e-facil-ou-nao-instalar-programas-e-drivers-no-linux-e-remover/</guid>
<description><![CDATA[Mais um assunto que dá &#8220;pano-prá-manga&#8221;  quando dois técnicos resolvem conversar sobre t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div><img class="size-full wp-image-204 alignleft" title="gnome-app-install" src="http://educarrega.wordpress.com/files/2009/11/1258497161_gnome-app-install.png" alt="" width="128" height="128" /></div>
<p>Mais um assunto que dá &#8220;pano-prá-manga&#8221;  quando dois técnicos resolvem conversar sobre tecnologia:</p>
<p><strong>1) É ou não é afinal fácil adicionar e remover programas no Linux?</strong><br />
<strong>2) É ou não é mais fácil que no Windows?<br />
3) E os drivers, qual dos dois se saem melhor na escolha e instalação?</strong></p>
<p>Bom, minha missão neste blog é ser coerente, e não fundamentalista, procuro apresentar as coisas da forma mais fácil e clara possível, e tentarei não arrastar a asa para lado nenhum, e ser justo com as partes envolvidas, Linux, Windows e Você!</p>
<p>Sendo assim, desenvolvi uma simples tabela comparativa que pode ser muito útil para você visualizar e tirar suas próprias conclusões, apresentando os recursos disponíveis, similares ou não entre os dois sistemas operacionais.</p>
<table cellspacing="0" width="595" rules="NONE">
<tbody>
<tr>
<td style="text-align:center;" valign="TOP" bgcolor="#000000">
<h2><span style="color:#ffffff;"><br />
Recurso</span></h2>
</td>
<td style="text-align:center;" valign="TOP" bgcolor="#280099"><a title="windows icon" href="http://www.iconfinder.net/icondetails/32703/128/?q=windows"> <img class="alignnone size-full wp-image-205" title="Windows" src="http://educarrega.wordpress.com/files/2009/11/1258497081_windows.png" alt="" width="128" height="128" /></a><a title="windows icon" href="http://www.iconfinder.net/icondetails/32703/128/?q=windows"> </a></td>
<td style="text-align:center;" valign="TOP" bgcolor="#663300"><a title="here, start, ubuntuoriginal icon" href="http://www.iconfinder.net/icondetails/25272/128/?q=ubuntu"> <img class="alignnone size-full wp-image-206" title="ubuntuoriginal" src="http://educarrega.wordpress.com/files/2009/11/1258497096_start-here-ubuntuoriginal.png" alt="" width="128" height="128" /></a><a title="here, start, ubuntuoriginal icon" href="http://www.iconfinder.net/icondetails/25272/128/?q=ubuntu"> </a></td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Adicionar e Remover Programas/Pacotes</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div><img class="alignnone size-full wp-image-207" title="1258497179_button_ok" src="http://educarrega.wordpress.com/files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
<p>Adicionar Remover Programas no Painel de Controle</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Central de Programas Ubuntu<br />
Synaptic<br />
Ubuntu Tweak<br />
Scripts (como Ubuntu Perfeito)</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Adiciona programas à partir de um repositório remoto</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Somente Drivers de Dispositivos</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Todos os tipos de aplicativos numa base com milhares à escolher nos modos acima descritos.</p>
<p>Linha de comando &#8220;sudo apt-get install nome_do_pacote&#8221;<br />
Linha de comando &#8220;sudo aptitude install nome_do_pacote&#8221;</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Adiciona programas à partir de fontes locais (Hd, Cd, DVD, Usb)</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Auto-execução<br />
Seleção Manual</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Auto-execução<br />
Adição de Repositório Local<br />
Seleção Manual</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Adiciona programas à partir auto-executáveis/extratores baixados</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>.exe (padrão Windows)<br />
.msi (idem)<br />
.zip (Winamp por exemplo)</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>.deb (padrão debian/ubuntu)<br />
.bin (Google Earth, Picasa)<br />
.run<br />
.sh<br />
.exe (utilizando wine)<br />
.rpm (com alien)<br />
.py (python)</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Adiciona programas com compilação específica</strong></h2>
</td>
<td align="LEFT" valign="TOP"><img class="alignnone size-full wp-image-208" title="button_cancel" src="http://educarrega.wordpress.com/files/2009/11/1258497193_button_cancel.png" alt="" width="30" height="30" /><a title="button, cancel icon" href="http://www.iconfinder.net/icondetails/7976/64/?q=no"> </a></td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Make, Make install à partir de pacotes devel</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Remove programas por algum tipo de central</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Adicionar Remover Programas no Painel de Controle</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Central de Programas Ubuntu, Synaptic<br />
Ubuntu Tweak<br />
Scripts</td>
</tr>
<tr>
<td align="LEFT" valign="TOP" bgcolor="#cccccc">
<h2><strong>Remove programas por locais fora de uma central</strong></h2>
</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Iniciar &#62; Programas &#62; Programa &#62; Desinstalar<br />
Clicar sobre o programa baixado e solicitar sua remoção</td>
<td align="LEFT" valign="TOP">
<div>
<div><img title="1258497179_button_ok" src="../files/2009/11/1258497179_button_ok.png" alt="" width="30" height="30" /></div>
</div>
<p>Linha de comando no terminal:<br />
“sudo dpkg &#8211;remove nome_do_programa.deb”<br />
Linha de comando &#8220;sudo apt-get remove nome_do_pacote&#8221;<br />
Linha de comando &#8220;sudo aptitude remove nome_do_pacote&#8221;<br />
Clicar sobre o programa baixado e solicitar sua remoção</td>
</tr>
</tbody>
</table>
<p>Diante dos comparativos apresentados acima, tecnicamente conferimos um empate técnico às nossas questões, todos tem sistemas muito eficientes de instalação e remoção de programas, desde os mais simples e triviais aos mais técnicos.<!--more--></p>
<p>Mas há algumas ressalvas:<br />
- Creio que o Windows possui uma leve vantagem no fato de possuir o &#8220;Desinstalar&#8221; dentro do menu do próprio programa.<br />
- A ausência disso no Linux acaba sendo superada pelos seus outros meios.<br />
- O Linux possui o fantástico recurso de Repositório unificado de programas, permitindo a instalação segura e tranquila de dentro do próprio Ubuntu, sem a necessidade de recorrer à fontes externas como sites, cds e dvds, o que já não ocorre em sua totalidade no Windows, que reserva este fantástico recursos apenas às suas atualizações automáticas de segurança e algumas outras raras exceções.</p>
<p>Para mim, os Repositórios colocam o Linux na vantagem.</p>
<p><strong>Mas e os Drivers?</strong></p>
<p>Em suma, a esmagadora maioria dos drivers para periféricos são reconhecidos automaticamente pelo Linux, devidamente compilados em seu Kernel e Módulos, mesmo assim, em alguns casos os principais fabricantes disponibilizam em seus sites, os drivers para serem baixados, assim como para qualquer outro sistema operacional.<br />
O impeditivo ocorre quando é apenas disponibilizado fontes para compilação, eleminando a possibilidade de muitos poderem gozar dos drivers nativos para os seus perifericos, já que muitos não possuem conhecimento técnico suficiente para resolver dependências de bibliotecas para ter sua multifuncional 100% operante.</p>
<p>No Windows, por outro lado, reconhece quase nada de drivers (toda regra possui exceções) , mas é baixar, dar dois cliques e pronto, dispositivo reconhecido.<br />
O problema é achar os drivers corretos entre milhares de sites fakes repletos de armadilhas!</p>
<p><strong>Conclusão?</strong></p>
<blockquote><p>Tem de tudo para todos, e todos para tudo.</p></blockquote>
<p>Dêem suas opiniões, colaborem, polemizem!</p>
<p><strong>Algumas telas de instalação de software no Linux:</strong></p>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081483127759394"><img src="http://lh6.ggpht.com/_LsXcKcMdjAU/Sv8nehMYoiI/AAAAAAAAEK4/wn6AT2UJuhc/s128/Ubuntu_9.10-Ubuntu%20Tweak%20software%20terceiros.jpg" alt="" /></a><br />
Programas de terceiros no Ubuntu Tweak</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081536714649298"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8nho0frtI/AAAAAAAAEK8/KdNm5gzzpoo/s128/Ubuntu_9.10_instalador_gdeb_dependencias.jpg" alt="" /></a><br />
Gdebi instalando as dependências</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081588344318850"><img src="http://lh3.ggpht.com/_LsXcKcMdjAU/Sv8nkpJ964I/AAAAAAAAELA/Gkrl1cCvdRk/s128/Ubuntu_9.10_instalador_gdeb_baixando.jpg" alt="" /></a><br />
Gdebi baixando pacotes</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081646155931922"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8noAhVIRI/AAAAAAAAENQ/WPBdOVl7hPg/s128/ubuntu_9.10_instalar_gdeb.jpg" alt="" /></a><br />
Instalar um .deb via GDebi</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081701864390466"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8nrQDQv0I/AAAAAAAAELI/6uyqxz66Xgg/s128/Ubuntu_9.10-Ubuntu%20Tweak%20Limpar%20Cache%20Programas.jpg" alt="" /></a><br />
Limpeza de pacotes no Ubuntu Tweak</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081761483991506"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8nuuJrqdI/AAAAAAAAELM/YGmM7BvBuqk/s128/Ubuntu_9.10-Ubuntu%20Tweak%20instalador.jpg" alt="" /></a><br />
Adicionar e Remover Programas no Ubuntu Tweak</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081811851302050"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8nxpyL1KI/AAAAAAAAELQ/p9NQbmC1OK0/s128/Ubuntu_9.10-Dpkg_install_terminal.jpg" alt="" /></a><br />
Instalar um pacote via dpkg no terminal</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081865011507602"><img src="http://lh6.ggpht.com/_LsXcKcMdjAU/Sv8n0v0kMZI/AAAAAAAAELU/OKN5LJEGGz4/s128/Ubuntu_9.10-Central%20de%20Programas%20do%20Ubuntu%202.jpg" alt="" /></a><br />
Obter Software na Central de Programas do Ubuntu</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081915558666562"><img src="http://lh6.ggpht.com/_LsXcKcMdjAU/Sv8n3sH8oUI/AAAAAAAAELY/Dwqs4Ddx3k8/s128/Ubuntu_9.10-Central%20de%20Programas%20do%20Ubuntu%201.jpg" alt="" /></a><br />
Categorias de softwares na Central de Programas do Ubuntu</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404081971538510690"><img src="http://lh4.ggpht.com/_LsXcKcMdjAU/Sv8n68qlQ2I/AAAAAAAAELc/izXAkbFckhs/s128/Ubuntu_9.10-Canais%20de%20software.jpg" alt="" /></a><br />
Canais de Software / Repositórios</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404082021073198386"><img src="http://lh3.ggpht.com/_LsXcKcMdjAU/Sv8n91MknTI/AAAAAAAAELg/wnrIcKzKRhA/s128/Ubuntu_9.10-Central%20de%20Programas%20do%20Ubuntu%203.jpg" alt="" /></a><br />
Instalar um Software na Central de Programas do Ubuntu</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404082085097855954"><img src="http://lh5.ggpht.com/_LsXcKcMdjAU/Sv8oBjtPW9I/AAAAAAAAELk/gYKvtUqHZfY/s128/Ubuntu_9.10-Gerenciador%20de%20pacotes%20Synaptic%20.jpg" alt="" /></a><br />
Adicionar um Programa pelo Synaptic</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404088718809690242"><img src="http://lh6.ggpht.com/_LsXcKcMdjAU/Sv8uDsNY8II/AAAAAAAAENI/A8otuDklyCM/s128/Ubuntu_9.10-Ubuntu%20Perfeito.jpg" alt="" /></a><br />
Script Ubuntu Perfeito</div>
<div style="border:1px solid #cccccc;float:left;width:140px;height:140px;display:block;background-color:#eaeaea;text-align:center;margin:0 2px 2px 0;padding:3px;"><a href="http://picasaweb.google.com.br/educarrega/UbuntuInstaladores#5404088767631987282"><img src="http://lh4.ggpht.com/_LsXcKcMdjAU/Sv8uGiFiElI/AAAAAAAAENM/GiByuIv9lz0/s128/Ubuntu_9.10-Firefox%3AAbrir%20ubuntuperfeito-9.10.1rc2_all.deb.jpg" alt="" /></a><br />
Abrir Script Ubuntu Perfeito pelo Firefox e Gdebi</div>
<div style="clear:left;">
<p>.</p>
<p><strong>Leitura recomendada:</strong></p>
<p>Para quem ainda não tem o Ubuntu Tweak instalado, não faz idéia do que está perdendo, acesse e instale: <a href="http://ubuntu-tweak.com/downloads">http://ubuntu-tweak.com/downloads</a></p>
<p><a href="http://andregondim.eti.br/?p=1061">Ubuntu Software Center por André Gondim</a></p>
<p><a href="http://softwarelivre.org/portal/comunidade/teste-mostra-que-novo-ubuntu-esta-simples-para-a-maioria-dos-usuarios">Teste mostra que Ubuntu está simples para a maioria dos usuários</a></p>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu tip: ตรวจสอบว่า software package อันไหนใช้พื้นที่เยอะที่สุด]]></title>
<link>http://akedemo.wordpress.com/2009/11/14/ubuntu-tip-check-most-space-consuming-packages/</link>
<pubDate>Sat, 14 Nov 2009 10:36:50 +0000</pubDate>
<dc:creator>akedemo</dc:creator>
<guid>http://akedemo.wordpress.com/2009/11/14/ubuntu-tip-check-most-space-consuming-packages/</guid>
<description><![CDATA[เปิด Terminal แล้วรันคำสั่งตามนี้ dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\]]></description>
<content:encoded><![CDATA[เปิด Terminal แล้วรันคำสั่งตามนี้ dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\]]></content:encoded>
</item>
<item>
<title><![CDATA[Solucionar el problema al desinstalar el paquete "adobe-flashplugin"]]></title>
<link>http://onoametal.wordpress.com/2009/11/07/solucionar-el-problema-al-desinstalar-el-paquete-adobe-flashplugin/</link>
<pubDate>Sun, 08 Nov 2009 03:11:08 +0000</pubDate>
<dc:creator>onoametal</dc:creator>
<guid>http://onoametal.wordpress.com/2009/11/07/solucionar-el-problema-al-desinstalar-el-paquete-adobe-flashplugin/</guid>
<description><![CDATA[Estos días he tenido problemas al reproducir videos flash en Ubuntu Karmic (los controles no funcion]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Estos días he tenido problemas al reproducir videos flash en Ubuntu Karmic (los controles no funcionan en Chrome), y creí que desinstalar el reproductor de flash y volverlo a instalar solucionaría el problema, pero cuando intenté desinstalarlo me aparecía el siguiente error:</p>
<p><em>E: No se pudo localizar un archivo para el paquete adobe-flashplugin. Esto puede significar que necesita arreglar manualmente este paquete.<br />
Escribiendo información de estado extendido&#8230; Hecho<br />
E: No se pudo localizar un archivo para el paquete adobe-flashplugin. Esto puede significar que necesita arreglar manualmente este paquete.</em></p>
<p>Entonces dije &#8220;bueno, entonces descarguemos el .deb y reinstalemos!&#8221; y creyendo que habia dominado el mundo Linux con esta idea descargué el paquete y cuando intenté instalarlo obtuve este error:</p>
<p><em>sudo dpkg -i install_flash_player_10_linux.deb<br />
Seleccionando el paquete adobe-flashplugin previamente no seleccionado.<br />
(Leyendo la base de datos &#8230; 00%<br />
118156 ficheros y directorios instalados actualmente.)<br />
Preparando para reemplazar adobe-flashplugin 10.0.22.87-1 (usando install_flash_player_10_linux.deb) &#8230;<br />
update-alternatives: error: no alternatives for iceape-flashplugin.<br />
update-alternatives: error: no alternatives for iceape-flashplugin.<br />
dpkg: warning: script de `pre-removal&#8217; antiguo returned error exit status 2<br />
dpkg &#8211; probando el script del nuevo paquete en su lugar&#8230;<br />
update-alternatives: error: no alternatives for iceape-flashplugin.<br />
update-alternatives: error: no alternatives for iceape-flashplugin.<br />
dpkg: error al procesar install_flash_player_10_linux.deb (&#8211;install):<br />
el subproceso script pre-removal nuevo devolvió el código de salida de error 2<br />
postinst called with argument `abort-upgrade&#8217;<br />
dpkg: error al reorganizar:<br />
el subproceso installed post-installation script devolvió el código de salida de error 1<br />
Se encontraron errores al procesar:<br />
install_flash_player_10_linux.deb</em></p>
<p>Ahí me dí cuenta que la cosa no era tan fácil&#8230; buscando en google encontré la solución, aquí va:</p>
<p>Editar el archivo que controla el estado de los paquetes:</p>
<p><strong><em>sudo gedit /var/lib/dpkg/status</em></strong></p>
<p>Luego buscamos <em>Package: adobe-flashplugin</em></p>
<p>Entonces borramos toda la informacion de este paquete (borra hasta donde aparece Package: xxxxxxx de nuevo &#8211; xxxxx es el nombre de algún paquete-)</p>
<p>Luego guardas el archivo y ejecutas</p>
<p><strong><em>sudo apt-get update</em></strong></p>
<p>Y ya podemos desinstalar dicho paquete. Luego me dí cuenta que el problema no era de flash, sino de Chrome <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , pero bueno, por lo menos si tienes un problema con otro paqueteya tienes una idea de qué hacer para borrarlo.</p>
<p>Up the Irons</p>
<h5>Fuente: <a href="http://www.espaciolinux.com/postx42385-0-0.html" target="_blank">EspacioLinux</a></h5>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Finding files in Fink]]></title>
<link>http://finkers.wordpress.com/2009/11/06/finding-files-in-fink/</link>
<pubDate>Fri, 06 Nov 2009 22:51:57 +0000</pubDate>
<dc:creator>monipol</dc:creator>
<guid>http://finkers.wordpress.com/2009/11/06/finding-files-in-fink/</guid>
<description><![CDATA[Let&#8217;s see some methods to find files and their packages in Fink. Using find find is a command ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Let&#8217;s see some methods to find files and their packages in Fink.</p>
<p><strong>Using find</strong></p>
<p>find is a command that is provided by most, if not all, Unix-based systems, including Mac OS X. Let&#8217;s say you want to find a file named zipfile.py in your Fink installation. On my system,</p>
<pre>$ find /sw -name zipfile.py
/sw/lib/python2.5/zipfile.py
/sw/lib/python2.6/zipfile.py</pre>
<p>You can be more specific if you&#8217;re sure that a file resides in a certain directory, e.g.</p>
<pre>$ find /sw/lib -name libgutils\*dylib
/sw/lib/fontforge/libgutils.1.0.3.dylib
/sw/lib/fontforge/libgutils.1.dylib
/sw/lib/fontforge/libgutils.dylib</pre>
<p>In the command above I also used \* to indicate that I was interested in any file whose name starts with libgutils and ends with dylib.</p>
<p>Furthermore, depending on your configuration, you may use locate or mdfind for this purpose.</p>
<p><strong>Using dpkg</strong></p>
<p>Fink uses a fork of Debian&#8217;s dpkg tool for binary package management. Here are some useful dpkg commands.</p>
<p>If you want to find out which package installed a given file, use dpkg -S. For example,</p>
<pre>$ dpkg -S zipfile.py
python26: /sw/lib/python2.6/zipfile.pyc
python26: /sw/lib/python2.6/zipfile.pyo
python26: /sw/lib/python2.6/test/test_zipfile.pyc
python26: /sw/lib/python2.6/test/test_zipfile.pyo
python25: /sw/lib/python2.5/zipfile.py
python25: /sw/lib/python2.5/zipfile.pyc
python25: /sw/lib/python2.5/zipfile.pyo
python25: /sw/lib/python2.5/test/test_zipfile.pyc
python25: /sw/lib/python2.5/test/test_zipfile.pyo
python26: /sw/lib/python2.6/test/test_zipfile.py
python25: /sw/lib/python2.5/test/test_zipfile.py
python26: /sw/lib/python2.6/zipfile.py</pre>
<p>Specifying an absolute path will limit the results:</p>
<pre>$ dpkg -S /sw/lib/python2.6/zipfile.py
python26: /sw/lib/python2.6/zipfile.py</pre>
<p>If you want to list the files installed by a given package (e.g. the di package), use dpkg -L:</p>
<pre>$ dpkg -L di
/.
/sw
/sw/bin
/sw/bin/di
/sw/bin/mi
/sw/share
/sw/share/doc
/sw/share/doc/di
/sw/share/doc/di/MANIFEST
/sw/share/doc/di/README
/sw/share/man
/sw/share/man/man1
/sw/share/man/man1/di.1</pre>
<p>The grep command can be useful to filter the results: to list only the binaries (programs) installed under /sw/bin,</p>
<pre>$ dpkg -L di &#124; grep ^/sw/bin
/sw/bin
/sw/bin/di
/sw/bin/mi</pre>
<p>If you have a binary package (i.e., a .deb file that was either built on your machine or obtained via a binary distribution), you need to use dpkg -c instead:</p>
<pre>$ dpkg -c /sw/fink/debs/bibclean_2.11.4-2_darwin-i386.deb
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/bin/
-rwxr-xr-x root/admin   112564 2009-09-16 09:04 ./sw/bin/bibclean
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/share/
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/share/doc/
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/share/doc/bibclean/
-rw-r--r-- root/admin    26550 2009-09-16 09:04 ./sw/share/doc/bibclean/README
-rw-r--r-- root/admin     2932 2009-09-16 09:04 ./sw/share/doc/bibclean/bibclean.copyright
-rw-r--r-- root/admin    48768 2009-09-16 09:04 ./sw/share/doc/bibclean/bibclean.pdf
-rw-r--r-- root/admin    76512 2009-09-16 09:04 ./sw/share/doc/bibclean/bibclean.ps
-rw-r--r-- root/admin    55226 2009-09-16 09:04 ./sw/share/doc/bibclean/bibclean.txt
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/share/man/
drwxr-xr-x root/admin        0 2009-09-16 09:04 ./sw/share/man/man1/
-rw-r--r-- root/admin    42974 2009-09-16 09:04 ./sw/share/man/man1/bibclean.1</pre>
<p>The directory/folder /sw/fink/debs contains convenient symbolic links to the actual .deb files created when packages were built on your machine. On the other hand, .deb files obtained via binary distributions are located under /sw/var/cache/apt/archives.</pre>
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to delete the remaining configuration files after issuing apt-get remove ?]]></title>
<link>http://linuxindetails.wordpress.com/2009/11/05/how-to-delete-the-remaining-configuration-files-after-issuing-apt-get-remove/</link>
<pubDate>Thu, 05 Nov 2009 00:12:06 +0000</pubDate>
<dc:creator>linuxindetails</dc:creator>
<guid>http://linuxindetails.wordpress.com/2009/11/05/how-to-delete-the-remaining-configuration-files-after-issuing-apt-get-remove/</guid>
<description><![CDATA[After issuing a command like apt-get (remove|purge), some configuration files remain whereas the pac]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>After issuing a command like <b>apt-get (remove&#124;purge)</b>, some configuration files remain whereas the packages to whom they belong have just been removed.<br />The following command will help you keeping up to date all the useful configuration files :</p>
<p><b>dpkg &#8211;purge `dpkg &#8211;get-selections&#124;awk &#8216;/deinstall/ {print $1}&#8217;`</b></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=782882f7-6a1d-8d4d-b2d0-7299f2069547" /></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[apt-cache, apt-file, apt-get, dpkg example]]></title>
<link>http://shellbt.wordpress.com/2009/10/22/apt-cache-apt-file-apt-get-dpkg-example/</link>
<pubDate>Thu, 22 Oct 2009 02:03:28 +0000</pubDate>
<dc:creator>shellbt</dc:creator>
<guid>http://shellbt.wordpress.com/2009/10/22/apt-cache-apt-file-apt-get-dpkg-example/</guid>
<description><![CDATA[apt-cache apt-cache search ^apache2 : 패키지 이름의 일부분이 apache2가 포함되어 있는 패키지를 찾아준다. apt-cache search “Apa]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache</span></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache 		search ^apache2 : </span>패키지 이름의 일부분이 <span style="font-family:은 바탕,serif;">apache2</span>가 		포함되어 있는 패키지를 찾아준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache 		search “Apache HTTP Server” : </span>패키지 설명의 일부분에 		“<span style="font-family:은 바탕,serif;">Apache HTTP Server”</span>이 		포함된 패키지를 찾아준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache 		show apache2 : apache2 </span>패키지에 대한 간단한 정보를 		보여준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache 		showpkg apache2: apache2 </span>패키지에 대한 상세한 정보를 		보여준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-cache 		depends apache2 : </span>설치 전에 <span style="font-family:은 바탕,serif;">apache2 </span>패키지에 의존성이 있는 다른 패키지를 보여준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
</ul>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-file</span></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-file 		search apache2.conf : </span>패키지에 포함된 파일 중 		<span style="font-family:은 바탕,serif;">apache2.conf </span>가 있는 패키지를 		찾아준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-file 		list apache2 : apache2</span>가 설치한 파일 리스트를 		보여준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
</ul>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-get</span></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-get 		purge(remove) apache2 : </span></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">purge 			: </span>패키지의 설정 파일까지 삭제한다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">remove 			: </span>패키지의 설정 파일은 삭제하지 않는다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
</ul>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-get 		-u install apache2 : apache2 </span>패키지를 업그레이드 		한다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">apt-get 		-u upgrade : </span>설치된 모든 패키지를 마지막 버젼으로 		업그레이드 한다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
</ul>
</li>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">dpkg</span></p>
<ul>
<li>
<p style="margin-bottom:0;"><span style="font-family:은 바탕,serif;">dpkg 		-l &#124; grep -i apache : apache</span>가 설치되어 있는지 확인할 		때 사용한다<span style="font-family:은 바탕,serif;">. dpkg -l </span>은 		현재 설치되어 있는 모든 패키지를 보여준다<span style="font-family:은 바탕,serif;">.</span></p>
</li>
<li>
<p style="margin-bottom:0;">
</li>
</ul>
</li>
</ul>
<p style="margin-bottom:0;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Salve uma lista de seus aplicativos instalados]]></title>
<link>http://vertexnet.wordpress.com/2009/10/20/salve-uma-lista-de-seus-aplicativos-instalados/</link>
<pubDate>Tue, 20 Oct 2009 11:00:32 +0000</pubDate>
<dc:creator>alexandregnutzmann</dc:creator>
<guid>http://vertexnet.wordpress.com/2009/10/20/salve-uma-lista-de-seus-aplicativos-instalados/</guid>
<description><![CDATA[Peguei essa dica nesse site, e posto principalmente para futuras consultas minhas, mas deixo como di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Peguei essa dica <a href="http://www.ubuntudicas.com.br/?p=2071" target="_blank">nesse site</a>, e posto principalmente para futuras consultas minhas, mas deixo como dica porque isso é EXTREMAMENTE útil.</p>
<p style="text-align:justify;">Você deve ter um sistema abarrotado de aplicativos e treme só de  <a style="border-bottom:1px dotted;color:#ff0000;text-decoration:underline;" href="http://www.ubuntudicas.com.br/?p=2071&#38;cpage=1#">pensar</a> em ter que formartar o HD pois teria que listar todos eles num papel e assim, re-instalar mais tarde.</p>
<p style="text-align:justify;"><strong>Seus problemas acabaram!!!! Use o TerminatorTabajara para isso!</strong></p>
<p style="text-align:justify;">Falando sério (ou tentando), abra o terminal e digite:</p>
<blockquote><p><code>$ dpkg --get-selections &#62; apps.txt</code></p></blockquote>
<p style="text-align:justify;">Essa ação vai listar todos os aplicativos instalados num arquivo  <a style="border-bottom:1px dotted;color:#ff0000;text-decoration:underline;" href="http://www.ubuntudicas.com.br/?p=2071&#38;cpage=1#">texto</a> chamado apps.txt.<br />
Quando for re-instalar o Ubuntu, lembre-se de guardar num pendrive.</p>
<p style="text-align:justify;">Quando tiver pronto para instalar todas as aplicações:</p>
<blockquote>
<pre><code>    $ dpkg --set-selections &#60; apps.txt
    $ dselect update
    $ apt-get dselect-upgrade show
</code></pre>
</blockquote>
<p style="text-align:justify;">Neste ponto, você terá que instalar e baixar vários arquivos. Seria uma ótima ideia fazer um backup do arquivo /etc/apt/sources.list file, como garantia né?</p>
<p style="text-align:justify;"><em>Aviso: isso deverá comer banda larga! Se tiver banda estreita, deixa fazendo a noite e vá dormir.<br />
Aviso 2: não use essa técnica no caso de um UPGRADE de sistema, pois irá dar conflito de libs. No caso de um upgrade de versões (do 9.04 pro 9.10 por exemplo), apenas use o arquivo TXT como referência e instale tudo na unha, normalmente.</em><br />
Aqui segue um comentário importante:</p>
<p style="text-align:justify;">Pra não comer tanta banda larga, basta fazer backup do conteúdo do diretório /var/cache/apt/archives e restaurar na sua nova instalação antes de executar o apt-get.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Convertendo arquivos .rpm para .deb]]></title>
<link>http://ajvt.wordpress.com/2009/10/15/convertendo-arquivos-rpm-para-deb/</link>
<pubDate>Thu, 15 Oct 2009 23:18:30 +0000</pubDate>
<dc:creator>ajvt</dc:creator>
<guid>http://ajvt.wordpress.com/2009/10/15/convertendo-arquivos-rpm-para-deb/</guid>
<description><![CDATA[As vezes queremos instalar aquele programinha e o danado só existe no formato .rpm, o Debian tem uma]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>As vezes queremos instalar aquele programinha e o danado só existe no formato .rpm, o Debian tem uma solução simples e bastante eficaz para resolver este probleminha&#8230;</p>
<p>Para resolver este probleminha vamos instalar o <strong>alien</strong>. Programa simples! não vem instalado por padrão, mas é  muito simples instalar e mais simples ainda usa-lo.</p>
<p>Para instalar o alien temos que está logado como super-usuário.</p>
<p style="padding-left:30px;">Sintaxe : <strong># apt-get install alien ( somente isso!)</strong></p>
<p>Após concluída a instalação basta localizar o arquivo que vamos converter.</p>
<p>Antes de utilizar o alien mude as permissões do arquivo com o comando <strong>chmod +x &#8216;nome do arquivo completo&#8217;</strong></p>
<p><strong>EX: </strong></p>
<p style="padding-left:30px;"><strong>#chmod +x avg85flx-r287-a2632.i386.rpm </strong>(Lembre-se de digitar o nome do programa corretamente)</p>
<p style="padding-left:30px;">Apos este comando o alien irá gerar um arquivo novo com a terminação .deb.</p>
<p style="padding-left:30px;">Para instalar o aplicativo usaremos o <strong>dpkg</strong> para este fim.</p>
<p style="padding-left:30px;">Sintaxe :</p>
<p style="padding-left:30px;"><strong># dpkg -i avg85flx-r287-a2632.i386.deb </strong> ( o <strong>-i</strong> no comando é de install )</p>
<p style="padding-left:30px;">Se tudo der certo! o <strong>dpkg</strong> instala todas as bibliotecas e até os ícones do programa.</p>
<p style="padding-left:30px;">Para desistalar o pacote usamos o <strong>dpkg -r </strong>( remove )</p>
<p style="padding-left:30px;">
<p>Abraços,</p>
<p>AJVT</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Fix “subprocess pre-removal script returned error exit status 2″ Error]]></title>
<link>http://odzangba.wordpress.com/2009/10/14/how-to-fix-%e2%80%9csubprocess-pre-removal-script-returned-error-exit-status-2%e2%80%b3-error/</link>
<pubDate>Wed, 14 Oct 2009 01:05:05 +0000</pubDate>
<dc:creator>Odzangba</dc:creator>
<guid>http://odzangba.wordpress.com/2009/10/14/how-to-fix-%e2%80%9csubprocess-pre-removal-script-returned-error-exit-status-2%e2%80%b3-error/</guid>
<description><![CDATA[UPDATE: Thanks to Msz Junk for pointing out the typos in the file paths. What I really should have d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>UPDATE: Thanks to <cite>Msz Junk </cite>for pointing out the typos in the file paths.</p>
<p>What I really should have done was to link to <a href="http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/comment-page-1/#comment-834" target="_blank">khattam&#8217;s article</a> because he did a pretty good job of describing the solution to this error but for my own archives, here goes&#8230;. I upgraded my box to Karmic Koala this evening and for some reason, <strong>ubiquity-frontend-kde</strong> flipped and borked the package management system. When I tried to open Synaptic, I got this:</p>
<p style="text-align:center;"><img class="size-full wp-image-321 aligncenter" title="Synaptic Error" src="http://odzangba.wordpress.com/files/2009/10/screenshot-untitled-window.png" alt="Click to view a screenshot of Synaptic's error message" width="500" height="300" /></p>
<p>So I tried</p>
<p><strong>sudo aptitude &#8211;configure -a</strong></p>
<p>and</p>
<p><strong>sudo apt-get install -f</strong></p>
<p>and even tried messing with these:</p>
<p><strong>/var/lib/dpkg/info/dbconfig-common.postinst</strong></p>
<p><strong>/var/lib/dpkg/info/dbconfig-common.postrm</strong></p>
<p>but the system wouldn&#8217;t budge. Then I found <a href="http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/comment-page-1/#comment-834" target="_blank">khattam&#8217;s article</a> and realized I was looking in the wrong files. To solve this error, close all package management software, and back up and edit the <strong>/var/lib/dpkg/status</strong> file with the following commands:</p>
<p><strong>sudo cp /var/lib/dpkg/status /var/log/dpkg/status.old</strong></p>
<p><strong>gksudo gedit /var/lib/dpkg/status</strong></p>
<p>Here comes the dicey part. Search for the package causing all this brouhaha and delete its entry. Please be very careful here and make sure you leave a blank line between the package entry below and above the deleted package entry. Here are screenshots of my file before and after selecting the appropriate package description entry.</p>
<p style="text-align:center;"><span style="font-family:'Georgia ,Times New Roman ,Bitstream Charter ,Times ,serif';font-size:medium;color:#000000;"><a href="http://odzangba.wordpress.com/files/2009/10/screenshot-status-b4.png"><img class="aligncenter size-full wp-image-325" title="Before" src="http://odzangba.wordpress.com/files/2009/10/screenshot-status-b4.png" alt="Before" width="500" height="375" /></a><a href="http://odzangba.wordpress.com/files/2009/10/screenshot-status-after.png"><img class="aligncenter size-full wp-image-326" title="After" src="http://odzangba.wordpress.com/files/2009/10/screenshot-status-after.png" alt="After" width="500" height="375" /></a></span></p>
<p>If you did this right you should be able to open Synaptic and remove the offending package (if you don&#8217;t want it any more) or re-install it.I don&#8217;t understand why the developers couldn&#8217;t cook up a more graceful way for dpkg to show its displeasure.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Post installation script returned error]]></title>
<link>http://ubuntuxpress.wordpress.com/2009/10/07/post-installation-script-returned-error/</link>
<pubDate>Wed, 07 Oct 2009 06:03:42 +0000</pubDate>
<dc:creator>vinutux</dc:creator>
<guid>http://ubuntuxpress.wordpress.com/2009/10/07/post-installation-script-returned-error/</guid>
<description><![CDATA[Ubuntu Add/remove and synaptic very rarely panic your system because of broken dependencies. It happ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ubuntu Add/remove and synaptic very rarely panic your system because of broken dependencies. It happens mostly because of using third party packages or install a package using &#8220;force&#8221; options. Some time you can&#8217;t remove your broken package with synaptic. It shows an Error like</p>
<blockquote>
<pre><span style="color:#99cc00;">
</span></pre>
<p><span style="color:#99cc00;">dpkg return error :post installation script</span></p></blockquote>
<p>or</p>
<blockquote><p><span style="color:#99cc00;">dpkg return error : post installation script return an error </span><em><span style="color:#ff0000;"><br />
</span></em></p></blockquote>
<p>or</p>
<blockquote><p><span style="color:#99cc00;">Subprocess post-installation script returned error</span></p></blockquote>
<p><em><span style="color:#ff0000;"><strong><br />
</strong></span></em></p>
<p>This tweak is very handy in such situations. it is very simple</p>
<p>1. press <strong>Alt + F2</strong> and type &#8220;<strong>gksu nautilus</strong>&#8221; (without quatos)</p>
<p>2. Type password &#8230;it open super user enabled nautilus</p>
<p>3. go to <strong>/var/lib/dpkg/info</strong> in nautilus</p>
<p>4. Delete all files related your broken package (if your broken package is cgmail delete all package related to cgmail)</p>
<p>5. done &#8230;.. open synaptic now and remove broken package</p>
<p><span style="color:#ff0000;">NB : before deleting any system file just backup it.</span></p>
<p><span style="color:#ff0000;"><br />
</span></p>
<p><!-- AddThis Button BEGIN --></p>
<div><a title="Bookmark and Share" href="http://www.addthis.com/bookmark.php?v=250&#38;pub=xa-4ac2661d1f4ecc66" target="_blank"><img class="aligncenter" src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" alt="Bookmark and Share" width="125" height="16" /></a></div>
<p><!-- AddThis Button END --></p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p><span style="color:#ff0000;"><br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[ubuntu] Unlock /var/lib/dpkg/lock when you're locked out]]></title>
<link>http://nixtricks.wordpress.com/2009/10/02/ubuntu-unlock-varlibdpkglock-when-youre-locked-out/</link>
<pubDate>Fri, 02 Oct 2009 17:15:03 +0000</pubDate>
<dc:creator>kousik</dc:creator>
<guid>http://nixtricks.wordpress.com/2009/10/02/ubuntu-unlock-varlibdpkglock-when-youre-locked-out/</guid>
<description><![CDATA[You must have seen this (that&#8217;s why you&#8217;re here after all!) E: Could not get lock /var/l]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You must have seen this (that&#8217;s why you&#8217;re here after all!)</p>
<blockquote><p><code><br />
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)<br />
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?<br />
</code></p></blockquote>
<p>This often happens if you try to install a package (say, &#60;package-name&#62;) while you are installing another. As an example, this may happen when you try to run<br />
<code>$ sudo aptitude install &#60;package-name&#62;</code><br />
in the terminal while you have Synaptic package manager open (or vice versa) or in another terminal you are installing another package . The easiest solution is just to wait for the other installation(s) to finish  and close the package manager if you are done with it. However, if the package manager is crashed in the middle some stuck-up  processes may still be using the lock (/var/lib/dpkg/lock).</p>
<p>In that case, use <code>fuser</code> to find out the runaway process(es); and while you&#8217;re at it, you may use <code>-k</code> flag which will kill the process that is still using <code>/var/lib/dpkg/lock</code>. Then configure (<code>--configure</code>) all the packages (<code>-a</code>) which are yet unpacked and unconfigured, using <code>dpkg</code>:</p>
<blockquote><p><code><br />
$ sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a<br />
</code></p></blockquote>
<p>In the first command (<code>fuser</code>), the <code>-i</code> flag asks for user confirmation, and <code>-v</code> is for verbose mode.</p>
<p>After that, proceed to the usual installation step of the package that you want to install.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Debian/Ubuntu package management summary]]></title>
<link>http://kurttest.wordpress.com/2009/09/21/debianubuntu-package-management-summary/</link>
<pubDate>Mon, 21 Sep 2009 23:13:48 +0000</pubDate>
<dc:creator>kkruecke</dc:creator>
<guid>http://kurttest.wordpress.com/2009/09/21/debianubuntu-package-management-summary/</guid>
<description><![CDATA[A summary Debian and Ubuntu package management commands. Package command Description aptitude search]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A summary Debian and Ubuntu package management commands.</p>
<p><!--more--></p>
<table>
<thead>
<tr>
<th>Package command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>aptitude search  </strong></td>
<td>returns the version that it would install. Prefixing the ~d searches package descriptions.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>aptitude search ~c</strong></td>
<td>searches for unstalled but not purged packages, i.e., config files still exist.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>aptitude search ~b</strong></td>
<td>searches for broken packages.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-cache search  </strong></td>
<td>will show all versions of the package available.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-cache show   </strong></td>
<td>details about the package that you want (or don&#8217;t want) to install, together with the full description of the package.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-cache showpkg  </strong></td>
<td>general information. It will also show reverse dependencies.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-cache depends  </strong></td>
<td>will show what other packages  this  depends on, i.e., requires in order to function.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-cache rdepends </strong></td>
<td>will show the reverse dependencies. Pkgs that depend on this pkg.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-get/aptitude clean </strong></td>
<td>Removes all package files. Thus, if you need to reinstall a package, APT must retrieve it again.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-get/aptitude autoclean</strong></td>
<td>Only gets rid of out dated package files (.debs) from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg -S </strong></td>
<td>search for packages owning .</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg -l </strong></td>
<td>list package and status.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg -L </strong></td>
<td>list all files owned by .</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-get -f install</strong></td>
<td>sort of cleans up a failed install.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg -i package.deb<br />apt-get install -f</strong></td>
<td style="vertical-align:top;">These two commands install a .deb</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg -x some_deb.deb tmp</strong></td>
<td>Unpack a .deb to directory tmp.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg –unpack some_deb.deb</strong></td>
<td>Unpacks to the target directories</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-show-versions</strong></td>
<td>Shows distribution and versions of all packages. apt-show-version must first be installed.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-show-versions –p  </strong></td>
<td>Shows distribution and version of .</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>apt-show-versions </strong></td>
<td>Shows distribution and version of .</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>dpkg-reconfigure   </strong></td>
<td>Reconfigure a package.</strong></td>
</tr>
<tr>
<td style="font-family:Courier New;font-size:100%;"><strong>deborphan</strong></td>
<td>Finds orphaned packages. You must install deborphan first.</strong></td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[cli] Install .deb packages in the commandline ]]></title>
<link>http://nixtricks.wordpress.com/2009/09/16/cli-install-deb-packages-in-the-commandline/</link>
<pubDate>Wed, 16 Sep 2009 22:13:10 +0000</pubDate>
<dc:creator>kousik</dc:creator>
<guid>http://nixtricks.wordpress.com/2009/09/16/cli-install-deb-packages-in-the-commandline/</guid>
<description><![CDATA[You may use package installer like gdebi to install .deb packages. But would it feel as good as it d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You may use package installer like <code>gdebi</code> to install <code>.deb</code> packages. But would it feel as good as it does when you do it in the commandline?</p>
<p><code>$ sudo dpkg -i name-of-your-package.deb </code></p>
<p><strong>Reference:</strong> <a href="http://ubuntuforums.org/showthread.php?t=431952">here</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Instalação de programas - parte 1]]></title>
<link>http://gnulinuxbr.wordpress.com/2009/09/02/instalacao-de-programas-parte-1/</link>
<pubDate>Wed, 02 Sep 2009 14:50:00 +0000</pubDate>
<dc:creator>vandocouto</dc:creator>
<guid>http://gnulinuxbr.wordpress.com/2009/09/02/instalacao-de-programas-parte-1/</guid>
<description><![CDATA[Comandos intermediários do GNU/Linux Instalação de programas Pacotes Debian &#8211; DPKG (man 1) O d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="font-weight:bold;">Comandos intermediários do GNU/Linux</span></p>
<p>Instalação de programas</p>
<p><span style="font-weight:bold;color:#ff0000;">Pacotes Debian &#8211; DPKG (man 1)</span></p>
<p>O dpkg é um programa que é a base do sistema de gerenciamento de pacotes para distribuição GNU/Linux baseadas em Debian. O dpkg é uma ferramenta de linguagem de baixo nível. Front ends de alto nível são exigidos para pacotes em lugares remotos ou ajudar no solucionamento de conflitos nas depêndencias dos pacotes. Para esta finalidade,  o Debian fornece o <span style="font-weight:bold;">aptitude</span>.</p>
<div style="text-align:center;"><a href="http://gnulinuxbr.wordpress.com/files/2009/09/1-1.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/1-1.png?w=300" border="0" alt="" /></a></div>
<p><span style="font-weight:bold;"><span style="font-weight:bold;"><br />
</span></span>Com o cdrom montado irei instalar alguns pacotes.</p>
<div style="text-align:center;"><a>1</a><br />
<a></a></div>
<div style="text-align:center;"><a href="http://gnulinuxbr.wordpress.com/files/2009/09/11.png"><strong><img src="http://gnulinuxbr.wordpress.com/files/2009/09/11.png?w=300" border="0" alt="" /></strong></a><strong> </strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">
<div style="text-align:justify;">Após o cdrom montado, irei procurar pelo diretório sudo e instalar o programa sudo , através do dpkg.<br />
Note as mensagens de ajuda desse comando</div>
<p><strong><span style="font-weight:bold;">dpgk &#8211;help</span><br />
</strong></p>
<div style="text-align:center;">2<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/21.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/21.png?w=291" border="0" alt="" /></a><br />
</strong>3<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/31.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/31.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Para verificar a mensagem do pacote do sudo</div>
</div>
<p><span style="font-weight:bold;"><strong>dpkg -I </strong></span><strong><br />
</strong></p>
<div style="text-align:center;">4<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/41.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/41.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Verificando se um pacote está instalado no sistema.<strong><br />
<span style="font-weight:bold;">dpkg -l</span><br />
</strong></p>
<div style="text-align:center;">5<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/51.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/51.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
</div>
<p>Verificando o caminho do executável<strong><br />
<span style="font-weight:bold;">which</span><br />
</strong></p>
<div style="text-align:center;">6<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/61.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/61.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Determinando qual pacote o comando ls e sudo pertence.<strong><br />
</strong></div>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-weight:bold;"><strong>dpkg -S /bin/ls</strong></span><strong> <span style="font-weight:bold;">dpkg -S /usr/bin/sudo</span><br />
</strong></p>
<div style="text-align:center;">7<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/71.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/71.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Verificando o status de um pacote instalado<strong><br />
<span style="font-weight:bold;">dpkg &#8211; s </span></strong></p>
<div style="text-align:center;">8<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/81.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/81.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Instalando um  software<strong><br />
<span style="font-weight:bold;">dpkg -i</span><br />
</strong></p>
<div style="text-align:center;">9<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/9.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/9.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Verificando se um software foi instalado com sucesso.<strong><br />
<span style="font-weight:bold;">dpkg -l </span><br />
</strong></p>
<div style="text-align:center;">10<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/10.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/10.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
</div>
</div>
<div style="text-align:left;">Determinando onde estão instalados todos os arquivos de um aplicativo.<strong><br />
<span style="font-weight:bold;">dpkg -L</span><br />
</strong></p>
<div style="text-align:center;">11<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/111.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/111.png?w=300" border="0" alt="" /></a></strong></p>
<p><strong> </strong></p>
<div style="text-align:left;">Determinando onde serão instalados os arquivos de um programa<strong><br />
<span style="font-weight:bold;">dpkg -c</span><br />
</strong></p>
<div style="text-align:center;">12<strong><br />
</strong><a href="http://gnulinuxbr.wordpress.com/files/2009/09/12.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/12.png?w=300" border="0" alt="" /></a></p>
<div style="text-align:left;">Removendo um programa<strong><br />
<span style="font-weight:bold;">dpkg -r </span><br />
</strong></p>
<div style="text-align:center;">13<strong><br />
</strong></div>
<div style="text-align:center;"><strong><a href="http://gnulinuxbr.wordpress.com/files/2009/09/13.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/13.png?w=300" border="0" alt="" /></a><br />
</strong></p>
<div style="text-align:left;">Apagando os arquivos de configuração de um programa<strong><br />
<span style="font-weight:bold;">dpkg -P</span><br />
</strong></p>
<div style="text-align:center;">14<strong><br />
<a href="http://gnulinuxbr.wordpress.com/files/2009/09/14.png"><img src="http://gnulinuxbr.wordpress.com/files/2009/09/14.png?w=300" border="0" alt="" /></a></strong><a href="http://gnulinuxbr.wordpress.com/files/2009/09/14.png"><span id="formatbar_Buttons" style="display:block;"><span id="formatbar_Bold" class="down" style="display:block;" title="Negrito"><img class="gl_bold" src="img/blank.gif" border="0" alt="Negrito" /></span></span></a><strong> </strong></p>
<p><strong> </strong></p>
</div>
<p><strong><br />
</strong></p>
</div>
</div>
</div>
</div>
<p><strong><br />
</strong></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p><strong><br />
</strong></p>
</div>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[DPKG]]></title>
<link>http://loldebian.wordpress.com/2009/08/13/dpkg/</link>
<pubDate>Thu, 13 Aug 2009 21:15:02 +0000</pubDate>
<dc:creator>lamby</dc:creator>
<guid>http://loldebian.wordpress.com/2009/08/13/dpkg/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://www.dpkg.org/dpkg/"><img class="size-full wp-image-119" title="dpkg" src="http://loldebian.wordpress.com/files/2009/08/dpkg_motiv.jpg" alt="dpkg" width="500" height="400" /></a></dt>
</dl>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[¿Cómo instalar programas en Debian?]]></title>
<link>http://errordecapa8.wordpress.com/2009/08/10/%c2%bfcomo-instalar-programas-en-debian/</link>
<pubDate>Mon, 10 Aug 2009 16:25:16 +0000</pubDate>
<dc:creator>ArkangelX</dc:creator>
<guid>http://errordecapa8.wordpress.com/2009/08/10/%c2%bfcomo-instalar-programas-en-debian/</guid>
<description><![CDATA[Como en muchos blog explican sobre como instalar programas en Gnu/Linux, he decidido recopilar tutor]]></description>
<content:encoded><![CDATA[Como en muchos blog explican sobre como instalar programas en Gnu/Linux, he decidido recopilar tutor]]></content:encoded>
</item>
<item>
<title><![CDATA[Intalación de la ultima versión de OpenOffice.]]></title>
<link>http://jklinux.wordpress.com/2009/08/05/intalacion-de-la-ultima-version-de-openoffice-2/</link>
<pubDate>Thu, 06 Aug 2009 02:55:42 +0000</pubDate>
<dc:creator>jklinux</dc:creator>
<guid>http://jklinux.wordpress.com/2009/08/05/intalacion-de-la-ultima-version-de-openoffice-2/</guid>
<description><![CDATA[Aunque en el Ubuntu 9.04 viene incluida la versión 3.0 de OpenOffice no nos vendría nada mal tener i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:left;"><img class="size-thumbnail wp-image-84 aligncenter" title="openoffice" src="http://jklinux.wordpress.com/files/2009/08/openoffice.jpg?w=150" alt="openoffice" width="150" height="93" /> Aunque en el Ubuntu 9.04 viene incluida la versión 3.0 de OpenOffice no nos vendría nada mal tener instalada la última versión de esta poderosa suite ofimática, los pasos son simples:</p>
<p style="text-align:left;">Lo primero que debemos hacer es desinstalar la versión que tengamos, para esto vamos al gestor de paquetes synaptic y marcamos para eliminar todos los paquetes de OpenOffice.</p>
<p style="text-align:left;">Después de esto podemos descargar los paquetes de la nueva versión que se encuentran en este link, después de tenerlos descomprimidos, ahora abrimos la consola y entramos en la carpeta que acabamos de descomprimir y tecleamos:</p>
<p style="text-align:left;padding-left:30px;"><strong>sudo dpkg -i *.* </strong></p>
<p style="text-align:left;">Con esto lo que hacemos es instalar todos los paquetes que están dentro de la carpeta, cerramos la consola, luego vamos a una carpeta que tiene dentro lo que descargamos y ejecutamos el paquete que está dentro haciendo doble clic en el, lo instalamos para que tengamos la integración en el escritorio de todas las herramientas que nos brinda esta suite.  Bueno les recomiendo esta versión, tiene compatibilidad total con Office 2007 y las versiones anteriores, además de muchas mejoras.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Comandos básicos para nuestra Terminal]]></title>
<link>http://elsoftwarelibre.wordpress.com/2009/08/03/comandos-basicos-para-nuestra-terminal/</link>
<pubDate>Mon, 03 Aug 2009 11:34:39 +0000</pubDate>
<dc:creator>Soft-Libre</dc:creator>
<guid>http://elsoftwarelibre.wordpress.com/2009/08/03/comandos-basicos-para-nuestra-terminal/</guid>
<description><![CDATA[Desde hace tiempo que estaba con ganas de tratar de poner en una entrada aquellos comandos básicos q]]></description>
<content:encoded><![CDATA[Desde hace tiempo que estaba con ganas de tratar de poner en una entrada aquellos comandos básicos q]]></content:encoded>
</item>
<item>
<title><![CDATA[Purge packages that are deinstalled]]></title>
<link>http://linuxcentral.wordpress.com/2009/07/25/purge-packages-that-are-deinstalled/</link>
<pubDate>Sat, 25 Jul 2009 12:13:47 +0000</pubDate>
<dc:creator>/n/</dc:creator>
<guid>http://linuxcentral.wordpress.com/2009/07/25/purge-packages-that-are-deinstalled/</guid>
<description><![CDATA[Before starting on the command, an explanation of why this is generally useful. When a package is de]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Before starting on the command, an explanation of why this is generally useful. When a package is deinstalled (because it&#8217;s not required or because a newer version of the package is installed), the package is removed from the system, but the configuration files remain. <em>To remove the config files too, you need to purge the package.</em></p>
<p style="text-align:justify;"><strong>If you have manually configured a package earlier, and would like to retain the configuration files for when you&#8217;ll install the package in future, this is not a command you should run. </strong></p>
<p style="text-align:justify;"><strong></strong>In all other cases,  you should purge the packages in the interests of good housekeeping. If that isn&#8217;t enough motivation, it also means that future installs of the package get a blank state, and there are no potentially messy interactions of earlier version config files with newer packages.</p>
<p style="text-align:justify;">With that out of the way, lets get down to bass tacks:</p>
<pre class="brush: bash;">
dpkg --get-selections &amp;#124; grep &quot;[[:space:]]deinstall$&quot; &amp;#124; awk '{print $1}' &amp;#124; sudo xargs dpkg -P
</pre>
<p style="text-align:justify;">The first command in the pipeline returns the list of packages in the system, the second filters out the deinstalled packages, the third filters out the package names from the previous output, and the fourth purges each package. Consequently, only the fourth command requires sudo permissions.</p>
<p style="text-align:justify;">There&#8217;s a downside to running this command &#8211; you cannot stop the command by hitting <em>&#60;Ctrl-C&#62;</em> on the terminal as the xargs command spawns an individual process for each <span style="color:#000080;"><em><strong>dpkg -P</strong></em></span></p>
<p style="text-align:justify;">On linux systems, there are typically many ways to achieve the same result, so here&#8217;s another way to purge deinstalled packages:</p>
<pre class="brush: bash;">
sudo aptitude purge $(aptitude search ~c -F &quot;%p&quot;)
</pre>
<p style="text-align:justify;">So you know what&#8217;s happening, here&#8217;s a brief explanation of what the command does. <strong><em><span style="color:#000080;">aptitude search -c</span></em></strong> returns the list of deinstalled packages. The <span style="color:#000080;"><strong>-F &#8220;%p&#8221;</strong></span> argument ensures only the package names are printed. The outer aptitude purge command operates on the returned list of packages from the inner command.</p>
<p style="text-align:justify;">An example of why you&#8217;d run this is to purge old linux kernels.</p>
<p style="text-align:justify;"><strong>Before running such commands, it is imperative you know what you are running, and what the results are, so I&#8217;d suggest you run it in smaller chunks and examine the results before running the actual command.</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Configurando a variável de ambiente para localidade]]></title>
<link>http://ivanix.wordpress.com/2009/07/24/configurando-a-variavel-de-ambiente-para-localidade/</link>
<pubDate>Sat, 25 Jul 2009 02:15:38 +0000</pubDate>
<dc:creator>Nix</dc:creator>
<guid>http://ivanix.wordpress.com/2009/07/24/configurando-a-variavel-de-ambiente-para-localidade/</guid>
<description><![CDATA[Nesse post, vou falar sobre a variável de ambiente da localidade, que é a responsável pelo idioma us]]></description>
<content:encoded><![CDATA[Nesse post, vou falar sobre a variável de ambiente da localidade, que é a responsável pelo idioma us]]></content:encoded>
</item>
<item>
<title><![CDATA[Search, generate or restore from list of installed packages ]]></title>
<link>http://linuxcentral.wordpress.com/2009/07/15/generate-list-of-installed-packages/</link>
<pubDate>Wed, 15 Jul 2009 12:49:19 +0000</pubDate>
<dc:creator>/n/</dc:creator>
<guid>http://linuxcentral.wordpress.com/2009/07/15/generate-list-of-installed-packages/</guid>
<description><![CDATA[Listing packages To get the list of packages that start with pkg_name_begin: dpkg --get-selections p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h3 style="text-align:justify;">Listing packages</h3>
<p style="text-align:justify;">To get the list of packages that start with <em>pkg_name_begin</em>:</p>
<p style="text-align:justify;">
<pre class="brush: bash;">

dpkg --get-selections pkg_name_begin*
</pre>
<p style="text-align:justify;">For a more generalized search, e.g where <em>pkg_name_partial</em> is text within the package name:</p>
<p style="text-align:justify;">
<pre class="brush: bash;">

dpkg --get-selections &amp;#124; grep &quot;[[:space:]]install$&quot; &amp;#124; grep -i pkg_name_partial
</pre>
<address> </address>
<p style="text-align:justify;">To get a list of all installed packages on your debian system:</p>
<p style="text-align:justify;">
<pre class="brush: bash;">

dpkg --get-selections &amp;#124; grep &quot;[[:space:]]install$&quot; &amp;#124; \awk '{print $1}'
</pre>
<p style="text-align:justify;">It makes terrific sense to periodically generate and store this list for any eventually where you need to reinstall the system. You should even consider turning this into a script, and place into a weekly or monthly cron job that mails you the list.</p>
<pre class="brush: bash;">

dpkg --get-selections &amp;#124; grep &quot;[[:space:]]install$&quot; &amp;#124; awk '{print $1}' &amp;#124; tee installed_pkgs &amp;#124; mailx -s &quot;List of installed packages&quot; you@mailhost.com
</pre>
<h3 style="text-align:justify;">Reinstalling packages</h3>
<p style="text-align:justify;">To install the packages from the list created earlier on top of a fresh Ubuntu install, follow these steps:</p>
<p style="text-align:justify;">
<pre class="brush: bash;">

sudo apt-get upgrade

sudo apt-get dist-upgrade
dpkg --set-selections &lt; installed_pkgs

sudo apt-get -u dselect-upgrade
</pre>
<p><span style="color:#000000;"><strong>Formatting woes:</strong></span> The third statement should read <strong>dpkg &#8211;set-selections &#60; installed_pkgs</strong>, but wordpress won&#8217;t let it be.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Check which package a file came from]]></title>
<link>http://linuxcentral.wordpress.com/2009/07/15/check-which-package-a-file-came-from/</link>
<pubDate>Wed, 15 Jul 2009 10:09:41 +0000</pubDate>
<dc:creator>/n/</dc:creator>
<guid>http://linuxcentral.wordpress.com/2009/07/15/check-which-package-a-file-came-from/</guid>
<description><![CDATA[dpkg -S filename This command  returns the package(s) that install the given file. Useful when you w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><pre class="brush: bash;">

dpkg -S filename
</pre>
<p style="text-align:justify;">This command  returns the package(s) that install the given file. Useful when you want to retrieve the original file and/or find what it&#8217;s used for.</p>
<p style="text-align:justify;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Rebuild deb package from installed files]]></title>
<link>http://playingwithcli.wordpress.com/2009/07/14/rebuild-deb-package-from-installed-files/</link>
<pubDate>Tue, 14 Jul 2009 03:59:17 +0000</pubDate>
<dc:creator>$ŕêëñ@ďĥ</dc:creator>
<guid>http://playingwithcli.wordpress.com/2009/07/14/rebuild-deb-package-from-installed-files/</guid>
<description><![CDATA[To rebuild Debian package (.deb) from an installation apt-get install dpkg-repack dpkg-repack &lt;pa]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>To rebuild Debian package (.deb) from an installation</p>
<p>apt-get install dpkg-repack</p>
<p>dpkg-repack &#60;package_name&#62;</p>
<p>Eg:</p>
<p>dpkg-repack &#60;apache&#62;</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
