Results 1 to 7 of 7

Thread: What correct folder is to extract software using tar extension ?

  1. #1
    Join Date
    Jul 2020
    Beans
    118

    What correct folder is to extract software using tar extension ?

    Using Lubuntu 20.04.
    I have downloaded an browser and extracted in desktop and is working perfectly.
    Well an folder in desktop for an software not look correct.
    What is the correct folder to extract softwares that is in tar files ?

  2. #2
    Join Date
    Jun 2005
    Location
    Hamburg, Germany
    Beans
    364
    Distro
    Ubuntu Budgie

    Re: What correct folder is to extract software using tar extension ?

    Hi there,

    i'd put the extracted directory into /opt/ and create a link to the (browser) executable in /usr/bin or maybe /usr/local/bin.
    Maybe you have to copy a .desktop file into $HOME/.local/share/applications to have it appear in your menu.

    Cheers!

  3. #3
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,473
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: What correct folder is to extract software using tar extension ?

    The proper directory for stuff installed without using the package manager is /usr/local/. The executable belongs in /usr/local/bin/, config files in /usr/local/etc/, supporting data files in /usr/local/share, etc. Instead, you can also install it in /opt/appname/. If you install something for a single user, you can leave the files in your home directory, like ~/bin/, ~/.local/share/, etc. It depends a bit on how well-behaved the application is. Some just don't follow the guidelines and won't find their data files if installed in the standard UNIX way (like applications designed for Windows and later ported to Linux).

  4. #4
    Join Date
    Aug 2017
    Beans
    72

    Re: What correct folder is to extract software using tar extension ?


  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    21,338
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: What correct folder is to extract software using tar extension ?

    Don't pollute the formal package directories.

    Stay with /usr/local/ for all non-commercial software. I'd keep the directory structure the tar file creates, just under /usr/local/ Follow what the file system hierarchy standards say. https://en.wikipedia.org/wiki/Filesy...archy_Standard

    /opt/ is usually for commercial or closed-source programs that don't have a package for ubuntu.

    But really, going out and downloading programs on the internet outside the package manager is to be avoided. It is the last choice in the list of 5 other methods.

  6. #6
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    10,082

    Re: What correct folder is to extract software using tar extension ?

    Note: Always tar a directory. Never tar a bunch of files.

    As mentioned by others, /usr/local is for user installed programs. It will not get overwritten when you do system updates.

  7. #7
    Join Date
    Jul 2020
    Beans
    118

    Re: What correct folder is to extract software using tar extension ?

    Thanks very much

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
  •