Sponsored Content
Operating Systems Linux Red Hat Installing yum and createrepo Post 302467956 by Lord Spectre on Monday 1st of November 2010 05:08:41 AM
Old 11-01-2010
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 package (the machine is not connected to internet).

I created all the yum related directories (/var/yum/5Server/Server) and pu the rpm into "Server". I also create e repodata directory.

Now I need to use createrepo app, but I'm not able to install it. I'm getting crazy since using RPM I received a lot of errors/dependencies warnings (see below).

Could someone advice on how install createrepo and on how update the outdated yum installation???


Code:
rpm -i createrepo-0.9.6-3_10.el4.noarch.rpm 
warning: only V3 signatures can be verified, skipping V4 signature
error: Failed dependencies:
        /usr/bin/python2.3 is needed by createrepo-0.9.6-3_10.el4
        python(abi) = 2.3 is needed by createrepo-0.9.6-3_10.el4
        yum >= 3.2.20 is needed by createrepo-0.9.6-3_10.el4
        yum-metadata-parser is needed by createrepo-0.9.6-3_10.el4
        

rpm -i yum-3.2.22-20.el5.noarch.rpm         
warning: yum-3.2.22-20.el5.noarch.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        python >= 2.4 is needed by yum-3.2.22-20.el5
        python(abi) = 2.4 is needed by yum-3.2.22-20.el5
        python-iniparse is needed by yum-3.2.22-20.el5
        python-sqlite is needed by yum-3.2.22-20.el5
        rpm >= 0:4.4.2 is needed by yum-3.2.22-20.el5
        yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-20.el5

        
rpm -i yum-metadata-parser-1.1.2-3.el5.x86_64.rpm
warning: yum-metadata-parser-1.1.2-3.el5.x86_64.rpm: V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        libc.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libglib-2.0.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libm.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libpthread.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libsqlite3.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libxml2.so.2()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        libz.so.1()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5
        python(abi) = 2.4 is needed by yum-metadata-parser-1.1.2-3.el5
        rtld(GNU_HASH) is needed by yum-metadata-parser-1.1.2-3.el5

 

10 More Discussions You Might Find Interesting

1. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies

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

3. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

4. Red Hat

help with YUM

Hi All, Just installed new Redhat server. I am trying to do rhn_register. I get this error message. Fatal error: The SSL certificate failed verification. Any one ran into this error. Please let me know. I do have internet connection- ping www.google.com PING... (1 Reply)
Discussion started by: samnyc
1 Replies

5. Red Hat

'yum install createrepo' issue

Hi, Here is the issue: # 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: OSError: No such file or directory: '/yum_rpm/repodata/repomd.xml' Trying other mirror. Cannot... (5 Replies)
Discussion started by: aixlover
5 Replies

6. Red Hat

Issue installing pam-1.1.1-10.el6.i686 using yum

When trying to install pam-1.1.1-10.el6.i686 package using yum, we are getting the following error message. We also noticed that there is an existing pam-1.1.1-10.el6.x86_64 is already installed (checked through "rpm -qa | grep pam-1.1.1-10.el6"). Is there a way to resolve/work around this issue. ... (4 Replies)
Discussion started by: talk1234
4 Replies

7. SuSE

Createrepo & reposync packages

Hi guys, I have a SUSE 10 box and is missing 2 commands: reposync createrepo When I try to search for these using zypper : server:/tmp # zypper search createrepo Restoring system sources... Not found: Media Exception Not found: Media Exception /repodata/repomd.xml (http://<REPO>)... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

8. SuSE

'createrepo' not found on SLES 10.3

Hello All, I'm trying to configure a SLES 10.3 machine as our Zypper server. I created the zypper directories with all the RPMs, made the directory structure accessible over HTTP but I'm stuck at the final stage: createrepo. Looks like 'createrepo' is not present on this version :confused: ... (3 Replies)
Discussion started by: satish51392111
3 Replies

9. Linux

Need help on YUM

HI, First I'll use yum check-update to check any updates. Q1: How can I know that how much space needed to update all packages listed by yum check-update command? Q2: How can I list kernel related packages? TIA (2 Replies)
Discussion started by: Sumanthsv
2 Replies

10. 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
createrepo(8)															     createrepo(8)

NAME
createrepo - Create repomd (xml-rpm-metadata) repository SYNOPSIS
createrepo [options] <directory> DESCRIPTION
createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms. OPTIONS
-u --baseurl <url> Optional base url location for all files. (not used by any clients at this time) -o --outputdir <url> Optional output directory (useful for read only media). -x --exclude <package> File globs to exclude, can be specified multiple times. -i --pkglist <filename> specify a text file which contains the complete list of files to include in the repository from the set found in the directory. File format is one package per line, no wildcards or globs. -q --quiet Run quietly. -g --groupfile <groupfile> A precreated xml filename to point to for group information. See examples section below for further explanation. -v --verbose Run verbosely. -c --cachedir <path> Specify a directory to use as a cachedir. This allows createrepo to create a cache of checksums of packages in the repository. In consecutive runs of createrepo over the same repository of files that do not have a complete change out of all packages this decreases the processing time dramatically. --update If metadata already exists in the outputdir and an rpm is unchanged (based on file size and mtime) since the metadata was generated, reuse the existing metadata rather than recalculating it. In the case of a large repository with only a few new or modified rpms this can significantly reduce I/O and processing time. -C --checkts Don't generate repo metadata, if their timestamps are newer than its rpms. This option decreases the processing time drastically again, if you happen to run it on an unmodified repo, but it is (currently) mutual exclusive with the --split option. --split Run in split media mode. Rather than pass a single directory, take a set of directories corresponding to different volumes in a media set. -p --pretty Output xml files in pretty format. -V --version Output version. -h --help Show help menu. -d --database Generate sqlite databases for use with yum. EXAMPLES
Here is an example of a repository with a groups file. Note that the groups file should be in the same directory as the rpm packages (i.e. /path/to/rpms/comps.xml). createrepo -g comps.xml /path/to/rpms FILES
repodata/filelists.xml.gz repodata/other.xml.gz repodata/primary.xml.gz repodata/repomd.xml SEE ALSO
yum (8) yum.conf (5) AUTHORS
Seth Vidal <skvidal@phy.duke.edu> BUGS
Any bugs which are found should be emailed to the mailing list: rpm-metadata@linux.duke.edu Seth Vidal 2005 Jan 2 createrepo(8)
All times are GMT -4. The time now is 03:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy