How Do You Install .tar.gz Files?`

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

Apr 20, 2011
  1. .Chris
    OP

    Member .Chris Pffft.

    Joined:
    Feb 20, 2009
    Messages:
    2,182
    Location:
    United States
    Country:
    United States
    In Ubuntu, how do I install .tar.gz files?
     
  2. tj_cool

    Supervisor tj_cool Stuff

    Joined:
    Jan 7, 2009
    Messages:
    9,942
    Location:
    This planet
    Country:
    Belgium
    tar.gz is an archive. You can extract it through command line:
    tar -xzf

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

    Member Originality Chibi-neko

    Joined:
    Apr 21, 2008
    Messages:
    5,151
    Location:
    London, UK
    Country:
    United Kingdom
    Having WinRAR helps as a general 'one fits all' archive manager.
     
  4. .Chris
    OP

    Member .Chris Pffft.

    Joined:
    Feb 20, 2009
    Messages:
    2,182
    Location:
    United States
    Country:
    United States
    After I extract all the files, how do I install the program?
    [​IMG]
     
  5. Fishaman P

    Member Fishaman P Speedrunner

    Joined:
    Jan 2, 2010
    Messages:
    3,174
    Location:
    Wisconsin
    Country:
    United States
    I want to know this as well! Cave Story FTW!
     
  6. Mazor

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    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

    Member Originality Chibi-neko

    Joined:
    Apr 21, 2008
    Messages:
    5,151
    Location:
    London, UK
    Country:
    United Kingdom
    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

    Member Fishaman P Speedrunner

    Joined:
    Jan 2, 2010
    Messages:
    3,174
    Location:
    Wisconsin
    Country:
    United States
    Okay, which file extension does the binary have?
     
  9. KDH

    Member KDH GBAtemp Regular

    Joined:
    Apr 26, 2007
    Messages:
    241
    Location:
    Kansas
    Country:
    United States
    UNIX/Linux binaries don't have extensions.
     
  10. Mazor

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    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

    Newcomer kamins Member

    Joined:
    Feb 27, 2010
    Messages:
    31
    Country:
    Lithuania
    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

    Member Fishaman P Speedrunner

    Joined:
    Jan 2, 2010
    Messages:
    3,174
    Location:
    Wisconsin
    Country:
    United States
    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

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    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

    Member .Chris Pffft.

    Joined:
    Feb 20, 2009
    Messages:
    2,182
    Location:
    United States
    Country:
    United States
     
  15. tj_cool

    Supervisor tj_cool Stuff

    Joined:
    Jan 7, 2009
    Messages:
    9,942
    Location:
    This planet
    Country:
    Belgium
    use sudo before the command.
     
  16. .Chris
    OP

    Member .Chris Pffft.

    Joined:
    Feb 20, 2009
    Messages:
    2,182
    Location:
    United States
    Country:
    United States
    Thanks, that work perfectly! [​IMG]
     

Share This Page