分类:
2009-03-21 21:40:37
# ls catalog file cfg_cache download index |
# cd catalog/opensolaris.org/ # ls attrs catalog # more catalog V pkg SUNWdvdrw 5.21.4.10.8,5.11-0.86:20080426T173208Z V pkg SUNWdvdrw 5.21.4.10.8,5.11-0.75:20071114T201614Z V pkg SUNWdvdrw 5.21.4.10.8,5.11-0.86:20080422T205204Z V pkg SUNWdvdrw 5.21.4.10.8,5.11-0.79:20080205T153550Z ... |
# pkg verify SUNWzfs # <--- 这说明已经安装了SUNWzfs包 # cd pkg/SUNWzfs/ # rm -rf installed # pkg verify SUNWzfs pkg: 系统中没有安装任何与您指定的以下模式 匹配的软件包。 SUNWzfs # |
# pwd /ips/repo/repo/pkg/SUNWzfs # cat 0.5.11%2C5.11-0.109%3A20090305T202705Z ... file dd51cdbf92ce22e6c04c5142528b26b9c16edc40 chash=ee78226cedcd06cc1ba4a29e408b1c00eb3ac7eb elfarch=i386 elfbits=32 elfhash=512da5400be7e9dc731dccfeca9480172098f1e2 group=sys mode=0755 owner=root path=usr/lib/devfsadm/linkmod/SUNW_zfs_link.so pkg.csize=2336 pkg.size=7804 variant.arch=i386 link path=usr/lib/libzpool.so target=libzpool.so.1 variant.arch=i386 ... |
pkg运行->[向IPS server进行认证]->从server更新catalog->找到要安装的包的FMRI->根据dependency来计算所有的 depend包->得到所有包的FMRI->下载对应FMRI的包s的plan信息(如上所示)->生成plan->下载文件 ->解压缩->在client端按照要求生成文件->安装完所有的包->更新state信息->更新index. |
#cd /ips/repo/repo/file/dd/51cdbf # ls dd51cdbf92ce22e6c04c5142528b26b9c16edc40 # file dd51cdbf92ce22e6c04c5142528b26b9c16edc40 dd51cdbf92ce22e6c04c5142528b26b9c16edc40: gzip compressed data - deflate method , max compression # gunzip dd51cdbf92ce22e6c04c5142528b26b9c16edc40 # file dd51cdbf92ce22e6c04c5142528b26b9c16edc40 ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available |