2

Before you mark this as a duplicate of How do I install a .tar.gz (or .tar.bz2) file? hear me out first.

I downloaded the haroopad-v0.12.0_i386.tar.gz file from the haroopad website and extracted the archive expecting to find the normal .make or install.sh files but they were not there, instead there were two more archives - 'control.tar.gz' and 'data.tar.gz'.

I extracted both of them and below is the file tree. (I ommited the .icons tree structure from data.tar.gz because they are just icons).

control.tar.gz:

├── control
└── postinst

data.tar.gz:

└── usr
    ├── bin
    │   └── haroopad
    └── share
        ├── applications
        │   ├── Haroopad.desktop
        │   └── mimeapps.list
        ├── doc
        │   ├── changelog
        │   └── copyright
        ├── haroopad
        │   ├── haroopad <-------------
        │   ├── Libraries
        │   ├── nw.pak
        │   └── Resources
        │       └── Themes
        │           ├── editor
        │           │   └── default.css
        │           └── viewer
        │               └── default.css
        └── icons

I can get haroopad to run by double clicking the haroopad file (shown above with an arrow) but am sure there must be a better way to 'install' it.

I think I should copy these files somewhere - like the 'Haroopad.desktop' I suppose should go to '~/.local/share/applications', but I'm not so sure.

How do I install this archive correctly in such a way that I can run it from the dash and terminal?

2
  • 1
    The site you linked appears to provide .deb files for both 32 and 64 bit systems - why don't you download the 32-bit deb instead? You can then install it properly using the usual package management tools. Jul 2, 2014 at 12:36
  • @steeldriver I can do that but my question still remains. What about in cases where there are no .deb files?
    – Parto
    Jul 2, 2014 at 13:37

1 Answer 1

0

I'll assume that you unpacked app archive to your Downloads directory.

Simply copy content of unpacked data.tar.gz to root directory (/):

cd /
sudo tar -xvf $HOME/Downloads/data.tar.gz

Note that it may be hard to uninstall that application. If you want to do so, you must remove every file from the file tree.

Also, it may be required to run postint script from control.tar.gz:

cd ~
tar -xvf $HOME/Downloads/control.tar.gz
bash $HOME/Downloads/postinst

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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