5W site logo 5W - мой домашний сайт-блог с картинками, кино и плюшками.

unpack-tazpkg.txt

1. Download
$ wget http://mirror.slitaz.org/packages/cooking/tazpkg-5.1.tazpkg

2. uncompress file
$ mv tazpkg-5.1.tazpkg tazpkg-5.1.tazpkg.gz
$ gunzip tazpkg-5.1.tazpkg.gz

3. cpio extract archive
$ cpio -id < tazpkg-5.1.tazpkg

4. contents of extracted archive
$ ls -l
total 152
-rw-r--r-- 1 saml saml 1213 Oct 24 22:57 files.list
-rw-r--r-- 1 saml saml 66044 Oct 24 22:57 fs.cpio.lzma
-rw-r--r-- 1 saml saml 1958 Oct 24 22:57 md5sum
-rw-r--r-- 1 saml saml 1648 Oct 24 22:57 receipt

5. uncopressed .lzma file
$ lzcat fs.cpio.lzma | cpio -idm
596 blocks

6. resulting extracted files
$ find fs/ -ls | head -5
10895752 4 drwxr-xr-x 4 saml saml 4096 Oct 24 22:59 fs/
10895756 4 drwxr-xr-x 4 saml saml 4096 Oct 24 22:59 fs/usr
10895757 4 drwxr-xr-x 8 saml saml 4096 Oct 24 22:59 fs/usr/share
10895758 4 drwxr-xr-x 3 saml saml 4096 Oct 24 22:59 fs/usr/share/icons
10895759 4 drwxr-xr-x 3 saml saml 4096 Oct 24 22:59 fs/usr/share/icons/hicolor
....

The files in the fs/ directory can then be moved into position to regain the tool tazpkg.
$ find fs/|grep "/bin/tazpkg$"
fs/usr/bin/tazpkg