Upgrading application using source

How do you upgrade the source of a program in Linux? For example, I have installed the source for IPtables on my linux system, but now I want to upgrade to the latest version, what are the way to do this? I know that with distro's like RedHat you can just install the RPM, however, I would like to be able to upgrade by using the source.

-------------------------------------------------------------------

Usually you have to do the following:
1. Download the newest source code to some directory on your computer
2. Using the command prompt, cd into the directory where you put the source code
3. run "make" (or maybe "make all")
4. run "make install"

and voila! Nice and easy...

Note that this is USUALLY the way its done. Always read the "README" file in the main directory where you put the source before compiling, just in case they have any special instructions.

-------------------------------------------------------------------

actually, preceding make, you typically:
ls - see whats there
less README
and/or
less INSTALL

followed by:

./Configure
or
./configure

-------------------------------------------------------------------

You can create your own packages with programs like checkinstall. Then your RPM, TGZ, DEB etc package tool (pkgtool, kpackage etc) can install it for you making it easy to keep track of.

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.