LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 03:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 07:36 AM   #3
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
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



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 06:52 AM
yum and package installation higlander2011 Linux - Newbie 4 01-23-2012 06:52 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
Remote installation of rpm package (Using YUM) Uday123 Red Hat 7 11-13-2009 06:07 PM
Remote installation of rpm package (Using YUM) Uday123 Linux - Software 1 11-11-2009 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 PM.

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
Open Source Consulting | Domain Registration