LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 05:56 AM   #1
yasasvi srikanth
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
Unable to use YUM command by using repository of unconnected computer


Dear friend,
The os I am using is RHEL5.

I have problem in using installation by "yum command"

I have saved all the pakages present on the Server folder of RHEL5-DVD on
"/repo". And I have Edited the yum configuration file and given the "base url as:///repo" and "enabled = 0" .

Now when I use the command "yum install packagename", It is giving me an error message .
 
Old 09-11-2009, 06:04 AM   #2
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
please post the message
 
Old 09-11-2009, 06:04 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
care too tell us what that error message actually is, or is it secret?
 
Old 09-11-2009, 06:04 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by yasasvi srikanth View Post
I have saved all the pakages present on the Server folder of RHEL5-DVD on "/repo". And I have Edited the yum configuration file and given the "base url as:///repo" and "enabled = 0".
Unless you missed some information on what you've exactly done, this is not the correct way to create a local repository. First you have to create the metadata for your local repository using the command createrepo (maybe you have to previously install it):
Code:
createrepo /repo
then you have to add a custom repository file in /etc/yum.repos.d/. For example name it RHEL-Local.repo and put something like:
Code:
[localrepo]
name=RHEL-$releasever - Local Repository
baseurl=file:///repo/
enabled=1
gpgcheck=0
Hope this helps!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
unable to install vlc using yum command av.dubey Linux - Newbie 13 11-12-2009 10:19 PM
Unable to install packages from YUM repository ( RHEL5 ) saagar Linux - Newbie 7 01-07-2009 09:55 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
Yum repository (dries) unable to update due to disk crash O(V)eGA_l2el) Fedora 6 11-09-2007 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration