Quando um pacote é instalado, seu arquivo é armazenado localmente em /var/cache/apt/archives/
.
Para examinar o conteúdo de um arquivo deb
armazenado lá, use o seguinte comando:
dpkg -c /var/cache/apt/archives/package-name.deb
% bl0ck_qu0te%
Por exemplo, no meu caso, isso é o que o comando gera para o pacote toilet
:
# dpkg -c /var/cache/apt/archives/toilet_0.2-1_i386.deb
drwxr-xr-x root/root 0 2010-05-12 18:21 ./
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/bin/
-rwxr-xr-x root/root 14096 2010-05-12 18:21 ./usr/bin/toilet
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/share/
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/share/man/
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/share/man/man1/
-rw-r--r-- root/root 1559 2010-05-12 18:21 ./usr/share/man/man1/toilet.1.gz
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/share/doc/
drwxr-xr-x root/root 0 2010-05-12 18:21 ./usr/share/doc/toilet/
-rw-r--r-- root/root 164 2010-02-08 20:03 ./usr/share/doc/toilet/README
-rw-r--r-- root/root 174 2010-02-08 20:03 ./usr/share/doc/toilet/TODO
-rw-r--r-- root/root 708 2006-11-15 22:11 ./usr/share/doc/toilet/copyright
-rw-r--r-- root/root 9601 2010-02-08 20:22 ./usr/share/doc/toilet/changelog.gz
-rw-r--r-- root/root 346 2010-02-08 19:50 ./usr/share/doc/toilet/NEWS.gz
-rw-r--r-- root/root 428 2010-02-08 20:34 ./usr/share/doc/toilet/changelog.Debian.gz
lrwxrwxrwx root/root 0 2010-05-12 18:21 ./usr/bin/figlet-toilet -> toilet
lrwxrwxrwx root/root 0 2010-05-12 18:21 ./usr/share/man/man1/figlet-toilet.1.gz -> toilet.1.gz
Se você deseja excluir diretórios da saída, basta anexar | grep -v "^d"
ao final do comando.
# dpkg -c /var/cache/apt/archives/toilet_0.2-1_i386.deb | grep -v "^d"
-rwxr-xr-x root/root 14096 2010-05-12 18:21 ./usr/bin/toilet
-rw-r--r-- root/root 1559 2010-05-12 18:21 ./usr/share/man/man1/toilet.1.gz
-rw-r--r-- root/root 164 2010-02-08 20:03 ./usr/share/doc/toilet/README
-rw-r--r-- root/root 174 2010-02-08 20:03 ./usr/share/doc/toilet/TODO
-rw-r--r-- root/root 708 2006-11-15 22:11 ./usr/share/doc/toilet/copyright
-rw-r--r-- root/root 9601 2010-02-08 20:22 ./usr/share/doc/toilet/changelog.gz
-rw-r--r-- root/root 346 2010-02-08 19:50 ./usr/share/doc/toilet/NEWS.gz
-rw-r--r-- root/root 428 2010-02-08 20:34 ./usr/share/doc/toilet/changelog.Debian.gz
lrwxrwxrwx root/root 0 2010-05-12 18:21 ./usr/bin/figlet-toilet -> toilet
lrwxrwxrwx root/root 0 2010-05-12 18:21 ./usr/share/man/man1/figlet-toilet.1.gz -> toilet.1.gz