Click to See Complete Forum and Search --> : installation folder
hi
i never knew where my redhat9 install all my packages.. i mean after installing my divx player, alsa player, and mpg123 player... how do i locate where linux install them ? and is there any way to make a shortcut to these program..? and how to run these program?
thanx in advance
nextbillgates
07-12-2003, 02:53 AM
Unlike Windows, Linux program usually don't install in just one directory. Program libraries will be in /usr/lib/, the binary in /usr/bin, the documentation in /usr/share/doc, etc.
To locate a program, use the whereis command, eg whereis mpg123
Making a shotcut depends on what Desktop Environment you use. As Red Hat's default DE is Gnome, I'm assuming you're using that. On the desktop and panel, you can create a shortcut by right-clicking and selecting New Launcher. In the menu, you can create a shortcut by right-clicking anywhere within one of the menu catagories, selecting entire menu, and then selecting Add new item to this menu. Red Hat is pretty good about creating links for programs that need them, so unless you're installing a program from source or through a non-RPM binary, you usually won't need to create links.
Running the program is as easy as clicking on the link or typing in the program name in the terminal.
mdwatts
07-12-2003, 04:02 AM
If installed by rpm, list the files installed by the rpm package.
rpm -ql <packagename>
i.e.
rpm -ql mpg123
zachngo
07-12-2003, 04:41 AM
i know for a fact that after you make install mpg123, it tells you exactly where it puts its binaries and docs
Zach
I'd locate it using whereis -b mpg123
mdwatts
07-12-2003, 08:32 AM
The only problem with 'whereis' is that it only searches the directories defined in the users PATH variable.
echo $PATH
And then that sometimes confuses some users as they think it's not installed.
jglen490
07-12-2003, 10:00 PM
You can always use find to locate a specific filename or program name. If you run it as root, you won't get a lot of "access denied" messages.
Do the following in a terminal:
su -
<Enter root password at the prompt>
find / -name mpg123
After find is done, and if you are done as root:
exit
The / after find, tells find to start at the root directory, the -name says to search for a file name, and of course mpg123 is the name you're searching for.