Listing 6.x source rpm(s) from 5.x shell

Issues related to software problems.
sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/18 14:00:54

I want to 'yum list' the newest source RPMS at

http://vault.centos.org/6.2/os/Source/

But I cannot find the checksum file in

http://vault.centos.org/6.2/os/Source/repodata/

I setup and repo as such:

[Source]
name=Source Packages for Enterprise Linux 6
baseurl=http://vault.centos.org/6.2/os/Source
#failovermethod=priority
#gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/
enabled=1
priority=10
protect=0

Get checksum error with simple:

# /usr/bin/yum --disablerepo=fasttrack list qt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.san.fastserv.com
* centosplus: mirror.singleedge.com
* epel: epel.mirror.freedomvoice.com
* epel-source: epel.mirror.freedomvoice.com
* epel-testing: epel.mirror.freedomvoice.com
* epel-testing-source: epel.mirror.freedomvoice.com
* extras: mirror.singleedge.com
* rpmforge: ftp-stud.fht-esslingen.de
* rpmforge-extras: ftp-stud.fht-esslingen.de
* updates: centos-distro.cavecreek.net
Source | 3.2 kB 00:00
Source/primary_db | 703 kB 00:01
http://vault.centos.org/6.2/os/Source/repodata/49a5f1125b92525806a6f81bc1776fbcb142a0fab88eeeb659b73d679a1eef58-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Source/primary_db | 703 kB 00:01
http://vault.centos.org/6.2/os/Source/repodata/49a5f1125b92525806a6f81bc1776fbcb142a0fab88eeeb659b73d679a1eef58-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/49a5f1125b92525806a6f81bc1776fbcb142a0fab88eeeb659b73d679a1eef58-primary.sqlite.bz2 from Source: [Errno 256] No more mirrors to try.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Listing 6.x source rpm(s) from 5.x shell

Post by pschaff » 2012/01/18 19:21:09

I don't think the CentOS-6 metadata is compatible with CentOS-5 yum. Even on CentOS-6 there are errors trying to access with yumdownloader. All I can suggest is to browse the tree.
/etc/yum.repos.d/CentOS-Source.repo:
[code]
[os-source]
name=Source Packages for Enterprise Linux 6.2
baseurl=http://vault.centos.org/6.2/os/Source
enabled=0
priority=1

[updates-source]
name=Updates Source Packages for Enterprise Linux 6.2
baseurl=http://vault.centos.org/6.2/updates/Source
enabled=0
priority=1

[extras-source]
name=Extras Source Packages for Enterprise Linux 6.2
baseurl=http://vault.centos.org/6.2/extras/Source
enabled=0
priority=1

[centosplus-source]
name=Centos Plus Source Packages for Enterprise Linux 6.2
baseurl=http://vault.centos.org/6.2/centosplus/Source
enabled=0
priority=1
[/code]
# yumdownloader --source --disablerepo \* --enablerepo os,os-source,updates,updates-source kernel
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
Could not download/verify pkg kernel-2.6.32-220.2.1.el6.src: failed to retrieve SPackages/kernel-2.6.32-220.2.1.el6.src.rpm from updates-source
error was [Errno 2] Local file does not exist: /root/nique-md-filenames/SPackages/kernel-2.6.32-220.2.1.el6.src.rpm

:-(

http://bugs.centos.org/view.php?id=5440

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/21 12:55:59

Is there any published information about this "metadata incompatile" issue? I am getting errors just trying to list 6.x package versions! I tried using both mirrorlist and baseurl below.

# wget http://mirror.centos.org/centos/6.2/os/i386/RPM-GPG-KEY-CentOS-6
sudo rpm --import RPM-GPG-KEY-CentOS-6

sudo vi /etc/yum.repos.d/CentOS6-Base.repo
# CentOS6-Base.repo
#
[os6]
name=CentOS-6 - Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/6/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
priority=2
protect=1

sudo /usr/bin/yum --disablerepo \* --enablerepo os6 list bzip2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* os6: mirror-la.7x24web.net
os6 | 3.7 kB 00:00
os6/primary_db | 3.5 MB 00:03
http://mirror-la.7x24web.net/centos/6.2/os/i386/repodata/48da39a2e80a927a88946a36c63414964312e64f85c7b32c3ce553d2969f46d6-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
os6/primary_db | 3.5 MB 00:02
http://mirror.5ninesolutions.com/centos/6.2/os/i386/repodata/48da39a2e80a927a88946a36c63414964312e64f85c7b32c3ce553d2969f46d6-primary.sqlite.bz2: [Errno -3] Error performing checksum

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/21 13:01:27

I am wonder why there are no .repo files in
http://mirror.centos.org/centos/6.2/os/i386/

[DIR] Parent Directory -
[TXT CentOS_BuildTag 17-Dec-2011 04:13 14
[TXT] EULA 09-Dec-2011 07:57 212
[TXT] GPL 09-Dec-2011 07:57 18K
[DIR] Packages/ 16-Dec-2011 18:52 -
[TXT] RELEASE-NOTES-en-US.html 09-Dec-2011 07:58 1.3K
[ TXT] RPM-GPG-KEY-CentOS-6 09-Dec-2011 07:57 1.7K
[ TXT] RPM-GPG-KEY-CentOS-Debug-6 09-Dec-2011 07:57 1.7K
[ TXT] RPM-GPG-KEY-CentOS-Security-6 09-Dec-2011 07:57 1.7K
[ TXT] RPM-GPG-KEY-CentOS-Testing-6 09-Dec-2011 07:57 1.7K
[DIR] images/ 14-Dec-2011 21:59 -
[DIR] isolinux/ 12-Dec-2011 21:38 -
[DIR] repodata/ 20-Dec-2011 15:25 -

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by pschaff » 2012/01/21 13:28:15

http://mirror.centos.org/centos/6.2/os/i386/Packages/centos-release-6-2.el6.centos.7.i686.rpm
[code]# rpm -ql centos-release
/etc/centos-release
/etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Security-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Testing-6
/etc/redhat-release
/etc/rpm/macros.dist
/etc/system-release
/etc/system-release-cpe
[b][color=ff0000]/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Debuginfo.repo
/etc/yum.repos.d/CentOS-Media.repo[/color][/b]
/usr/share/doc/centos-release-6
/usr/share/doc/centos-release-6/EULA
/usr/share/doc/centos-release-6/GPL
/usr/share/doc/redhat-release
[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by pschaff » 2012/01/21 13:36:38

[quote]
sturdyworks wrote:
Is there any published information about this "metadata incompatile" issue?[/quote]
http://docs.redhat.com/docs/en-US/index.html

What are you trying to accomplish here? Hopefully [b]not[/b] installing CentOS-6 packages on CentOS-5. If you want to explore CentOS-6 without installing why not try the LiveCD/DVD? That is part of their purpose. Alternatively you could install in a [url=http://wiki.centos.org/HowTos#head-fb1ff7e71fb5f2f511cda8c68cb6ba5f6e8decae]virtual machine[/url].

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/21 15:32:07

I need to clarify a bit. I was hoping to find actual .repo files in the directory structure. I wanted these, and wanted to understand why the were missing because I found an interesting yum plugin named yum-plugin-tmprepo.

wget http://mirror.centos.org/centos/6.2/os/i386/Packages/yum-plugin-tmprepo-1.1.30-10.el6.noarch.rpm
rpm -qip yum-plugin-tmprepo-1.1.30-10.el6.noarch.rpm
Name : yum-plugin-tmprepo Relocations: (not relocatable)
Version : 1.1.30 Vendor: CentOS
Release : 10.el6 Build Date: Wed 07 Dec 2011 01:07:42 PM PST
Install Date: (not installed) Build Host: c6b18n2.bsys.dev.centos.org
Group : System Environment/Base Source RPM: yum-utils-1.1.30-10.el6.src.rpm
Size : 36838 License: GPLv2+
Signature : RSA/SHA1, Thu 08 Dec 2011 01:45:36 PM PST, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem
URL : http://yum.baseurl.org/download/yum-utils/
Summary : Yum plugin to add temporary repositories
Description :
This plugin adds the option --tmprepo which takes a url to a .repo file
downloads it and enables it for a single run. This plugin tries to ensure
that temporary repositories are safe to use, by default, by not allowing
gpg checking to be disabled.

Thank you for pointing out that file named centos-release-6-2.el6.centos.7.i686.rpm though and for showing its content. Obviously I do not want to download and install this file because it would overright my existing 5.x /etc/yum.repos.d/CentOS-Base.repo, etc., etc. BUT I can do a `rpm2cpio centos-release-6-2.el6.centos.7.i686.rpm |cpio -id` to grab the repo text.

It would be better if RHEL/CentOS provided some actual .repo files in the directory structure so that we do not always have to create .repo files in /etc/yum.repos.d/ but mainly I just want to setup a new CentOS-6x-Base.repo file and do a quick `yum --disablerepo \* --enablerepo os6 list "yum-plugin*" or even better "yum --disablerepo \* --enablerepo os6 info "yum-plugin-tmprepo"

BTW there are no yum-plugin* packages in 5.x, and all yum-plug* packages in 6.x are of type "noarch"

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/21 15:43:43

Oh, that was funny, pointing me to the docs http://docs.redhat.com/docs/en-US/index.html I hope one day I can return the favor.

I opened this thread because I wanted to seach for src.rpm and found out there is some sort of bug right now in CentOS 6.x, so I went on to test simple search on regular RPMs, and still no luck--did get a line on those docs though :-)

My overall goal is to learn how to install src.rpm on my VPS, and BTW I am using a VMware Workstation on Windows with a CentOS install that mimics my VPS.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by pschaff » 2012/01/21 16:25:15

[quote]
sturdyworks wrote:
I opened this thread because I wanted to seach for src.rpm and found out there is some sort of bug right now in CentOS 6.x[/quote]
I have seen no evidence of a bug in this thread, other than the [url=http://bugs.centos.org/view.php?id=5440]report[/url] I created for the metadata issue. Inability to use CentOS-5 yum on CentOS-6 packages is not a bug.

[quote]
... I am using a VMware Workstation on Windows with a CentOS install that mimics my VPS.[/quote]
That ought to make it pretty easy to build a CentOS-6 instance and avoid all the issues with EL6 rpm incompatibilities and metadata on CentOS-5.

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: Listing 6.x source rpm(s) from 5.x shell

Post by sturdyworks » 2012/01/21 23:19:05

I was going to actually use the src.rpm on my 5.x VM not just look at it :-) It is annoying to have to go through the steps of searching for an src.rpm, right click on copy link location, and then wget with the link.

It doesn't even look like the 6.2 src.rpm work on 5.x either. What a waste. The open source community goes though all the work to create rmpbuild and such and RHEL produces src.rpm that can't even produce a library on previous release of their own system, let allone BSD or and such. I have read all the docs and thing the Owl River reference is good "The RPM Package Manager is one of several approaches to adding better tools to manage the use of the code tarballs may produce, for more systematic (and thus, accurate) system administration. It allows managing and solving at a high level, complex package interdependencies (shared libraries and such), to permit validation that a system has not been tampered with, and to make possible complex provisioning, and life-cycle build qualification, security, 'Change Control', and maintenance."

Except between 5x & 6x (har har)

I have always used ./configure make. I a developer. I am trying to use RPMs to get the latest version of software and the whole system just seems to be c**p.

Why shouldn't this work?

mockbuild$ cd ~/build/libotf
mockbuild$ wget ... libotf-0.9.9-3.1.el6.src.rpm
mockbuild$ rpmbuild --rebuild libotf-0.9.9-3.1.el6.src.rpm
error: unpacking of archive failed on file /home/build/rpmbuild/SOURCES/libotf-0.9.9.tar.gz;4f1b4778: cpio: MD5 sum mismatch
error: libotf-0.9.9-3.1.el6.src.rpm cannot be installed

What some super secret version of md5sum is being used? Stupid!

Post Reply