LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 07: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, 07:04 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:55 PM
unable to install vlc using yum command av.dubey Linux - Newbie 13 11-12-2009 11:19 PM
Unable to install packages from YUM repository ( RHEL5 ) saagar Linux - Newbie 7 01-07-2009 10:55 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 03:19 PM
Yum repository (dries) unable to update due to disk crash O(V)eGA_l2el) Fedora 6 11-09-2007 07:28 AM


All times are GMT -5. The time now is 05:11 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration