Friday, May 3, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4845  / 2 Years ago, sun, october 9, 2022, 7:59:45

How can I extract the deb files of ubuntu 12.10 from the official iso, I am trying to cut the download time, only some packages are in /pool/main



The rest seem to be in a virtual fs in /casper/.



How can I extract the deb files?


More From » installation

 Answers
4

Most of the debs Ubuntu uses are installed into a chroot before generating the ISO image, so you can't just get them back. If you unsquash the filesystem, you'll see it looks like just a root filesystem. For example, this is a truncated view of ls:



drwxr-xr-x   2 root root  4096 Oct 12 16:59 bin
drwxr-xr-x 3 root root 4096 Oct 12 16:59 boot
drwxr-xr-x 4 root root 4096 Oct 12 16:56 dev
drwxr-xr-x 134 root root 12288 Oct 12 16:59 etc
drwxr-xr-x 2 root root 4096 Oct 9 08:59 home


...



If you want to mess with the chroot, you can do so as follows:




  1. Mount the ISO



    sudo mount -o loop quantal-desktop-i386.iso tmpiso

  2. Copy the squashfs out



    cp tmpiso/q/casper/filesystem.squashfs /tmp

  3. Unsquash the filesystem



    sudo unsquashfs filesystem.squashfs

  4. This will unpack the filesystem into squashfs-root.


  5. Make your changes.

  6. Recompress with squashfs.

  7. Use ISO master to replace the filesystem.squashfs with the one you modified.

  8. Rebuild the ISO with ISO master.


[#34015] Sunday, October 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oreera

Total Points: 472
Total Questions: 121
Total Answers: 116

Location: Mayotte
Member since Thu, Dec 17, 2020
3 Years ago
;