Linux - NewbieThis 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.
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've been using linux off and on for a while now. I have no problems jumping right in and figuring things out on my own, but, this one I can't seem to find help for.
When I install apps, whether it be from RPM, source, what have you, I can never tell where the applications are installed. I have to dig around the linux file structures for an hour. Is there a rule of thumb that I can get used to?
My latest, I downloaded firefox, and extracted it, placed it in /home/General Apps What I am wondering is, can I get all RPM's and the like, to be installed in /home/General Apps
I miss windows, where all my apps are in program files, and somewhat wish there were a directory for my programs.
I'm quite neat when it comes to my PC, and would like to stay that way. Hate having executables in one directory, and then rest of the program in another....
Another example is this:
I downloaded superkaramba RPM, and can't for the life of me, find where the directory is.
The POSIX system is MUCH better for installation. It provides predictable standard file locations, instead of the mess that is the Windows structure.
Binaries go in /bin folders (/usr/bin, /usr/local/bin), libraries in /lib, documentation in /doc, config files in /etc.
Unlike Windows, UNIX seperates the files by type. Usually everything isn't in one folder. Though, there is /opt, that acts similar to Program Files. It may be something like /opt/mozilla or /opt/gnome. Even then though, the files will still be organized the standard way with /opt/gnome/bin, /opt/gnome/lib, etc, etc.
Why is this better? You always know where to go. I could tell you that any library is in /lib in UNIX, but you could not tell me where the Photoshop libraries (for example) are without looking around. There is no standardization.
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
I understand completely.
Your "program files" (if it helps at least a little), can be considered /usr/bin (normal user commands), and there are some in /usr/X11R6/bin (X-related files) as well. Unfortunately, this doesn't help much, because those files are usually in your path, and at the command line, you can type the first couple letters, and hit tab, and get a listing of files that match. Also, the packaging is up to whoever, so they might have other ideas on where the files show up. (/usr/local, /opt, etc)
One thing I'd recommend, is running 'updatedb' as the root user after installing new files. Then, you can type 'locate filename' or part of the name (as either root or a normal user), and find your files.
In reality, rpms are being pushed aside in favor of apt-style systems (where they not only check your dependencies, they download and install them as well, often setting up all the paths and menu links in the process), but it will be a while yet. For most programs, if you still have the .rpm on your system, you can do a listing of what files are installed where. 'man rpm' will help you with this.
Lastly, the 'which' command is sometimes useful if you later forget where the file is located. 'which bash' for example, will tell you the directory of bash. Not too useful for your situation, but useful at times.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.