LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-15-2009, 06:08 AM   #1
deadeyes
Member
 
Registered: Aug 2006
Posts: 603

Rep: Reputation: 78
using rhel/centos 5 without connection to the internet (yum/rpm question)


Hi all,

I wondered if it is still possible to use yum if you do not have an internet connection for a machine.
Is there any possibility to use yum with a cdrom or a local repository? Or can I use yum in a way so I don't have to resolve dependencies myself?

Thanks in advance
 
Old 10-15-2009, 10:12 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,834

Rep: Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370Reputation: 2370
Quote:
Originally Posted by deadeyes View Post
Hi all,

I wondered if it is still possible to use yum if you do not have an internet connection for a machine.
Is there any possibility to use yum with a cdrom or a local repository? Or can I use yum in a way so I don't have to resolve dependencies myself?

Thanks in advance
Yep, lots of options for setting up a local repository, Google can provide you lots of guides, too. Of course, you'll have to download everything at least once...
 
Old 10-15-2009, 10:49 AM   #3
deadeyes
Member
 
Registered: Aug 2006
Posts: 603

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by TB0ne View Post
Yep, lots of options for setting up a local repository, Google can provide you lots of guides, too. Of course, you'll have to download everything at least once...
If found this:
Quote:
I've a feeling that this is possibly a FAQ . . . if not, it should be.

Please look at the files in your /etc/yum.repos.d/ directory. The one that is relevant to this topic is the CentOS-Media.repo file.

In essence, this is how to proceed --

yum --disablerepo=\* --enablerepo=c5-media <yum_command_and_argument(s)>
Hope it helps someone.
You probably can also disable those normal repos in the config file instead of doing that on the command line (I think in this example the disable has always to be put there)
 
Old 10-16-2009, 07:36 PM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
Yes, that's the first thing I do when I set up a new system. I edit each
repo in each of the files in /etc/yum.repos.d and either enable or disable
each repo as needed.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No module named rpm centos 4 yum dutchy88 Red Hat 6 01-25-2009 03:26 PM
CentOS 5 / RHEL 5 -- YUM updates through proxy. Rush_898 Red Hat 2 11-29-2008 07:44 PM
RHEL 5.2 yum update with CentOS 5.2 repositories- possible? damunzy Linux - Enterprise 4 08-12-2008 02:30 AM
rpm and yum commands failing on CentOS 4.2 amussaw Linux - Newbie 1 03-21-2006 10:06 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 10:53 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration