Ashok forced the electrons to say:
> I do all these. But I don't know if an installation was successful or not.
Usually, make install installs program files under /usr/local/bin, program
shared files in /usr/local/share, and configuration files in /etc or /usr/etc.
You can take a look at the o/p of make install to see where stuff is getting
installed. I usually do ./configure --prefix=/usr to get things in /usr/bin
rather than /usr/local/bin. Also, when I am installing from tar.gz's, I do a
make install &> /var/pkgs/<package name>
So that I can always have a list of all the stuff that got installed.
> If successful, how to start these programs ?
Simply by typing /usr/local/bin/<program name>
> If unsuccessful, will
> deleting the newly created directory undo all the changes that were brought
> about by running tar, configure, make and make install ? If not, how to
No. If only a part of the package got installed, they will remain
there. You will have to individually remove files installed by the package
and the changes done to your system by the installation of your program
(removing the lines added /etc/services by the package, for example).
> undo these changes. And if I find the program unsatisfactory, how do I
> uninstall it ? And lastly, how to upgrade a program. Is the procedure as
> simple as it is with RPMs.
With tar.gz's, you only have the brute force technique. Save the o/p of
make install, and then try to uninstall from there. Some makefiles provide
for a make uninstall, but I don't know how reliable it is. Similarly,
running make install in a later version of the package usually overwrites
the earlier version, if all the configuration parameters are exactly
the same.
It is to avoid all these problems that RedHat designed RPM. :-)
Binand
--
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])
-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/