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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-08-2017, 07:52 AM
|
#1
|
Member
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 571
Rep:
|
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
|
|
|
07-08-2017, 08:26 AM
|
#2
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
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.
|
|
|
07-08-2017, 08:52 AM
|
#3
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
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.
|
|
|
07-14-2017, 09:31 AM
|
#4
|
Member
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 571
Original Poster
Rep:
|
Thanks for all the answers. BW-user, I'm a newbie, how do I set up a 'soft link'
Thanks again.
|
|
|
07-14-2017, 10:00 AM
|
#5
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by swamprat
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.
|
|
|
07-14-2017, 10:00 AM
|
#6
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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 03:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|