Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
1  
@SSpoke - thanks for the Q. You can also upvote this A in addition to the accept 8-). –  slm Oct 25 '13 at 5:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.