我有一个包含旧版 CD-ROM 媒体和软件的 ISO 映像库。我不确定这是否是存储旧版媒体和软件的最佳方式...如果您有其他解决方案,请告诉我们。但我的问题是,是否有一种方法可以在这些 ISO 之一中浏览某个文件,而不必挂载每个文件?- 类似于 tar -t,它列出了 tar 包的内容,而无需解压整个 tar 包。
答案1
p7zip 中的程序7z
能够列出 CD 映像的内容:
$ 7z l ubuntu-14.04-server-amd64.iso
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
Listing archive: ubuntu-14.04-server-amd64.iso
--
Path = ubuntu-14.04-server-amd64.iso
Type = Iso
Created = 2014-04-16 23:12:51
Modified = 2014-04-16 23:12:51
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2014-04-16 23:11:55 D.... .disk
2014-04-16 23:11:55 ..... 0 0 .disk/base_installable
2014-04-16 23:11:55 ..... 15 15 .disk/cd_type
2014-04-16 23:11:55 ..... 66 66 .disk/info
2014-04-16 23:12:44 D.... EFI
2014-04-16 23:12:44 D.... EFI/BOOT
2014-04-16 23:12:44 ..... 1355736 1355736 EFI/BOOT/BOOTx64.EFI
2014-04-16 23:12:44 ..... 993144 993144 EFI/BOOT/grubx64.efi
2014-04-16 23:11:55 ..... 236 236 README.diskdefines
2014-04-16 23:12:44 D.... boot
2014-04-16 23:12:44 D.... boot/grub
...
2014-03-23 17:09:32 ..... 79582 79582 pool/main/z/zope.interface/python-zope.interface_4.0.5-1ubuntu4_amd64.deb
2014-04-16 23:11:55 D.... preseed
2013-10-18 16:56:44 ..... 433 433 preseed/cli.seed
2013-10-18 16:56:44 ..... 659 659 preseed/cloud.seed
2013-10-18 16:56:44 ..... 901 901 preseed/ubuntu-server-minimal.seed
2013-10-18 16:56:44 ..... 931 931 preseed/ubuntu-server-minimalvm.seed
2013-10-18 16:56:44 ..... 977 977 preseed/ubuntu-server.seed
..... 2048 2048 [BOOT]/Bootable_NoEmulation.img
------------------- ----- ------------ ------------ ------------------------
590842085 590842085 1932 files, 882 folders
另一个列出内容的程序isoinfo
来自 cdrkit:
$ isoinfo -l -i ubuntu-14.04-server-amd64.iso
Directory listing of /
d--------- 0 0 0 2048 Apr 16 2014 [ 20 02] .
d--------- 0 0 0 2048 Apr 16 2014 [ 20 02] ..
d--------- 0 0 0 2048 Apr 16 2014 [ 22 02] .DISK
d--------- 0 0 0 2048 Apr 16 2014 [ 23 02] BOOT
d--------- 0 0 0 2048 Apr 16 2014 [ 41 02] DISTS
d--------- 0 0 0 2048 Apr 16 2014 [ 55 02] DOC
d--------- 0 0 0 2048 Apr 16 2014 [ 64 02] EFI
d--------- 0 0 0 2048 Apr 16 2014 [ 66 02] INSTALL
d--------- 0 0 0 18432 Apr 16 2014 [ 73 02] ISOLINUX
---------- 0 0 0 162102 Apr 16 2014 [ 2349 00] MD5SUM.TXT;1
d--------- 0 0 0 2048 Apr 16 2014 [ 82 02] PICS
d--------- 0 0 0 2048 Apr 16 2014 [ 83 02] POOL
d--------- 0 0 0 2048 Apr 16 2014 [ 976 02] PRESEED
---------- 0 0 0 236 Apr 16 2014 [ 1923 00] README.DISKDEFINES;1
---------- 0 0 0 0 Apr 16 2014 [ 1920 00] UBUNTU.;1
Directory listing of /.DISK/
d--------- 0 0 0 2048 Apr 16 2014 [ 22 02] .
...
---------- 0 0 0 152976 Apr 15 2014 [ 8789 00] VESAMENU.C32;1
Directory listing of /INSTALL/NETBOOT/UBUNTU_INSTALLER/AMD64/PXELINUX.CFG/
d--------- 0 0 0 2048 Apr 15 2014 [ 72 02] .
d--------- 0 0 0 2048 Apr 15 2014 [ 69 02] ..
---------- 0 0 0 0 Apr 15 2014 [ 1920 00] DEFAULT.;1