I would like to know how to install .tar.bz and .tar.bz2 packages on Debian, please give me a complete explanation.
|
Firstly, according to the File System Hierarchy Standards, the location of this installed package should be A binary package is going to be easy:
and you are done. A src package is going to be more troublesome (by far):
If there's any problems in the install then you'll have to ask specific questions. Each package is different. You might have problems of incorrect versions of libraries or missing dependencies. There's a reason that Debian packages everything up for you. And there is a reason Debian stable runs old packages - finding all the corner cases of installing packages on more than a dozen different architectures and countless different hardware/systems configurations is difficult. When you install something on your own you might run into one of these problems! |
|||||
|
|
Let me illustrate this with an example, say you wish to install a package
Then comes the building from source part for which the first step is always extraction. This can be done by using the
Now you need to run
so if you are installing to the
After the
|
||||
|
|
|
TuxFiles has a pretty complete explanation. And it explains how to clean up, and then if necessary later, steps to uninstall as well. It (perhaps) fails the Debian specific part of the question, but is Linux specific. |
||||
|
|
|
Unzip it and read the instructions contained, or Google the relevant package and find/read the instructions. |
|||||
|
|
Generally speaking, when you install tar.gz/tgz/tar/bz2 (remember, these are just compressed package files) you would need to break open the tar file ( On some systems, you either take the defaults (/usr/local/{lib,bin,etc...} for example) as the default install location, or you might like to use /opt/local/{lib,bin,etc}. So you would do It us up to you where you want to install your packages. Remember that where ever you decide to do it, you might want to add the path to your PATH shell variable so you can easily run those packages. (often |
||||
|
|
|
The standard way of doing this is:
There is usually a README or INSTALL file that gives instructions as well. |
||||
|
|
|
Unpack the files and then, in the directory that was created, look for a Usually it boils down to |
|||||
|


./configure,make,make install, but I'm sure someone will provide better answer to you, with links where you can learn this very basic things before you actually try to build anything – zetah Apr 30 '12 at 14:57dpkg -i ./path/to/package.deb. Using .tar.{gz,bz2} packages, is the last and most difficult option. – jofel Apr 30 '12 at 16:18