On Mi, 02 iun 10, 15:24:23, H.S. wrote: > or, if you want to list the contents of a deb file (instead of an > installed package), the following will give the same info (might need to > be root or use sudo for apt's cache files): No, root is not needed, since the debs in apt's cacher are world readable. > #> sudo dpkg -c /path/to/foo.deb | grep -v 'lib.modules' From within vim: :r !dpkg -c /var/cache/apt/archives/linux-image-2.6.32-trunk-amd64_2.6.32-1_amd64.deb | grep -v 'lib.modules' drwxr-xr-x root/root 0 2009-12-06 20:13 ./ drwxr-xr-x root/root 0 2009-12-06 20:13 ./boot/ -rw-r--r-- root/root 1608485 2009-12-06 20:13 ./boot/System.map-2.6.32-trunk-amd64 -rw-r--r-- root/root 2331488 2009-12-06 20:13 ./boot/vmlinuz-2.6.32-trunk-amd64 -rw-r--r-- root/root 105244 2009-12-06 20:13 ./boot/config-2.6.32-trunk-amd64 drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/ drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/share/ drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/share/doc/ drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/share/doc/linux-image-2.6.32-trunk-amd64/ -rw-r--r-- root/root 114736 2009-12-06 19:18 ./usr/share/doc/linux-image-2.6.32-trunk-amd64/changelog.Debian.gz -rw-r--r-- root/root 2167 2009-07-18 00:10 ./usr/share/doc/linux-image-2.6.32-trunk-amd64/copyright drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/share/bug/ drwxr-xr-x root/root 0 2009-12-06 20:13 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/ -rw-r--r-- root/root 111 2008-01-25 10:51 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-1cmdline -rw-r--r-- root/root 184 2009-10-04 21:55 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/control -rw-r--r-- root/root 29 2009-12-06 20:13 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/info -rw-r--r-- root/root 363 2009-10-04 19:55 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/presubj -rwxr-xr-x root/root 451 2009-10-04 22:19 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/script -rw-r--r-- root/root 1369 2009-11-17 03:18 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-1tainted -rw-r--r-- root/root 162 2008-05-20 23:30 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-sound -rw-r--r-- root/root 293 2009-10-04 23:01 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-usb -rw-r--r-- root/root 106 2007-05-21 23:54 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-0version -rw-r--r-- root/root 1180 2009-11-21 20:22 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-network -rw-r--r-- root/root 100 2007-03-11 15:25 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-modules -rw-r--r-- root/root 308 2009-10-04 19:55 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-dmesg -rw-r--r-- root/root 1173 2009-10-04 22:07 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-model -rw-r--r-- root/root 300 2009-10-04 22:07 ./usr/share/bug/linux-image-2.6.32-trunk-amd64/include-pci drwxr-xr-x root/root 0 2009-12-06 20:13 ./lib/ Hope this helps ;) Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
Attachment:
signature.asc
Description: Digital signature