1

How do I install TazPkg in SliTaz Linux?

Usually to install tazpkg packages you need TazPkg but I unsintalled TazPkg because it was broken now how do I install it again?

SSpoke
  • 165
  • 1
  • 3
  • 12

1 Answers1

2

I think you can just download the TazPkg. The packages are available from the SliTaz website.

Once you've downloaded this file you can use the following steps to manually unpack its files.

Steps

  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

References

slm
  • 363,520
  • 117
  • 767
  • 871
  • 1
    @SSpoke - thanks for the Q. You can also upvote this A in addition to the accept 8-). – slm Oct 25 '13 at 05:03