LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question on how linux installs programs (https://www.linuxquestions.org/questions/linux-newbie-8/question-on-how-linux-installs-programs-157203/)

fiveohhh 03-13-2004 02:34 PM

Question on how linux installs programs
 
How/where does linux install programs. I know my way thorough windows pretty well, but linux is real foreign to me. In windows most programs are installed in program files with one exe in there normally that runs it. Doesn't seem like theres one central place for it.

And my last question if i'm instaling from src, how do I upgrade an install I know if I have the rpm I can use -U but how would I do this from source?

Thanks in advance for any help.

Eqwatz 03-13-2004 02:51 PM

Do a search on this site. It has been explained many times and with more clarity than I generally have.

Learning to search is the greatest skill you can have in this new age of information. Later on, do a search on google for Fravia.

jailbait 03-13-2004 02:52 PM

"How/where does linux install programs."

That is determined by the person who created the rpm package. Usually programs are installed somewhere in /usr or /opt. /usr/local, /usr/bin, and /usr/local/bin are popular directories to install programs. You can find out where a rpm package installs everything with this command:
rpm -ql packagename

"And my last question if i'm instaling from src, how do I upgrade an install I know if I have the rpm I can use -U but how would I do this from source?"

The best way to finesse the problem of keeping track of programs installed from source is to convert them into rpm packages using checkinstall.

http://asic-linux.com.mx/~izto/checkinstall/

The usual method of installing source is:
./configure
make
make install

With checkinstall this becomes:
./configure
make
checkinstall

which creates a rpm package which you then install in the normal way.

fiveohhh 03-13-2004 03:13 PM

Cool Thanks:D


All times are GMT -5. The time now is 01:55 AM.