Solved

CentOS 5 : How to use YUM without internet connection

Posted on 2012-04-11
5
2,020 Views
Last Modified: 2012-04-12
Hello Experts,

I want to do a cluster CentOS on my Vmware Workstation but I don't have internet access for my virtual machines.


I have modifed the etc/yum.repos.d/CentOS-Bas to make sure that the YUM command install the necessary packages  directly from the CentOS dvd.

baseurl parameter
Unfortunately , after this modification I have the error bellow when I try to type the command YUM

yum command error
Can You please help
0
Comment
Question by:cismoney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 37833098
You don't have internet access? In case you're behind a proxy, you can fix that by editing /etc/yum.conf and adding proxy server and credentials, like this:

proxy=http://pro.xy.com:port
proxy_username=your proxy username
proxy_password=your proxy password
0
 
LVL 31

Expert Comment

by:farzanj
ID: 37833128
In baseurl, you have to give path of directory that has the xml file.  Look for repomd.xml.  Give path of directory that contains this file.
0
 
LVL 44

Assisted Solution

by:Darr247
Darr247 earned 100 total points
ID: 37833279
You can also put the files you want to install in  
/var/cache/yum/[$basearch]/[$releasever]/[reponame]/
and run
# yum -C install (or groupinstall) [package or group names to install]

The -C (note upper-case) makes it operate only from cache and not try to go online to update its database files.

You might want to set keepcache=1 in  /etc/yum.conf so it doesn't delete the packages as soon as it's done installing them, too.
0
 
LVL 8

Assisted Solution

by:fundacionrts
fundacionrts earned 200 total points
ID: 37834456
Take a look to this URL

http://www.cyberciti.biz/faq/centos-linux-install-packages-from-dvd-using-yum/

Here the author explains what you want to do.
0
 
LVL 7

Accepted Solution

by:
Milind Koyande earned 200 total points
ID: 37836715
You can create a local Yum Repository by copying all the content of DVD to your local system drive. For more information and steps to create local Yum repository on your system please check URL: http://eitwebguru.com/how-to-create-local-yum-repository/
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question