***yum:
If the .rpm package is not on your system, yum will search repositories, download
the package from the internet, and then install it.
If you already have the .rpm file locally, yum can install it, but it will also
check for dependencies in repositories and resolve them.
#yum install <package_name>
#yum update <package_name>
#yum update
//updates all packages on the system
#yum remove <package_name> //uninstall
***rpm:
Does not download anything from the internet.
It will only install an .rpm package from a local file on your system. If
dependencies are missing, it will not resolve them automatically.
#rpm -i <package_name.rpm> //install
#rpm -e <package_name> //uninstall
**alien : converts an .rpm file into a .deb file and vice versa.
#alien package-name.rpm //convert an rpm package to a deb package
#alien --to-rpm package-name.deb //convert a deb package to an rpm package
Note: After conversion, install the converted package using dpkg for .deb or
rpm/yum for .rpm
***download and install from source code
1/Create a directory for source code:
#cd /root
#mkdir src
#cd /root/src
2/Download the source code:
#wget link-of-download
3/Extract the downloaded package:
#tar -xzvf downloaded-package.tar.gz //this creates a downloaded-package directory
4/Enter the package directory:
#cd downloaded-package
5/Configure , compile and install the package:
#./configure
#make
#make install
#man downloaded-package //to check if it was installed successfully