LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-10-2006, 03:24 AM   #1
gggjm
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
A few questions on where to install new programmes.


Dear All,
Iíve just installed Mandrake Linux 10.1 (running Gnome) on my computer as Iíd had a very brief flirtation with Linux in the past and really enjoyed using it. Although I have a lot of experience with computers Iím a Linux newbie and I have a few newbie-type questions which I hope you donít mind me asking.
Firstly, I want to install other software but I am unsure in which directory to put the software where it can then be run from. I think I read somewhere that this software commonly goes into /usr/local/bin. If this is the case do extracted tarballs and RPMs go into this directory?
Secondly, how would I be able to get this software to run just by typing in its name on the command line? I assume this is something to do with a script in /usr/bin but, again, Iím not sure.
Finally, how would I get this programme to appear in the menus (I guess the Gnome equivalent of Windowís ďStartĒ button)?
Sorry if these questions are a bit daft. Thanks very much for any help any one can give me

Best wishes,
Gareth.
 
Old 03-10-2006, 03:42 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,835

Rep: Reputation: 260Reputation: 260Reputation: 260
When you install a program that is not part of the distribution, the install files can be anywhere(i.e. program.tar.gz, or program.rpm). I put them in /home/<user> subdirectory. Rpm's go where the rpm says they go. You just type "rpm -iv <rpmfile>, and let it rip. If there are any problems, a message will come up. For tarballs(i.e. program.tar.gz, or program.tar.bz2), you just extract the tarball. It doesn't matter where, as long as you know where it is.

tar zxvf <tarball>
(extract tarball)
cd <tarballextractdirectory>
(this is always the name of the tarball without the extensions tar.gz or tar.bz2)
./configure --help
(read the help for configure)
cat README
(read readme)
./configure
(create makefiles)
make
(make the binaries)
as root:
make install
(install the binaries)

You can make .desktop files for each program with the proper program, but what I do is put a link to the binary in /usr/bin(i.e. "ln -s /usr/local/bin/programexecutable /usr/bin/programexecutable). Sometimes /usr/local/bin is in the path. Then you don't need a link. If you try to run the program as root you might have to open a user shell and type "xhost +" first. Then the program will run as root. If you don't need to run the program as root, don't.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
removing programmes (games) master Red Hat 2 07-06-2005 04:12 PM
Compiling programmes: How to use #ifdef? asciimonster Linux - General 1 12-13-2004 02:35 PM
Installing drivers / programmes howto wesleywest Linux - Newbie 0 11-15-2004 05:38 AM
Deleting unwanted programmes... Ewen Linux - General 33 12-27-2002 12:17 AM
x86 programmes for LinuxPPC2000 Slippy Linux - Newbie 5 11-01-2000 11:26 AM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration