Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Adjusting to Life without Installers

  1. #1
    Join Date
    Jun 2013
    Beans
    37

    Adjusting to Life without Installers

    So, if I go to download some software, here (http://www.sublimetext.com/2), for example.

    I download a folder full of files. There's an executable that works as a stand-alone.

    Is there a standard place in the Ubuntu file structure where I should put this folder? What are some best practices?

    Thanks!

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,048
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Adjusting to Life without Installers

    Put it in /tmp or make a directory in your home folder called Installs. It doesn't matter, because the package management system will put the files in the correct place. You can delete the installer file when you are done.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  3. #3
    Join Date
    Dec 2009
    Location
    greenville sc
    Beans
    286
    Distro
    Ubuntu Studio 13.10 Saucy Salamander

    Re: Adjusting to Life without Installers

    I just unpack to my home directory then make a symbolic link to whichever file that starts the program in /usr/local/bin/

    example
    Code:
    sudo ln -s /home/user/myprogram/myprogram.sh /usr/local/bin
    zealibib slaughter is a dwarven paladin of ill temperment played by a fat man of jolly temperment.

  4. #4
    Join Date
    Apr 2009
    Beans
    228

    Re: Adjusting to Life without Installers

    RangerK,

    Not sure what you mean by "folder full of files" but I went to the site you linked, found the Linux 64Bit version of the software available on that site, and clicked on it, and it gave me a download of a *.tar.bz archive.

    Some best practices state you should unpack the archive in the /opt directory, then make a symbolic link to the executable, and the link should be in /usr/bin/ -- all this will require root privileges. However, technically, you could unpack it anywhere you want, including a directory under your own home directory, and run the executable directly from there, it should function just as well. You unpack it using the utility "archive manager" (the executable is file-roller from the terminal).

    In any case, the package management system will be completely oblivious to it, since it's not technically-speaking a "package" (it's not a .deb file). This only means that the package management system won't configure it or remove it for you, should you ever decide to remove it.

    [Interesting tool, this Sublime Text, by the way, I might try it]
    Last edited by r_avital; August 23rd, 2013 at 03:44 PM.
    http://folding.extremeoverclocking.c...avital&t=45104
    "I fear the day technology will surpass our human interaction. The world will have a generation of idiots."
    ― Albert Einstein

  5. #5
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Adjusting to Life without Installers

    Quote Originally Posted by RangerK View Post
    So, if I go to download some software, here (http://www.sublimetext.com/2), for example.

    I download a folder full of files. There's an executable that works as a stand-alone.

    Is there a standard place in the Ubuntu file structure where I should put this folder? What are some best practices?
    webupd8.org maintains a PPA for Sublime Text: http://www.webupd8.org/2013/07/subli...available.html

  6. #6
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,048
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Adjusting to Life without Installers

    My mistake. I saw 32-bit and 64-bit and I just assumed *.deb files or *.rpm files for linux. So r_avital is correct, put the files in a consistent location. /opt (for optional software) is often a place for such manually-installed programs. But if a PPA is available, I would use that.
    Last edited by tgalati4; August 23rd, 2013 at 08:13 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  7. #7
    Join Date
    Apr 2009
    Beans
    228

    Re: Adjusting to Life without Installers

    Quote Originally Posted by oldos2er View Post
    webupd8.org maintains a PPA for Sublime Text: http://www.webupd8.org/2013/07/subli...available.html
    Well, that's good news, I was about to just unpack the tar.gz archive, but yes, a PPA is always preferable.

    Just to clarify for the OP's benefit -- Ranger, either method is fine, but adding the PPA to your software sources (easily done in Synaptic) and installing from there, means that the Synaptic package manager will in fact install in directories determined by the software author, and provide info on updates when available. That's one reason why it's the preferred method.
    http://folding.extremeoverclocking.c...avital&t=45104
    "I fear the day technology will surpass our human interaction. The world will have a generation of idiots."
    ― Albert Einstein

  8. #8
    Join Date
    Jun 2013
    Beans
    37

    Re: Adjusting to Life without Installers

    Great advice. Thank you!

    I installed the PPA using the advice from here: http://www.webupd8.org/2013/07/subli...available.html

    Namely:
    sudo add-apt-repository ppa:webupd8team/sublime-text-3
    sudo apt-get update
    sudo apt-get install sublime-text-installer
    Then I found the executable file using


    sudo updatedb
    locate sublime
    Then I made a symbolic link using Zealibib's advice:

    sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin
    Am I correct in drawing a couple conclusions:

    1. Instead of downloading and unpacking tar.bz files, look for a ppa when you want new software. It makes more of the process, including future updates, automatic.

    2. Making symbolic links in /usr/local/bin is a standard part of installing new software.

    If anyone can recommend a simple tutorial that covers these issues, I'd love to go through it.
    Last edited by RangerK; August 24th, 2013 at 12:52 PM. Reason: expanded message

  9. #9
    Join Date
    May 2009
    Location
    relative
    Beans
    365
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adjusting to Life without Installers

    I prefer the
    Code:
    /home/username/Applications/
    structure when I have to install something that doesn't come with installer.

  10. #10
    Join Date
    Aug 2011
    Beans
    343
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Adjusting to Life without Installers

    For what it may be (or may not be) worth, here is an explanation of the 'standard' file system hierarchy for Linux: https://en.wikipedia.org/wiki/Filesy...archy_Standard. Is it followed? Wellllllllll . . . . . . , sometimes by some people. From what I have seen very few use /opt and /etc/opt, although some do. All the advice you received here is good, but I thought you might like to see the standard. In actual fact you can put a file anywhere. The only problem with putting it somewhere unusual is finding it later when you forget where you put it although there are several utilities that do a pretty good job of that. Also, as you discovered, packages for Linux tend to be pretty specific: 32 bit, 64 bit, etc. So when you look at an 'installation' directy somewhere you need to get the file for you, not all of them.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •