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


  Search this Thread
Old 10-17-2003, 05:51 AM   #1
Registered: Jul 2003
Posts: 123

Rep: Reputation: 15
How new program Install works in Linux?

Most of the Windows user know that when we install new program, it install itself in directory "program file" it also copies some necessary files and information to windows system (32) directory and windows registry.

What about the Linux? When I install some new program either from script or RPM, where files get installed. How can I know that which file is part of which installation? How can I remove unwanted files, broken links and not working programs without hurting others (files/program)? How can I know which file depend on which? Is there anything like Linux file cleaner (alternative of regclean of Windows)?
Is there any graphical user interface (like Windows Add/Remove program) in Linux?
Donít talk about Red Hat Package Manager (RHPM)? Because it only shows add/remove for companiesí software. I installed RealPlayer, MPlayer, etc on Red Hat 9 Linux and these software are now not shown in RHPM.

Old 10-17-2003, 06:26 AM   #2
Registered: Apr 2002
Location: Malaysia
Distribution: Slackware 12.1 & ArchLinux
Posts: 87

Rep: Reputation: 15
if you use package management programs (like rpm or pkgtool) you can use the uninstall options ...

if you wanna compile from source , you can delete the directories/files where the program resides

basically most programs are installed in your $PATH
Old 10-17-2003, 06:32 AM   #3
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
You can use synaptic to get a GUI for RPM/APT - currently the area of software installation on Linux is still being worked on heavily, and a lot of stuff you are used to from Windows is lacking.

Having said that, when you use RPMs you can get file lists, see dependencies, get file information etc from the command line
Old 10-17-2003, 06:42 AM   #4
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
If you have a RedHat system it's worth knowing about rpms for this issue. A great place to start for information about that is "man rpm". But the most important commands for your questions are...

rpm -qi <package> // Tells you what the package is for.
rpm -ql <package> // Tells you what files are in the package
rpm -qf <file> // Tells you what package a file belongs to
rpm -qR <package> // Tells you what other packages this package need.

As for scripts (I guess you mean tarballs, .tgz, tar.gz), they're generally installed to somewhere like /usr/local/bin. You can check this by unpacking them and looking.

gunzip <file> // Uncompresses the tarball
tar -tvf <file> // Lists the files in the tarball

Usually the files will be installation scripts rather than the program itself and almost always, there's a file called something like README. If you look at that file, it will tell you more about where the program (and all it's associated files) will be installed. It will also tell you what you might have to do to configure it, and how to uninstall it.

As for clearing up files and links, I'd be careful about that. You can probably delete anything under /usr/local, or /opt without doing much damage, but I'd leave anything under any of the other top level directories alone, unless you know what it is and what it's for.

Bearing the above in mind, to get rid of realplayer and mplayer, just find them and delete them.

locate -u
locate -i realplayer

It won't hurt to look for readme files first

locate -i realplay | grep -i readme


Last edited by jkobrien; 10-20-2003 at 12:22 PM.
Old 10-19-2003, 09:52 AM   #5
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Good advice jkobrien. Thanks


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
simple mail program works on windows and not on linux naijaguy Linux - General 1 04-21-2005 09:45 PM
What program/plugin in Linux works well for streaming audio/video? squirrels Linux - Newbie 7 06-10-2004 01:05 PM
How to install any Linux program? rivers21 Linux - Newbie 8 01-07-2004 05:54 PM
install program in linux leva Linux - Newbie 8 11-24-2003 03:51 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-15-2003 12:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 PM.

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