LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Proper Directory to Install Software Package (https://www.linuxquestions.org/questions/linux-newbie-8/proper-directory-to-install-software-package-4175609444/)

swamprat 07-08-2017 07:52 AM

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

BW-userx 07-08-2017 08:26 AM

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.
:D

BW-userx 07-08-2017 08:52 AM

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.

swamprat 07-14-2017 09:31 AM

Thanks for all the answers. BW-user, I'm a newbie, how do I set up a 'soft link'

Thanks again.

BW-userx 07-14-2017 10:00 AM

Quote:

Originally Posted by swamprat (Post 5734843)
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.

bigrigdriver 07-14-2017 10:00 AM

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.


All times are GMT -5. The time now is 08:46 PM.