LinuxQuestions.org
Visit Jeremy's Blog.
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 05-24-2006, 06:43 AM   #1
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Rep: Reputation: 15
Talking How to manage program (package) 'locations'


Hi there!
This is a REALLY newbie question...

See, I have installed the Fedora Core 5 as an alternative system to WinXP.

BUT: in my (Windows-based) mind, programs can be installed anywhere across the various file-systems. As a default, Win installs them in C:\Windows\Programs\..., but I am used to arranging them more rationally, when on installing programs ask me.

In a Linux system, I cannot understand "where" packages are installed (on the disk). For example, I have installed the Opera browser package. Everything has been carried out properly, but I just can't find the new Opera directory with the executable file. As a consequence, I am not able to manage installations, not create icons on the desktop with the right address.

Can anybody please clarify this? Thank you!
 
Old 05-24-2006, 06:52 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
i always let it install to where its supposed to.

if you do
Code:
echo $PATH
it'll show you your path, these are the directories the shell looks in when running a command. If you type say
Code:
ope
then hit tab it will autocomplete if it finds a match if this is the case the nit is in one of the directories returned by path (probably /usr/bin anyway).

There are also some search programs you can use:

slocate
Code:
man slocate
locate
Code:
man locate
find -
Code:
man find
 
Old 05-24-2006, 06:54 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
some packages like openoffice, java and such function in an insular monolithic kind of way. these applications typcially install everything into a single location, convetionally /opt/. this is about as close to "Program Files" as you'll get. Other applications do not exist in any particular location. binaries go to one place, documentation goes to another, libraries to another, configuration files etc... I don't know how Opera works in this respect, as it kinda hovers inbetween the two, but i'd not be suprised if they were in /opt/opera or similar.

Obviously you are on a learning curve with linux but you need to not expect things to work like windows, and not to look at differences automatically as a deficiency [ C: ?? what the hell does C: mean??? ]. your reference to icons and shortcuts is unfounded for a start. linux makes proper use of path statements and environmental variables. as such a standard applications binaries will be found on the system path. you do not need to care where something is installed to, you'd just run it, .e.g. just enter "firefox" and firefox browser should start.
 
Old 05-24-2006, 07:47 AM   #4
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
FWIW, "whereis" locates executables. So "whereis konqueror" will tell you where the executable is:

chuck@tbird:~$ whereis konqueror
konqueror: /opt/kde/bin/konqueror

But you have to know what the name of the executable is:

chuck@tbird:~$ whereis writer
writer:
chuck@tbird:~$ whereis oowriter
oowriter:
chuck@tbird:~$ whereis OpenOffice*
OpenOffice*:
chuck@tbird:~$ whereis openoffice.org-2.0 -writer
openoffice.org-2: /usr/bin/openoffice.org-2.0 /usr/bin/openoffice.org-2.0-printeradmin

Only the last one gave me an answer. I had to go to the KDE Menu and look at the properties of the OpenOffice Writer item to get the name of the package.

Good luck.

C
 
  


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
what package does a program belong to? eantoranz Ubuntu 4 08-11-2005 03:28 PM
lftp dependencies RH9, package manage? malaka56 Linux - Software 1 07-09-2005 07:56 AM
need simple program to manage a mailing list linuxlimbo Linux - Software 0 12-21-2004 05:30 AM
mandrake package-manage santiagosilva Mandriva 1 02-12-2004 08:07 AM
package/program manager for x??? debian_devil Linux - General 1 01-22-2002 12:28 PM

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

All times are GMT -5. The time now is 08:35 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
Open Source Consulting | Domain Registration