LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   package installation through YUM (https://www.linuxquestions.org/questions/linux-newbie-8/package-installation-through-yum-4175458268/)

vikashjai 04-16-2013 01:01 AM

package installation through YUM
 
i hav a cnfusion..... suppose i hav a package in my system locally (copied frm rhel6 dvd to /opt folder ) n i want to install it.....in dis case, is it compulsry to create local file (like local.repo) in /etc/yum.repos.d/ to install it....? ....can not i directly install it using command "yum install /opt/Packages/<package-name>.rpm"....reply plz...

acid_kewpie 04-16-2013 03:29 AM

yes, you can do exactly what you suggested. Did you not try it?? Also you can run rom directly.... "rpm -Uvh thatfile.rpm"

Madhu Desai 04-16-2013 07:36 AM

Quote:

Originally Posted by vikashjai (Post 4932204)
can not i directly install it using command "yum install /opt/Packages/<package-name>.rpm"

Yes, you can. In fact, Redhat recommends to install that way. But what happens when it has dependencies? If you have local repo, then dependencies are taken from that repo, else it is downloaded and installed from 'base' repo.


All times are GMT -5. The time now is 06:50 AM.