LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   using rhel/centos 5 without connection to the internet (yum/rpm question) (https://www.linuxquestions.org/questions/red-hat-31/using-rhel-centos-5-without-connection-to-the-internet-yum-rpm-question-762056/)

deadeyes 10-15-2009 06:08 AM

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

TB0ne 10-15-2009 10:12 AM

Quote:

Originally Posted by deadeyes (Post 3720122)
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...:)

deadeyes 10-15-2009 10:49 AM

Quote:

Originally Posted by TB0ne (Post 3720374)
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)

carltm 10-16-2009 07:36 PM

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.


All times are GMT -5. The time now is 08:52 PM.