Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-11-2012, 01:08 AM   #1
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
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:

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 --

[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
LQ Newbie
Registered: Mar 2012
Posts: 2

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


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration