FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I change the releasever variable

    I was doing a preupgrade from f12 to f13. That was interrupted by a power cut. When I tried to redo it by booting from the grub option, it failed (can't remember the error). I then re-ran preupgrade, but got the "the root for the previously installed system was not found" error even though the UUID was correct and even when I referenced the partion by device - /dev/sda14.

    So I decided to go old school:
    1. yum update
    2. change the repos manually to reference f13
    3. yum update

    So as it stands these are seemingly the only remaining f12 packages
    Code:
    # yum list | grep fc12 | grep installed
    bea-stax.x86_64                           1.2.0-0.5.rc1.fc12           installed
    bea-stax-api.x86_64                       1.2.0-0.5.rc1.fc12           installed
    gtkimageview.x86_64                       1.6.3-2.fc12                 installed
                                              1:195.36.31-1.fc12           installed
    libEMF.x86_64                             1.0.4-1.fc12                 installed
    libwpg.x86_64                             0.1.3-4.fc12                 installed
    nas-libs.x86_64                           1.9.1-6.fc12                 installed
    portaudio.x86_64                          19-9.fc12                    installed
    pstoedit.x86_64                           3.45-9.fc12                  installed
    smp_utils.x86_64                          0.94-3.fc12                  installed
    telepathy-filesystem.noarch               0.0.2-1.fc12                 installed
    but i am guessing due to the interrupted preupgrade, the releasever variable has not been updated. How can I manually do that?
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    As far as I know, yum gets it's $releasever info from /etc/fedora-release. What do you get with,
    Code:
    rpm -q fedora-release
    ls /etc/*release
    cat /etc/*release

  3. #3
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    The output is below
    Code:
    main ~ # rpm -q fedora-release
    fedora-release-12-2.noarch
    fedora-release-13-1.noarch
    Code:
    main ~ # ls /etc/*release
    /etc/fedora-release  /etc/redhat-release  /etc/system-release
    Code:
    main ~ # cat /etc/*release
    Fedora release 13 (Goddard)
    Fedora release 13 (Goddard)
    Fedora release 13 (Goddard)
    Code:
    main ~ # echo $releasever
    A further interrogation of fedora-release shows
    Code:
    main ~ # yum list fedora-release
    Installed Packages
    fedora-release.noarch                               12-2                               @updates 
    fedora-release.noarch                               13-1                               installed
    And the main reason why I want to make the change
    Code:
    main ~ # yum repolist
    repo id                            repo name                                              status
    fedora                             Fedora 12 - x86_64                                     20,840
    livna                              rpm.livna.org for 12 - x86_64                               3
    rpmfusion-free                     RPM Fusion for Fedora 12 - Free                           457
    rpmfusion-free-updates             RPM Fusion for Fedora 12 - Free - Updates                 865
    rpmfusion-nonfree                  RPM Fusion for Fedora 12 - Nonfree                        156
    rpmfusion-nonfree-updates          RPM Fusion for Fedora 12 - Nonfree - Updates              302
    updates                            Fedora 12 - x86_64 - Updates                            8,755
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    Hmmm... updating to fedora-release-13-1.noarch package should have replaced the fedora-release-12-2.noarch package. I suppose the interrupted preupgrade caused that mis-fire. Installing the -13 release file should/would have overwritten most of the -12 release files, including the repo files. You try,

    yum erase fedora-release-12-2.noarch

    You might want to first download and have on hand the fedora-release-13-1.noarch.rpm package, just in case.

    I just did this,
    Code:
    BASH:~/-> rpm -ql fedora-release
    /etc/fedora-release
    /etc/issue
    /etc/issue.net
    /etc/pki/rpm-gpg
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc64
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
    /etc/redhat-release
    /etc/rpm/macros.dist
    /etc/system-release
    /etc/system-release-cpe
    /etc/yum.repos.d
    /etc/yum.repos.d/fedora-rawhide.repo
    /etc/yum.repos.d/fedora-updates-testing.repo
    /etc/yum.repos.d/fedora-updates.repo
    /etc/yum.repos.d/fedora.repo
    /usr/share/doc/fedora-release-12
    /usr/share/doc/fedora-release-12/GPL

  5. #5
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    I get the below
    Code:
    main ~ # rpm -ql fedora-release
    /etc/fedora-release
    /etc/issue
    /etc/issue.net
    /etc/pki/rpm-gpg
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-ppc64
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
    /etc/redhat-release
    /etc/rpm/macros.dist
    /etc/system-release
    /etc/system-release-cpe
    /etc/yum.repos.d
    /etc/yum.repos.d/fedora-rawhide.repo
    /etc/yum.repos.d/fedora-updates-testing.repo
    /etc/yum.repos.d/fedora-updates.repo
    /etc/yum.repos.d/fedora.repo
    /usr/share/doc/fedora-release-12
    /usr/share/doc/fedora-release-12/GPL
    /etc/fedora-release
    /etc/issue
    /etc/issue.net
    /etc/pki/rpm-gpg
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-13-SPARC
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-13-primary
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc64
    /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
    /etc/redhat-release
    /etc/rpm/macros.dist
    /etc/system-release
    /etc/system-release-cpe
    /etc/yum.repos.d
    /etc/yum.repos.d/fedora-updates-testing.repo
    /etc/yum.repos.d/fedora-updates.repo
    /etc/yum.repos.d/fedora.repo
    /usr/share/doc/fedora-release-13
    /usr/share/doc/fedora-release-13/GPL
    So i decided to reboot into the f13 kernel. last time i tried NetworkManager wasn't giving me a network connection even though its status was running. The second boot however seems to have gone without a hitch.

    yum repolist still shows references to f12 (and it is use $releasever and $basearch) for the various repos.

    So I did a yum clean all and yum repolist, and part of the return is
    Code:
    fedora                                                                   | 4.2 kB     00:00     
    http://ftp.sun.ac.za/ftp/pub/mirrors/fedora/releases/12/Everything/x86_64/os/repodata/5cba24ab31a5e98f382ac49c9fffbe443749e889a777e0dbc4aa70d20104d20b-primary.sqlite.bz2: [Errno 14] HTTP Error 200 : http://ftp.sun.ac.za/ftp/pub/mirrors/fedora/releases/12/Everything/x86_64/os/repodata/5cba24ab31a5e98f382ac49c9fffbe443749e889a777e0dbc4aa70d20104d20b-primary.sqlite.bz2


    ---------- Post added at 09:58 PM CDT ---------- Previous post was at 09:31 PM CDT ----------

    yum reinstall fedora-release and a reboot did the trick
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

  6. #6
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    Good. I did a test try of "yum erase fedora-release" just now and it wanted to take out 192 other packages with it. I was going to suggest a 'yum reinstall fedora-release' and a reboot next, but you beat me to it.

  7. #7
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I change the releasever variable

    Quote Originally Posted by PabloTwo
    Good. I did a test try of "yum erase fedora-release" just now and it wanted to take out 192 other packages with it. I was going to suggest a 'yum reinstall fedora-release' and a reboot next, but you beat me to it.
    yeah i tried the remove first and it also wanted to wipe a chunk of the system.

    edit: what does the below mean
    Code:
    Installed Packages
    yum-plugin-fastestmirror.noarch                    1.1.26-1.fc12                     @updates/12
    yum-plugin-fastestmirror.noarch                    1.1.27-2.fc13                     installed
    are both packages installed?

    ---------- Post added 2010-08-01 at 02:14 AM CDT ---------- Previous post was 2010-07-31 at 10:02 PM CDT ----------

    another thing I had not used my F12 install since soon after f12 was releasee
    Last edited by Jongi; 31st July 2010 at 09:14 PM.
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

Similar Threads

  1. yum --releasever=13 upgrade fail
    By jack dollhausen in forum Using Fedora
    Replies: 5
    Last Post: 15th June 2010, 10:50 PM
  2. Wrong $releasever after update
    By andreabondi in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 9th March 2007, 11:10 AM
  3. Variable change via web interface...?
    By bigdollarnets in forum Servers & Networking
    Replies: 0
    Last Post: 17th January 2006, 05:39 PM
  4. Yum update: $releasever value is wrong
    By vanyell in forum Using Fedora
    Replies: 6
    Last Post: 9th February 2005, 09:38 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •