Ask Your Question
0

Upgrade from 22 o 27

asked 2017-12-16 09:14:18 -0600

eliassal gravatar image

Hi, I have fedora 22 up and running since a couple of years, can I upgrade directly to 27 or should I upgrade to earlier versions?

edit retag flag offensive close merge delete

Comments

2

You can try but it is going to be faster and more reliable to do a fresh install. Be sure you have a working backup before you try to upgrade

bodhi.zazen gravatar imagebodhi.zazen ( 2017-12-16 11:05:49 -0600 )edit

I was able to go from 25 to 27 on one of my server. I do not know about 22 to 27. You will just if any of the command fails. Have a good backup first !!!! "#" is root's prompt.

This is my how to:

# rpm --rebuilddb
# rpm -Va --nofiles --nodigest
  if anything is too new, do a 
        # dnf downgrade offender(s)

# dnf update --refresh
# dnf install python3-dnf-plugin-system-upgrade
# dnf system-upgrade download --refresh --releasever=27 --allowerasing
# dnf clean packages         <-- optional
# dnf system-upgrade reboot
toddandmargo gravatar imagetoddandmargo ( 2017-12-17 22:05:03 -0600 )edit

I am stuck on the rd step "dnf update...." I get bash: command not found I tried yum install dnf I get No dnf package available Of course I have epel-release-7-11 installed

Thanks for your help

eliassal gravatar imageeliassal ( 2017-12-19 13:13:59 -0600 )edit

Hi, reached step 4 " A message indicated Install 576 Upgrade 2332 Remove 16, I di yes All files were downloaded, 2.4 G in size, at the end I got warning: /var/lib/dnf/system-upgrade/NetworkManager-libreswan-1.2.4-4.fc27.x8664.rpm: Header V3 RSA/SHA256 Signature, key ID f5282ee4: NOKEY Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-x8664 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-x86_64] The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean

eliassal gravatar imageeliassal ( 2017-12-19 16:20:07 -0600 )edit

so what should I do to make it go through?

eliassal gravatar imageeliassal ( 2017-12-19 16:20:47 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2017-12-19 19:52:48 -0600

joefred gravatar image

I just successfully upgraded from 22 to 27!

I tried both methods answered here with no success

My solution.

I booted to live USB and used the manual (custom) option with the Anaconda GUI install app. My 22 was configured with LVM with the system (/) directory spanning 2 physical disks I had to install an additional drive for (/) space. I chose the 2 original drives and the new ssd to "install to" I was able to select /home /boot directories for mounting options but had to create a new system (/) and /swap

The install went fine. Only had to add my users back (kept same names so /home directories worked.

I did mount my old system (/) directory in /tmp

perhaps you could do that and simply copy the configuration files you need to the new system location?

edit flag offensive delete link more
0

answered 2017-12-19 15:41:26 -0600

toddandmargo gravatar image

Hi Eliassal ,

I am writing this is an answer as there is not enough room to write it in the comment section.

This is my notes on upgrading FC22 to FC23. Here is a YUGE leap of faith. Try subsituting "27" in the line that says "--releasever=23". Let us know how it works ou.

-T

How to upgrade Fedora Code (FC) 22 to FC23:

References: 
   http://fedoraproject.org/wiki/FedUp
   http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_19_-.3E_Fedora_20

Fedora 22 -> Fedora 23  Note: "yum" was replaced with "dnf"

Install the new Fedora 23 gpg key and upgrade:

# rpm --import https://fedoraproject.org/static/246110C1.txt
# dnf update
# dnf clean all
# dnf --allowerasing --releasever=23 distro-sync

Note: as of FC24, Fedup is dead, it's been replaced by 

     dnf-plugin-system-upgrade package

see: https://fedoraproject.org/wiki/FedUp (states the transition to dnf )

https://fedoraproject.org/wiki/DNF_system_upgrade
edit flag offensive delete link more
0

answered 2017-12-17 17:46:53 -0600

eliassal gravatar image

I would like to test an upgrade as I have a couple of softwares with lot amount of config, for example Puppet. So what is the steps needed to upgrade to 27, using command line or a gui?

edit flag offensive delete link more

Comments

I just successfully upgraded from 22 to 27!

I tried both methods answered here with no success

My solution.

I booted to live USB and used the manual (custom) option with the Anaconda GUI install app. My 22 was configured with LVM with the system (/) directory spanning 2 physical disks I had to install an additional drive for (/) space. I chose the 2 original drives and the new ssd to "install to" I was able to select /home /boot directories for mounting options but had to create a new system (/) and /swap

The install went fine. Only had to add my users back (kept same names so /home direc

joefred gravatar imagejoefred ( 2017-12-19 19:55:15 -0600 )edit
0

answered 2017-12-20 00:47:57 -0600

eliassal gravatar image

Thanks to all, but I would like a response for the issue "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-x86_64"

Why this is happening? I am logged as root. So if this can be fixed, would update to 27 goes through?

edit flag offensive delete link more

Comments

Hi toddand, I followed those instructions and upgrade went through successfully to 23. So what should be the next step to upgrade to 27? Thanks

eliassal gravatar imageeliassal ( 2017-12-28 06:25:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-12-16 09:14:18 -0600

Seen: 2,811 times

Last updated: Dec 20 '17