Quote:
Originally Posted by ravi_nandula
Hi everyone,
As far my knowledge rpm n yum both are used for package management ....but when im using rpm command in RHEL 5 for a particular package is showing the error message..."open of files failed: no such file r directory "....
So my doubt is when I should use rpm n yum....can anyone clearly explain it............
|
YUM will install the packages from the repository. If you search the particular package that you want you install,
Syntax: #yum search <package_name>
It will show you the available packages in the repository.
then you can install this package with yum
Syntax #yum install <package name>
And for rpm, First you try whether the package is there in your system by using
#rpm -qa |grep <package_name>
If not present ..try to download the necessary package from the available sources (depends up on your OS)
then try to install rpm package
#rpm -ivh <package_name>
you can also check #rpm qi <package_name> - will show you the details of installaed packages
and #rpm -ql <package_name> will show you the contents of the package.
YUM - will install automatically with out any dependency....but with rpm..you need to specify if a particular package needs any depedency..
Both are very simple and very helpful to install the packages......
Hope this helps................