deb 文件组成
主要包括tar 文件,con 文件
T ar 文 件
dpkg-deb --fsys-tarfile "$1"/$i > extra/$T3.bin.tar
tar -tvf extra/$T3.bin.tar > extra/$T3.bin.list
使用 --fsys-tarfile 可以 解出对应的tar 文 件。内部包括了对应包编译出的文件系统。可以直接解压到ROOTFS.
drwxr-xr-x root/root 0 2006-10-28 10:06 ./usr/games/
drwxr-xr-x root/root 0 2006-10-28 10:06 ./usr/include/
drwxr-xr-x root/root 0 2006-10-28 10:06 ./usr/lib/
drwxr-xr-x root/root 0 2006-10-28 10:06 ./usr/sbin/
drwxrwsr-x root/src 0 2006-10-28 10:06 ./usr/src/
drwxr-xr-x root/root 0 2006-10-28 10:06 ./bin/
drwxr-xr-x root/root 0 2006-10-28 10:06 ./boot/
Con 文件
rm -rf acon
dpkg-deb -e "$1"/$i acon
tar -cf - -C acon ./ > extra/$T3.con.tar
tar -tvf extra/$T3.con.tar > extra/$T3.con.list
使用 –e 命令解出对应的Con 文 件. 内 部主要包括配置脚本。不允许直接解压到ROOTFS 。是有效的参考资源。
-rw-r--r-- root/root 61 2006-10-28 10:06 ./conffiles
-rwxr-xr-x root/root 538 2006-10-28 10:06 ./preinst
-rwxr-xr-x root/root 4171 2006-10-28 10:06 ./postinst
-rw-r--r-- root/root 598 2006-10-28 10:06 ./control
方法二:
ar xv kernel.deb