On Tue, 22 Oct 2024 at 10:20, Samuel Sieb <[email protected]> wrote: > On 10/22/24 2:14 AM, ToddAndMargo via users wrote: > > In file /etc/yum.repos.d/fedora.repo, > > > > metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora- > > $releasever&arch > > > > Where does the "$releasever" come from? how can > > I reproduce it from the command line? (It is different > > than /etc/redhat-release.) > > I believe that, unless you override it on the command line, it takes the > release version of the "fedora-release-common" package. > > I once had an issue where an interrupted upgrade left two versions of > that package and I had to remove the older one before dnf would use the > right release. >
https://unix.stackexchange.com/questions/19701/yum-how-can-i-view-variables-like-releasever-basearch-yum0/317487#317487 looks useful. I get the following on an f40 system: wmcdonald@fedora:~$ python3 -c 'import dnf, pprint; db = dnf.dnf.Base(); pprint.pprint(db.conf.substitutions,width=1)' {'arch': 'x86_64', 'basearch': 'x86_64', 'releasever': '40', 'releasever_major': '40', 'releasever_minor': ''}
-- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
