Hi,
I am trying to create a YUM Repository from my Oracle Linux 6-5 districution disk.
I have copied the entire contents of my Linux 6-5 DVD onto my server under /hime/media/Linux6-5
Q1. Is it necessary to copy the entire contents or can I copy only selected directories eg Server ?
I then ensure there is a single *.repo file in /etc/yum.repos.d
In this case I have named the file oracle.repo
The contents of this file are as such
[ol6_u5_base]
name=Oracle Linux Update 5 installation media copy
baseurl=file:///home/media/Linux6-5/Server/
enabled=1
gpgcheck=0
Q2. I have seen some notes that suggest enabled should be 0 ? What does enabled do and should it be 0 or 1 ?
When I try -
yum repolist
I get the following error
file:///home/media/Linux6-5/Server/repodata/8a5154448bb61d3535bd6b228a86cfaf6de1325142097ebcbbbbef53a87e2135-primary.sqlite.bz2: [Errno 14] Could not open/read file:///home/media/Linux6-5/Server/repodata/8a5154448bb61d3535bd6b228a86cfaf6de1325142097ebcbbbbef53a87e2135-primary.sqlite.bz2
When I check the directory /home/media/Linux6-5/Server/repodata I see
-rw-r--r--. 1 root root 934231 Mar 12 14:21 3c92e7d016322254443f13b51f48e80e214a434bc3d372f1028f595978d6c504
-rw-r--r--. 1 root root 3443218 Mar 12 14:21 48dc1d543ec8948e2e0775e4f43cc4155f9cd55f8188bf32a7d9e4b714e5043f
-rw-r--r--. 1 root root 1435622 Mar 12 14:21 4b6bbf8157c14dfc298b8cce0a0e5d8878cb52e5ebc225c7dc8a778dee36b220
-rw-r--r--. 1 root root 3321769 Mar 12 14:21 64f872fde7eaabb84baee6b612457836cdce6f91b1e4664212f5a00832ce1486
-rw-r--r--. 1 root root 3141379 Mar 12 14:21 8a5154448bb61d3535bd6b228a86cfaf6de1325142097ebcbbbbef53a87e2135
-rw-r--r--. 1 root root 1335926 Mar 12 14:21 928e89f2310cd8b00998369d9346c8729ba84e2d883180337fbaad349aabbf73
-rw-r--r--. 1 root root 207533 Mar 12 14:21 a5ab978abd30c319056028e220545fe6e78dd179d1370331231ba8e240ee9d56
-rw-r--r--. 1 root root 1127970 Mar 12 14:21 d085c284f2a5e5563820cd60b552a5cecef09e2ee7337e030c8a2a2252e4d929
-rw-r--r--. 1 root root 3825 Mar 12 14:21 repomd.xml
-rw-r--r--. 1 root root 2581 Mar 12 14:21 TRANS.TBL
It looks as if the full names which occur in repomd.xml have been truncated to the above
When I check the Linux 6-5 DVD that I burned, it likewise has the names truncated as above
Q2. Has this truncation occurred at the burning stage ?
Q3. Do I need to edit the repomd.xml file to reflect the truncated file names or is it better to rename the files to the longer names as found in the repomd.xml file ?
any advice greatly appreciated
Jim