Most modern distributions are based on RPM packages. In an RPM-based system, it is preferred to install software via RPM, if available. Note, however, that the package you are installing should match your distribution. To find packages for your distribution, use rpmfind.net which lets you search for packages based on package name, or a file included in the package.
The RPM system is designed to make software work correctly by the use of dependancies. RPM automatically detects and reports conflicts, asking you to download and install additional packages to satisfy package dependancies.
To install a package, issue the command rpm -Uvh packagename.rpm, for example:
[root@localhost alon]# rpm -Uvh foobar-1.0-3mdk.i586.rpm
Preparing... ########################################### [100%]
1:foobar ########################################### [100%]
[root@localhost alon]#
On a Mandrake system, you can check and satisfy dependancies by using urpmi - the Mandrake package tool. To install, simply type urpmi packagename, for example:
[root@localhost alon]# urpmi locales-ru
Please insert the medium named "disc 1 Download Edition Installation CD (x86)
(cdrom1)" on device [/dev/scsi/host0/bus0/target0/lun0/cd]
Press Enter when it's done...
installing /mnt/cdrom/Mandrake/RPMS/locales-ru-2.3.1.2-8mdk.i586.rpm
Preparing... ##################################################
locales-ru ##################################################
[root@localhost alon]#
To uninstall, use rpm -e packagename. For example:
[root@localhost alon]# rpm -e locales-ru
[root@localhost alon]#