How to find old RPMs?

General support questions
jake1138
Posts: 11
Joined: 2015/04/16 23:41:51

How to find old RPMs?

Postby jake1138 » 2017/09/14 17:46:14

I need to download RPMs for currently installed versions. Is there an official place to find old RPMs? Just as an example, if I have iperf-2.0.8-1.el7.x86_64 currently installed and the repo has iperf-2.0.10-1.el7.x86_64, how do I get the 2.0.8-1 version so I can install that offline on another CentOS box? It's not in my yum cache. Only the latest version is found in the EPEL repo. This is true for packages found in Base, Update, and Extras as well. Are the old versions archived somewhere? Or am I forced to download them from a third party (rpmfind, pbone, etc)?

Sometimes I can find the older version of an RPM at http://mirror.centos.org/centos/ even though yumdownloader doesn't find it. But that's not the case for all RPM's.

User avatar
avij
Forum Moderator
Posts: 2138
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: How to find old RPMs?

Postby avij » 2017/09/14 17:53:16


User avatar
avij
Forum Moderator
Posts: 2138
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: How to find old RPMs?

Postby avij » 2017/09/14 17:58:44

Well, EPEL is different, and it's not managed by CentOS.

You may be able to find some (but not necessarily all) packages from EPEL's build system. https://bodhi.fedoraproject.org/updates/?packages=iperf lists the updates, and by following the links there you end up to https://koji.fedoraproject.org/koji/bui ... dID=627522 which has download links to packages.

User avatar
TrevorH
Forum Moderator
Posts: 20958
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to find old RPMs?

Postby TrevorH » 2017/09/14 18:49:05

iperf3 shouldn't be in EPEL any more as it's now part of the main distro.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

jake1138
Posts: 11
Joined: 2015/04/16 23:41:51

Re: How to find old RPMs?

Postby jake1138 » 2017/09/14 19:40:42

avij wrote:http://vault.centos.org/

I forgot to mention that I already checked there as well. It does not have any binary RPMs for 7.3.1611. But even if it did (let's say 7.4 came out and they started putting binary RPMs there), I assume they would still be the latest versions. That assumption is based on what they have for 7.2.1511. They have only one version of each RPM which is likely the last version they made for that given distro version.

So this begs the question: What do they do with the old RPM's that they replace in the repos? Surely, they're archived somewhere!

User avatar
avij
Forum Moderator
Posts: 2138
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: How to find old RPMs?

Postby avij » 2017/09/14 19:52:46

The vault does not yet have 7.3.1611's binary packages, because those are still on mirror.centos.org. At some point the 7.3.1611's binary packages will be moved over to the vault.

http://vault.centos.org/7.2.1511/os/x86_64/Packages/ has only one version of each package, because that is a snapshot of the tree at release time, and only the latest versions were obviously included.

http://vault.centos.org/7.2.1511/update ... /Packages/ has all the updates that were released during 7.2.1511, and you will see that there are multiple versions for many packages.

In short, if a package was at some point released by CentOS, you will find it from vault.centos.org or mirror.centos.org. Those packages will not be deleted because they're old. You can even get CentOS 2.1 packages if you still need them.

This should answer the question about CentOS packages. 3rd party repositories such as EPEL have their own archival policies.

jake1138
Posts: 11
Joined: 2015/04/16 23:41:51

Re: How to find old RPMs?

Postby jake1138 » 2017/09/14 19:55:05

TrevorH wrote:iperf3 shouldn't be in EPEL any more as it's now part of the main distro.

Well iperf was just an example and I didn't even mention iperf3 but it is a package that I have installed and I found that it was no longer available. I assumed it was, as you said, now included in the latest version of the iperf package.

On a related note, below are all the packages that were not found by using yumdownloader, and when that failed, wget from the repo mirror (mirror.centos.org). I don't understand why yumdownloader doesn't find it even though it's there in the repo mirror.

NOT FOUND: daq-2.0.6-1.x86_64 iperf-2.0.8-1.el7.x86_64 iperf3-3.1.6-1.el7.x86_64 iptables-1.4.21-17.00.el7.centos.x86_64 iptables-devel-1.4.21-17.00.el7.centos.x86_64 libnetfilter_queue-1.0.2-2.el7.x86_64 libnetfilter_queue-devel-1.0.2-2.el7.x86_64 nasm-2.12.02-2.fc26.x86_64 python2-rpm-macros-3-10.el7.noarch python-rpm-macros-3-10.el7.noarch python-srpm-macros-3-10.el7.noarch

So unless someone knows of an official place to find the above files, I'll have to resort to third party sites which introduces some level of risk. I typically grab the same RPM from several places and make sure they all have the same checksums.

User avatar
avij
Forum Moderator
Posts: 2138
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: How to find old RPMs?

Postby avij » 2017/09/14 20:16:22

Let's see..

daq: EPEL, current version, available here: http://dl.fedoraproject.org/pub/epel/7/x86_64/d/ -- your package does not have the .el7. tag, is this a local rebuild or something?
iperf: EPEL, old version, available here: https://koji.fedoraproject.org/koji/bui ... dID=627522
iperf3: EPEL, old version, available here: https://koji.fedoraproject.org/koji/bui ... dID=839615
iptables: Hmm .. I'm not sure if that's a version published by CentOS at all. If you have a system where you have that particular package installed, rpm -qi iptables-1.4.21-17.00.el7.centos should show information about the package, including Vendor, Packager and Build host.
libnetfilter: same thing as above
nasm: That's a Fedora package. You should not install Fedora packages on CentOS. CentOS 7.4.1708 has nasm-2.10.07-7.el7.x86_64.
python*-macros: EPEL, old version, available here: https://koji.fedoraproject.org/koji/bui ... dID=793620

jake1138
Posts: 11
Joined: 2015/04/16 23:41:51

Re: How to find old RPMs?

Postby jake1138 » 2017/09/14 20:54:34

You're right, there are multiple versions for packages in the "updates" and "extras" directories, even for 7.3.1611 on mirror. I'm not sure how I missed that.

As for the odd versioning you're seeing, I'll need to look into that. A couple of other people have root access to the system in question. I'll see if I can track down the who, what, and where of all this. Thanks for your help.

desertcat
Posts: 172
Joined: 2014/08/07 02:17:29

Re: How to find old RPMs?

Postby desertcat » 2017/09/17 02:39:33

jake1138 wrote:I need to download RPMs for currently installed versions. Is there an official place to find old RPMs? Just as an example, if I have iperf-2.0.8-1.el7.x86_64 currently installed and the repo has iperf-2.0.10-1.el7.x86_64, how do I get the 2.0.8-1 version so I can install that offline on another CentOS box? It's not in my yum cache. Only the latest version is found in the EPEL repo. This is true for packages found in Base, Update, and Extras as well. Are the old versions archived somewhere? Or am I forced to download them from a third party (rpmfind, pbone, etc)?

Sometimes I can find the older version of an RPM at http://mirror.centos.org/centos/ even though yumdownloader doesn't find it. But that's not the case for all RPM's.


OK I'm going to bite: WHY would you want an OLD version of a package? We are now in CentOS 7.4. The more recent releases of these packages have security updates as well has bug fixes, so why stick with an older package. Makes no sense.