LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum repo issue with iso disk1 and disk2 (https://www.linuxquestions.org/questions/linux-software-2/yum-repo-issue-with-iso-disk1-and-disk2-4175452104/)

oly_r 02-28-2013 11:28 AM

yum repo issue with iso disk1 and disk2
 
I have the Centos 6.3 iso's mounted as a loop to 64bitCentOS/disk1 and 64bitCentOS/disk2. the disk 2 iso hasn't been mounted in the past. The yum repo for base

Code:

[base]
name=CentOS-$releasever - Base
baseurl=http://YumSvr/64bitCentOS/disk1
gpgcheck=1
gpgkey=file:///yada/yada/yada/RPM-GPG-KEY-CentOS-6

I've tried a few settings in the repo file including one that seemed to actually work even though it showed an error. That setup is
Code:

[base]
name=CentOS-$releasever - Base
baseurl=http://YumSvr/64bitCentOS/disk1
baseurl=http://YumSvr/64bitCentOS/disk2
gpgcheck=1
gpgkey=file:///yada/yada/yada/RPM-GPG-KEY-CentOS-6

The error i get is:
Code:

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
http://YumSvr/64bitCentOS/disk2/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror
updates
Setting up Install Process
...

Disk2 does not have a repomd.xml so the error is correct. But it then goes on to load the packages that are only in the disk2 Packages. If i leave out any mention of disk2 in the CentOS-Base.repo it shows the disk2 packages (disk1 repodata list them) but fails to find them in disk1's hierarchy.

What is the proper way to point to the disk2 structure (if there is one) since the iso doesn't have a repomd file of its own.

Thanks Rick.

chrism01 02-28-2013 11:12 PM

Basically, you don't need to specify so deep in the dir structure; see this howto https://code.google.com/p/iredmail/w...Yum_Repository

oly_r 03-01-2013 08:56 AM

Thanks, i'll try that.


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