Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to know the procedure of installation and uninstallation on Linux?

Are there any log file that logs these procedure?

For example, I am installing Netbeans IDE on Linux. I want to know where are the files of this IDE? I want to know where the folder is that contain programs that installed on Linux.

For example, if you install Netbeans IDE, then you can see somethink like below on a file :

programName date time usr

netbeans-7ml 06/08/2011 8:3:00 root

share|improve this question

migrated from stackoverflow.com Aug 6 '11 at 4:35

This question came from our site for professional and enthusiast programmers.

    
Depends on the program and package manager. The files will be all over the place as well. –  Rafe Kettler Aug 6 '11 at 4:26
    
Duplicate of how does a program install on Linux?. Please don't double-post. –  Michael Petrotta Aug 6 '11 at 4:27
add comment

3 Answers

Depends on the Linux flavor (distro) that you are running but typically programs get installed on /usr/bin or /usr/local/bin

You can cd to the /usr/bin directory and then do ls -la | more and you'll see all the "executable" files there.

share|improve this answer
add comment

There are different methods depending on the linux distribution -- On Redhat/Fedora the the installation is done though RPM packages, which then are distributed for update and installed mostly using YUM -- How to create a RPM is documented here

On debrian/ubutu systems the equivalent is a DEB package which is distributed and installed though apt-get. How to create a DEB package is documented here

If all you want is your own program which you have compiled on your own system yo be accessible for you to execute, then either just setup the PATH to include the directory where your executable is located, or copy the executable to /usr/bin or (/usr/local/bin if that is part of the PATH already)

share|improve this answer
add comment

While is true that every distro has it's own methods there is a standard (or attempt for it) filesystem hierarchy which is worth reading:

http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html

There you'll see where should go the system binaries, the system libraries, why no_system binaries go some times to /usr/bin and some other times to /usr/local/bin, what is /bin, what the heck is /usr/sbin, where should be located the documentation of each package, why settings are placed in /etc, what is the /var directory, why packages which are not from your distro commonly are installed in /opt, etc...

Again, It's worth reading.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.