LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-11-2012, 01:08 AM   #1
benardkichakuri
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Creating Local Yum Repository in Oracle Linux 6


I created a local yum repository for my Oracle Linux 6 installation, but keep getting the error below whenever I user the 'yum clean all' command:

[Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server'

The command I used to copy the packages from the oracle linux dvd to the local directory is:

# rsync -av /media/OL6.0\ x86_64\ Disc\ 1\ 20110203/ /repos/oraclelinux6

Could this be the problem? If not, then what could be?
 
Old 06-11-2012, 12:38 PM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
After you downloaded the packages did you run the createrepo command?
I doubt this has anything to do with the packages, but rather how the repo was created.
Also, just to verify after you downloaded the packages how did you setup your .repo file in /etc/yum.respo.d/? Is it still pointing to the disc or did you point it at the new repo location?

For example --
in /etc/yum.repos.d/ we have a file called myrepo.repo
The contents of the file look like this:
Code:
[myRepo]
name=myRepo
baseurl=ftp://xxx.xxx.xxx.xx/pub/repoA/RPM/UPDATES
enabled=1

[oldRepo]
name=oldRepo
baseurl=ftp://xxx.xxx.xxx.xx/pub/repoA/RPM/OLD
enabled=0
Now to actually create the repo - from the server you would download the rpms to a folder (in example above folder would be /var/ftp/pub/repoA/RPM/UPDATES) and from within the folder you want to run --

Code:
[root]# createrepo -d .
This command should build a new database and xml files required for the repo server.

Hopefully this helps.
 
Old 06-21-2012, 03:01 PM   #3
benardkichakuri
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks! I am now sorted!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Local Repository srinivasmmdl Linux - Newbie 2 04-23-2012 09:25 PM
LXer: Creating A Local Yum Repository (CentOS) LXer Syndicated Linux News 0 06-18-2007 08:01 AM
Problem creating local Yum Repository DirkDiggler Linux - Software 1 05-25-2007 01:04 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM


All times are GMT -5. The time now is 10:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration