LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 02:42 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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



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 03:12 PM
Compiling programmes: How to use #ifdef? asciimonster Linux - General 1 12-13-2004 01:35 PM
Installing drivers / programmes howto wesleywest Linux - Newbie 0 11-15-2004 04:38 AM
Deleting unwanted programmes... Ewen Linux - General 33 12-26-2002 11:17 PM
x86 programmes for LinuxPPC2000 Slippy Linux - Newbie 5 11-01-2000 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 AM.

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
Open Source Consulting | Domain Registration