LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2013, 02:01 AM   #1
vikashjai
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Question 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...
 
Old 04-16-2013, 04:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yes, you can do exactly what you suggested. Did you not try it?? Also you can run rom directly.... "rpm -Uvh thatfile.rpm"
 
1 members found this post helpful.
Old 04-16-2013, 08:36 AM   #3
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by vikashjai View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum package installation problem lalit singhania Linux - Server 1 10-26-2012 07:52 AM
yum and package installation higlander2011 Linux - Newbie 4 01-23-2012 07:52 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 02:51 AM
Remote installation of rpm package (Using YUM) Uday123 Red Hat 7 11-13-2009 07:07 PM
Remote installation of rpm package (Using YUM) Uday123 Linux - Software 1 11-11-2009 07:31 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration