LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2017, 07:52 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: Centos 7 , Linux Mint 18.1 Under VMware in Win7
Posts: 542

Rep: Reputation: 34
Proper Directory to Install Software Package


Greetings,

I'm running CentOS 7 and I downloaded kompozer-0.8b3.en-US.gcc4.2-i686.tar.gz into my Downloads directory.

I would like to know what directory I should untar it into so it can be used by all users on the system.

From what I understand if I just untar it as is, it will be untared into my Downloads directory and I'll be the only on who can use the program.

Thanks
 
Old 07-08-2017, 08:26 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
if it is a binary tared you can just untar it in /opt then do a soft link to the executable (i put mine in) /usr/local/bin so I know it was done by me, but /usr/bin too will work.

if there is a desktop file to deal with then you can make the needed adjustments within that file to direct it to the executable if needed, and then move or copy that into /usr/share/applications then it will show up on ones menu.

or untar it in your downloads dir - go su and move it into your /opt then do what is needed to finalize the process. that is what I do, it is a simple matter. if more help is needed to getter done post back.

Last edited by BW-userx; 07-08-2017 at 08:28 AM.
 
Old 07-08-2017, 08:52 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
well I feel stupid,

Code:
userx%slackwhere ⚡ kompozer ⚡> ./kompozer
/home/userx/bin/kompozer/run-mozilla.sh: line 166: ./kompozer-bin: No such file or directory
userx%slackwhere ⚡ kompozer ⚡> ./kompozer-bin
bash: ./kompozer-bin: No such file or directory
userx%slackwhere ⚡ kompozer ⚡>
I even slapped it inside of /opt and was getting same error even after I modded some file I forget what it was to point it to where kompozer-bin is /opt/kompozer/

it is suppose to run out of the box --?? if yours works in your home dir then ok it should work in /opt too.

MOD: this tar
kompozer-0.8b3.en-US.gcc4.2-i686.tar.gz

is developed for the i686
whereas I am running a 86_64 slack what is 64bit only --- so therein lays my problem. Therefore what I stated before hand is still valid.

Last edited by BW-userx; 07-08-2017 at 09:27 AM.
 
Old 07-14-2017, 09:31 AM   #4
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: Centos 7 , Linux Mint 18.1 Under VMware in Win7
Posts: 542

Original Poster
Rep: Reputation: 34
Thanks for all the answers. BW-user, I'm a newbie, how do I set up a 'soft link'

Thanks again.
 
Old 07-14-2017, 10:00 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by swamprat View Post
Thanks for all the answers. BW-user, I'm a newbie, how do I set up a 'soft link'

Thanks again.
bop on into the dir or not with your term, whip out your sudo and type something like this.
Code:
sudo ln -s /path/orginal/execuable/ExecutableName/ /path/where/you what to put it/ 
no executable name needed at destination
working example.
Code:
userx%slackwhere ⚡ ~ ⚡> cd /opt
userx%slackwhere ⚡ opt ⚡> ls
blender-2.78c-linux-glibc219-x86_64  dropbox
userx%slackwhere ⚡ opt ⚡> cd blender-2.78c-linux-glibc219-x86_64
userx%slackwhere ⚡ blender-2.78c-linux-glibc219-x86_64 ⚡> ls
2.78                            blender                 icons
GPL-license.txt                 blender-softwaregl      jemalloc-license.txt
GPL3-license.txt                blender-thumbnailer.py  lib
LICENSE-bfont.ttf.txt           blender.desktop         ocio-license.txt
LICENSE-bmonofont-i18n.ttf.txt  blender.svg             readme.html
LICENSE-droidsans.ttf.txt       blenderplayer
Python-license.txt              copyright.txt
userx%slackwhere ⚡ blender-2.78c-linux-glibc219-x86_64 ⚡> sudo ln -s /opt/blender-2.78c-linux-glibc219-x86_64/blender /usr/share/bin 
showing you where I am at and how I got there then what to do.

of course if you know the exact path then you do not actually have to be in the same dir. just BE SURE your paths are correct on source -> destination, and the executable is spelled correctly.

you can also change the executable name in the destination directory to whatever you want, Linux even does this from some of its libs. for better compatibility reasons with other software.

Just type in a name on the destination end to whatever you want to call it. but that is something that is a need by need case.

Last edited by BW-userx; 07-14-2017 at 10:07 AM.
 
Old 07-14-2017, 10:00 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Google, and other search engines, are your friends. Use them to search for answers, because most questions you might have are already answered on the web.

https://www.cyberciti.biz/faq/unix-c...nk-ln-command/

This is a short discussion on the difference between soft and hard links and how to use them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] proper way to compile and install a package from source? cdek Slackware 14 05-04-2017 07:13 PM
[SOLVED] Is it better to install software from the Ubuntu Software Center or Synaptic Package Manager? Gregg Bell Linux - Software 21 06-01-2016 03:04 AM
What is the proper directory to install libraries/dependecies of Gnome/Anjuta? jdruin Linux - Software 0 12-05-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration