'yum install createrepo' issue

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat 'yum install createrepo' issue
# 1  
Old 07-12-2012
'yum install createrepo' issue

Hi, Here is the issue:

Code:
# yum install createrepo
Warning, could not load sqlite, falling back to pickle
Setting up Install Process
Setting up repositories
file://var/yum_rpm/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/yum_rpm/repodata/repomd.xml'
Trying other mirror.
Cannot open/read repomd.xml file for repository: myrepo
failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.

# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
bugtracker_url=http://bugs.centos.org/yum5bug
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1800
installonly_limit = 5
[myrepo]
name=RHEL 4 $releasever - $basearch
baseurl=file://var/yum_rpm
enabled=1

# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

# ls -l /var/yum_rpm/*.rpm | wc -l
1583

Please help! Thank you all the time!

---------- Post updated at 11:39 AM ---------- Previous update was at 10:37 AM ----------

I've changed the baseurl, but got the same result:

Code:
# grep baseurl /etc/yum.conf
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/Debuginfo/

# yum install createrepo
Warning, could not load sqlite, falling back to pickle
Setting up Install Process
Setting up repositories
ftp://ftp.redhat.com/pub/redhat/linu...ta/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Cannot open/read repomd.xml file for repository: myrepo
failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.


Last edited by Scott; 07-12-2012 at 12:46 PM.. Reason: Use CODE tags not QUOTE tags for CODE...
# 2  
Old 07-12-2012
In the 1st case, you might have copied only the .rpm files from the installation media and not the repomd.xml file that actually contains information about the repository and dependencies etc. To create this file, you need to have the createrepo command installed (you have to use the rpm command and have to install the dependencies manually though. But that's worth it). Post that, you should be able to use your local repository.

In the 2nd case, it's not an error from the yum's end. I have tested this with ftp client and you cannot get past the debuginfo directory without passive mode.
This User Gave Thanks to admin_xor For This Post:
# 3  
Old 07-13-2012
Thank you much for the helpful info!

I've decided to use the old tool up2date instead of yum since the systems need to patch are RHEL 4.
# 4  
Old 08-16-2012
I've found that I still need to solve this issue.

Here is some new stuff:

Quote:
# cd /var/yum_rpm
# createrepo .
1583/1583 - desktop-backgrounds-extra-2.0-26.2.1E.noarch.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata

# yum list
Warning, could not load sqlite, falling back to pickle
Setting up repositories
file://var/yum_rpm/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/yum_rpm/repodata/repomd.xml'
Trying other mirror.
Cannot open/read repomd.xml file for repository: myrepo
failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from myrepo: [Errno 256] No more mirrors to try.
How can I create repomd.xml file by using createrepo?

Thank you!
# 5  
Old 08-19-2012
You have to try with full path name, one of these:
Code:
createrepo `pwd`
createrepo /var/var_rpm

This User Gave Thanks to admin_xor For This Post:
# 6  
Old 08-20-2012
Tried but didn't work either. Thanks.

---------- Post updated at 03:34 PM ---------- Previous update was at 03:08 PM ----------

My mistake: In /etc/yum.conf
baseurl=file://var/yum_rpm should be
baseurl=file:///var/yum_rpm

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. Post Here to Contact Site Administrators and Moderators

Yum install migrationtools

Dear All, Dear Friends, AM installing openldap , during that need to install migrationtools through yum install . But when run the command " yum install migrationtools " its throughin below errors. There is not folder migrationtool is creating as you can see below. Even i tried with... (0 Replies)
Discussion started by: Chand
0 Replies

3. Linux

Issue with yum install migrationtools

Dear Friends, AM installing openldap, during that need to install migrationtools through yum install. But when run the command "yum install migrationtools" its throughin below errors. There is not folder migrationtool is creating as you can see below. Even i tried with -skip-broken that alos... (0 Replies)
Discussion started by: Chand
0 Replies

4. Red Hat

Yum cannot install from repository

Hi guys, thanks for you help on this issue. I built a dvd repository on my server and when I try to install a package from it, I get this error ftp://10.0.0.12/pub/Packages/httpd-2.2.15-26.el6.x86_64.rpm: PYCURL ERROR 9 - "Server denied you to change to the given directory" I will... (2 Replies)
Discussion started by: cjashu
2 Replies

5. UNIX for Dummies Questions & Answers

Trying to install using YUM

Hi, working on CentOS 5.7 64 bit. I need to install syslog-ng. First I downloaded syslog-ng RPM. When I install I get many dependencies error messages. rpm -ivh syslog-ng-3.3.3-1.mga2.x86_64.rpm warning: syslog-ng-3.3.3-1.mga2.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID... (2 Replies)
Discussion started by: samnyc
2 Replies

6. Red Hat

how can i get the install path from yum?

Hello all i install several application using yum in CentOS now i like to see the installed application path's where each component yum downloaded got installed how can i do that ? (1 Reply)
Discussion started by: umen
1 Replies

7. Red Hat

Installing yum and createrepo

Hello all, I'm stuck with a problem on REDHAT Enterprise (uname -r show: 2.4.21-57.ELsmp) The only way to install package is using RPM, but since I'm a newbie I got a lot of dependencies warnings. I installed yum, but the problem now is that I'm not able to create a local repository to install... (6 Replies)
Discussion started by: Lord Spectre
6 Replies

8. Red Hat

createrepo...YUM installation

i have 5 cd's of RHEL 5. how do i know which cd is the createrepo package in... is there any command or flags you can add to rpm command to install and the install processes will automatically ask for certain # of cd... (0 Replies)
Discussion started by: dplinux
0 Replies

9. Linux

[help] can not install KDE by yum

Hi, I installed Fedora 7 without GNOME and KDE from DVD. Using console is not convenient, so I would like to install KDE. I do some step like this: ---------------------------- 1. I use local repository from DVD: /mnt/dvd 2. from command windown: # yum groupinstall KDE ..................... (1 Reply)
Discussion started by: kholostoi
1 Replies

10. Linux

install yum

I have a centos 4.x box and for some reason yum is not installed on it. Is there a howto on how to do this? thanks! (3 Replies)
Discussion started by: mcraul
3 Replies
Login or Register to Ask a Question