Solved

CentOS 5 : How to use YUM without internet connection

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

Expert Comment

by:Gerwin Jansen
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now