martes, 10 de diciembre de 2013

Decompress .deb packages content

You probably had noticed that these are more personal notes tnat a real blog;

So in the same sense this is how to uncompress debian packages and see its content.

To decompress a deb file an 'ar' command is used:

# ar vx zncrypt_3.3.0-720ubuntu1~precise_amd64.deb
x - debian-binary
x - control.tar.gz
x - data.tar.gz
root@kozlex:/home/agonzalez/bugs/git/master_upstar/zncrypt/remove# ls
control.tar.gz  debian-binary                               zncrypt-kernel-module_3.3.0-720ubuntu1~precise_all.deb
data.tar.gz     zncrypt_3.3.0-720ubuntu1~precise_amd64.deb

Now this there are normal tar files, uncompress with tar:

# tar -xvf control.tar.gz

# ls
conffiles       data.tar.gz    postinst
control         debian-binary  zncrypt_3.3.0-720ubuntu1~precise_amd64.deb
control.tar.gz  md5sums        zncrypt-kernel-module_3.3.0-720ubuntu1~precise_all.deb

P.S. Some flags

No hay comentarios:

Publicar un comentario