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
Solved

CentOS 5 : How to use YUM without internet connection

Posted on 2012-04-11
5
1,859 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Red Hat 7 Linux on Azure cannot run a command as root 22 52
open source backup solution 1 36
Authenticate using sesu from script 7 56
Samba Question 11 75
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

856 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