Podman use older Fedora and update

I need to add older version of Fedora (28) and install some apps on it and update it. Is there an archive of latest rpms, so that I can dnf update and dnf install ?

https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/

https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/

2 Likes

but is it possible to have dnf look there, or I need to manually download rpms?

you need to adjust your .repo files (in /etc/yum.repos.d/) to point to that location using the baseurl= line. remove the metalink line or comment it out.
dnf will then work as expected. no need to manuallly download anything.

example; fedora-updates, https://src.fedoraproject.org/rpms/fedora-repos/blob/rawhide/f/fedora-updates.repo.

EDIT: use basurl, not metalink. (archive is coming from main server, not the mirrors)

EDIT 2: Actually, there are also mirrors that provide the archive, see https://mirrors.fedoraproject.org/metalink?repo=updates-released-f28&arch=x86_64. So you can choose to use baseurl or metalink.

That actually means you can install F28 and it should not require any changes to the repo files.

metalink
   <resources maxconnections="1">
    <url protocol="https" type="https" location="DE" preference="100">https://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="DE" preference="100">rsync://ftp-stud.hs-esslingen.de/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="DE" preference="100">http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="UA" preference="99">https://fedora-archive.ip-connect.info/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="UA" preference="99">http://fedora-archive.ip-connect.info/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="UA" preference="99">rsync://fedora-archive.ip-connect.info/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="CN" preference="98">http://mirror.nju.edu.cn/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="CN" preference="98">https://mirror.nju.edu.cn/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="CN" preference="98">rsync://mirror.nju.edu.cn/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="NZ" preference="97">rsync://mirror.2degrees.nz/fedora-buffet/archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="NZ" preference="97">https://mirror.2degrees.nz/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="NZ" preference="97">http://mirror.2degrees.nz/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="US" preference="96">http://mirror.math.princeton.edu/pub/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="US" preference="96">rsync://mirror.math.princeton.edu/pub/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="ID" preference="95">rsync://archivefedora.mirror.angkasa.id/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="ID" preference="95">http://archivefedora.mirror.angkasa.id/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="rsync" type="rsync" location="US" preference="94">rsync://mirror.fcix.net/fedora-buffet/archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="US" preference="94">http://mirror.fcix.net/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="US" preference="94">https://mirror.fcix.net/fedora-archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="US" preference="93">https://d2lzkl7pfhq30w.cloudfront.net/pub/archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="https" type="https" location="US" preference="92">https://dl.fedoraproject.org/pub/archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
    <url protocol="http" type="http" location="US" preference="92">http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/28/Everything/x86_64/repodata/repomd.xml</url>
   </resources>
3 Likes