LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-02-2005, 11:42 PM   #1
shavak
LQ Newbie
 
Registered: Feb 2005
Location: Trinidad and Tobago
Distribution: Mandrake 10.0
Posts: 4

Rep: Reputation: 0
software install directory


Hey Guys,
I recently installed Mandrake 10.0 on my second hd and I am looking forward to getting rid of Windows completely. Before I begin my transition, I would like some clarification about software installation in Linux. I have come across two ways of installing software - the first being to dl rpm files, store them some directory and point rpmdrake to that directory, then use the install option in rpmdrake and search for the added packages. What is the appropriate directory to store rpm files? Of course I could store them in /home/.. but that seems a bit clumsy. A similar question applies to the second method - tarballs. In which directory should one install programs extracted from tarballs? For example, the Mozilla Firefox installer defaults to the directory that it's in (which was /home/..). Firefox worked fine, but I imagine that the app should be stored somewhere else. Thanks.
Shavak.
 
Old 02-03-2005, 12:59 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The best way to install software on Mandrake is not actually downloading rpms and manually installing them (although you can obviously do it). Mandrake has a package manager called urpmi, with a gui interface called rpmdrake. You configure urpmi to point to Mandrake ftp sites or Mandrake installations disks (done automatically at installation time), start urpmi or rpmdrake and install the packages you need. urpmi automatically resolves and dependencies as well, so this will save you the time and effort you could spend looking for packages on the internet. To fond out more about urpmi and how to configure and use it, go to zebulon.org.uk and easyurpmi or any Mandrake specific forums.

As for tarballs, most are installed in /usr/local, but some may need to be specifically in /usr particularly if you take the risk of upgrading packges that were initially installed as rpms. Some packages such as firefox, azureus and limewire can run from your /home directory, which is okay if you are the only one using your system but if other need to use the same application, then you are better off, installing them in /usr/local.
 
Old 02-03-2005, 01:12 AM   #3
shavak
LQ Newbie
 
Registered: Feb 2005
Location: Trinidad and Tobago
Distribution: Mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot man. So for the tarballs, just create say a mozilla_firefox dir in /usr/local or should it be in /usr/local/bin or some other subdirectory of /usr/local? I appreciate the help, I studied a filesystem hierarchy tutorial but it didn't say what goes where.
 
Old 02-03-2005, 02:04 AM   #4
jtan325
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: Mandrake 10.1
Posts: 15

Rep: Reputation: 0
so when you use urpmi, what directori(es) are programs normally installed to? i.e. i just installed firefox using urpmi, but i don't know the path...

just in general, where will most of your software be located? i know /bin has some stuff, but it didn't have firefox...
 
Old 02-03-2005, 02:47 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by shavak
Thanks a lot man. So for the tarballs, just create say a mozilla_firefox dir in /usr/local or should it be in /usr/local/bin or some other subdirectory of /usr/local? I appreciate the help, I studied a filesystem hierarchy tutorial but it didn't say what goes where.
For stuff like firefox et al you need to put them in directories such as /usr/local/firefox and then create a symbolic link (symlink) to their binaries in /usr/local/bin or /usr/bin e.g.

#ln -s /usr/local/firefox/firefox /usr/local/bin/.
When you do that and type "firefox" in a console, firefox starts. You can then create desktop icons or menu links that just refer to firefox and when you click on them firefox will run.

Last edited by reddazz; 02-03-2005 at 02:49 AM.
 
Old 02-03-2005, 02:51 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by jtan325
so when you use urpmi, what directori(es) are programs normally installed to? i.e. i just installed firefox using urpmi, but i don't know the path...

just in general, where will most of your software be located? i know /bin has some stuff, but it didn't have firefox...
Most software you install using urpmi will be intalled somewhere in /usr. The best way to check is by doing,
$whereis firefox
or
$whereis mozilla-firefox
a path will then be printed on the screen.
 
Old 02-03-2005, 03:49 AM   #7
jtan325
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: Mandrake 10.1
Posts: 15

Rep: Reputation: 0
SWEET. Thanks!
 
Old 02-03-2005, 10:39 AM   #8
shavak
LQ Newbie
 
Registered: Feb 2005
Location: Trinidad and Tobago
Distribution: Mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks redazz! I'll do that. I configured urpmi with the ftp sites too - didn't even know about the sites until you told me. Good heads up! Just a question about urpmi though; suppose I am interested in a piece of software say the Java Development Kit (for which I know there exist rpms 'cause I downloaded them already from Sun) I would do a search in the install option of rpmdrake. JDK 5.0 doesn't turn up. In such a case should I have a local package directory for rpms that I dl not yet available from the ftp mirrors? If so where should this directory exist? Thanks dudes.
 
Old 02-03-2005, 11:05 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For some packages you will have to install third party rpms, but like I said earlier you need to make sure that they don't break your system or if they require any dependencies, install them from the Mandrake software repositories because hunting for dependencies on the web can result in a broken system if the rpms are not explicitly made for your distro. There is a java rpm for Mandrake but it's only available to club members or those that buy boxed sets.
 
Old 02-03-2005, 12:05 PM   #10
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
The Sun java installation won't break your system, at least. I just download things like that to $HOME/downloads, and install them from there.
 
Old 02-03-2005, 10:23 PM   #11
shavak
LQ Newbie
 
Registered: Feb 2005
Location: Trinidad and Tobago
Distribution: Mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot guys. I will follow your advice - better to be safe than sorry. I need to use JDK though so I'll have to install it manually, otherwise I'd have to go back to windows to do Java programming - blech. I feel more confident now about installing software and what goes where and all that. By the way I just wanted to add that I am very impressed with Mandrake, especially the supermounting of USB drives and all that - I know it spoils newbies like myself because we should learn about mounting before taking it for granted, but it helps not having to learn everything before you can do anything. Mdk 10 makes the transition easy. Good stuff.
 
  


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
How to install the software in a specified directory on a cd? anuode Solaris / OpenSolaris 1 09-17-2005 09:42 AM
software directory drug Linux - Software 4 11-21-2004 03:27 PM
Installing software into a specified directory under knoppix sharpie Linux - Software 3 04-21-2004 06:08 AM
give users permission to install software in their directory? ksgill Linux - Newbie 7 12-17-2003 11:16 AM
Looking for help with a linux software directory dpatty LQ Suggestions & Feedback 2 08-10-2000 06:48 PM

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

All times are GMT -5. The time now is 09:29 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