1. .Chris

    OP .Chris Clueless
    Member

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

    tj_cool Site dev
    Supervisor

    Joined:
    Jan 7, 2009
    Messages:
    10,043
    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

    Originality Chibi-neko
    Member

    Joined:
    Apr 21, 2008
    Messages:
    5,707
    Country:
    Having WinRAR helps as a general 'one fits all' archive manager.
     
  4. .Chris

    OP .Chris Clueless
    Member

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

    Fishaman P Speedrunner
    Member

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

    Mazor Z80 master arch
    Member

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

    Joined:
    Apr 21, 2008
    Messages:
    5,707
    Country:
    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

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

    KDH GBAtemp Regular
    Member

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

    Mazor Z80 master arch
    Member

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

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

    Joined:
    Jan 2, 2010
    Messages:
    3,283
    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

    Mazor Z80 master arch
    Member

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

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

    tj_cool Site dev
    Supervisor

    Joined:
    Jan 7, 2009
    Messages:
    10,043
    Country:
    Belgium
    use sudo before the command.
     
  16. .Chris

    OP .Chris Clueless
    Member

    Joined:
    Feb 20, 2009
    Messages:
    2,197
    Country:
    United States
    Thanks, that work perfectly! [​IMG]
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Install, Files,