Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
I downloaded and un-tared the latest version of Mozilla Firefox. Right now it is in my home directory and I just created a launcher on my desktop to link the Firefox.sh but this sucks because I have 2 more people who use the PC and they too want to use Firefox and rather everyone download the same file and place it in their home directory, is there no way we can place the Firefox directory and files in a common path that everyone can access? I obviously have everyones user home directory locked down so nobody else can r-w-x it.
$ whereis firefox
firefox: /usr/bin/firefox /usr/local/bin/firefox /usr/local/firefox /usr/share/man/man1/firefox.1.gz
$ ls -l `whereis firefox`
ls: firefox:: No such file or directory
-rwxr-xr-x 1 root root 5102 Dec 19 11:52 /usr/bin/firefox
lrwxrwxrwx 1 root root 18 Dec 20 09:28 /usr/local/bin/firefox -> ../firefox/firefox
-rwxr-xr-x 1 root root 1120 Sep 14 2004 /usr/share/man/man1/firefox.1.gz
/usr/local/firefox:
total 13800
-rw-r--r-- 1 root root 230 Dec 8 16:09 browserconfig.properties
drwxr-xr-x 3 root root 4096 Dec 8 16:10 chrome
drwxr-xr-x 2 root root 4096 Dec 8 16:11 components
[snip]
In other words, unpack firefox into /usr/local/firefox then create a symlink to the firefox executable in /usr/local/bin. (/usr/local/bin normally precedes /usr/bin, so that entry isn't used.)
Note that this arrangement is what is assumed by firefox for automatic updates.
tar -xvf firefox.tar.gz
mv firefox /opt
ln -s /opt/firefox/firefox /usr/bin/firefox
If I understand this code correctly, I am extracting the tar ball, moving the entire directory under /opt, and then I am creating a symbolic link "to" /usr/bin/firefox?
So when I right click my desktop and create the launcher for Firefox Web Browser, what is the path? /usr/bin/firefox?
Because I don't understand what apt is doing. Yeah - its easy to APT-GET INSTALL WHATEVER and it installs but then what? You have no idea where anything is and it puts packages and dependancies all over. Don't get me wrong, I love APT - and live by it every second but it kind of spoils me and leaves me wondering.
I am just trying to understand the best way to do things if I was on a generic or any Linux system. I don't want to reply on a specific package manager for everything if you know what I mean.
I am just trying to understand the best way to do things if I was on a generic or any Linux system. I don't want to reply on a specific package manager for everything if you know what I mean.
Yeah that's a real argument. You are right to do so. And /opt or /usr/local are good then.
I won't annoy you with the "apt does what it wants". I would just advise you to install (sorry apt-get again) dlocate
apt-get install dlocate
dlocate <packagename> will give you the list of files contained in a package
So /usr/local/ is better than /opt? Will all shell users have permissions to execute the firefox command from there.
Note, please, that I'm a Fedora user, and other distributions may have different $PATH rules. That is, I apologize if I've mislead any of you. What I stated, above, may have been Fedora specific, although the /usr/local thing was, if I recall correctly, discussed in the installation instructions on the Firefox web site.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.