How Do You Install .tar.gz Files?`

Discussion in 'Computer Games and General Discussion' started by .Chris, Apr 20, 2011.

  1. .Chris
    OP

    .Chris Clueless

    Member
    2,190
    56
    Feb 20, 2009
    United States
    United States
    In Ubuntu, how do I install .tar.gz files?
     
  2. tj_cool

    tj_cool Site dev

    Supervisor
    9,985
    -1
    Jan 7, 2009
    Belgium
    This planet
    tar.gz is an archive. You can extract it through command line:
    tar -xzf

    (Sometimes you can also Right Click -> Extract)
     
  3. Originality

    Originality Chibi-neko

    Member
    5,326
    776
    Apr 21, 2008
    London, UK
    Having WinRAR helps as a general 'one fits all' archive manager.
     
  4. .Chris
    OP

    .Chris Clueless

    Member
    2,190
    56
    Feb 20, 2009
    United States
    United States
    After I extract all the files, how do I install the program?
    [​IMG]
     
  5. Fishaman P

    Fishaman P Speedrunner

    Member
    3,239
    505
    Jan 2, 2010
    United States
    Wisconsin
    I want to know this as well! Cave Story FTW!
     
  6. Mazor

    Mazor Z80 master arch

    Member
    547
    23
    Feb 14, 2008
    Generally the process of installing stuff from archives on Unix-likes is:
    1. tar -zxvf (v optional, for verbose).

    Depending on contents of package and what you want to do go to either 2A or 2B.

    2A. Copy the binaries in the archive to some place from where you want to use them (like /usr/local/bin/) or just run them from where they are. In your case, you have the binaries rar, unrar and rar_static (linked statically to not require dependencies).

    2B. If there were no binaries or you want to compile yourself, generally do:
    ./configure (not in this specific case since there is no configure file, there generally is though)
    make
    make install

    So yeah. You have the binaries which you can run by just just typing in the terminal, or copy to some place included in your PATH environment variable such as /usr/local/bin so that you can then run them by just typing their name (like: unrar )

    The guy is running Ubuntu (as can be seen from any of his other topics apart from him stating it in the OP of this thread) so that's pretty irrelevant. Also 7-zip has the benefits of being less bloat and completely free over Winrar, is there any reason to use Winrar over 7-zip?
     
  7. Originality

    Originality Chibi-neko

    Member
    5,326
    776
    Apr 21, 2008
    London, UK
    WinRAR does have a Linux port. There's no real reason to use WinRAR instead of 7-zip; I just don't like the 7-zip UI. I only offered it as a suggestion.
     
  8. Fishaman P

    Fishaman P Speedrunner

    Member
    3,239
    505
    Jan 2, 2010
    United States
    Wisconsin
    Okay, which file extension does the binary have?
     
  9. KDH

    KDH GBAtemp Regular

    Member
    241
    29
    Apr 26, 2007
    United States
    Kansas
    UNIX/Linux binaries don't have extensions.
     
  10. Mazor

    Mazor Z80 master arch

    Member
    547
    23
    Feb 14, 2008
    No, there certainly isn't. There is however "RAR" provided by Rarlab who made WinRAR, but that's what he already downloaded and wanted help extracting.
     
  11. kamins

    kamins Member

    Newcomer
    31
    0
    Feb 27, 2010
    Or you could create a debian package and install with your package manager.
    1. First install alien:
    sudo apt-get install alien
    2.Then navigate in terminal to the folder the tar.gz archive is at, or just move the archive to your home folder.
    3.make the package with alien -k file.tar.gz
    4. install it with synaptic or ubuntu software center.
    It's more work but you get a clean install.
     
  12. Fishaman P

    Fishaman P Speedrunner

    Member
    3,239
    505
    Jan 2, 2010
    United States
    Wisconsin
    It doesn't have an extension? Or it's hidden by default?

    Anyway, then how are you supposed to know which one to run?
     
  13. Mazor

    Mazor Z80 master arch

    Member
    547
    23
    Feb 14, 2008
    You will know from their filenames. They also show up as binaries in file managers, because they are binary files as opposed to text/other files.
     
  14. .Chris
    OP

    .Chris Clueless

    Member
    2,190
    56
    Feb 20, 2009
    United States
    United States
     
  15. tj_cool

    tj_cool Site dev

    Supervisor
    9,985
    -1
    Jan 7, 2009
    Belgium
    This planet
    use sudo before the command.
     
  16. .Chris
    OP

    .Chris Clueless

    Member
    2,190
    56
    Feb 20, 2009
    United States
    United States
    Thanks, that work perfectly! [​IMG]