Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I followed this https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_17_-.3E_Fedora_18 guide to upgrade my Fedora 17 to 18.

All was fine until I issued su -c 'yum --releasever=18 --disableplugin=presto distro-sync -y'. My PuTTY disconnected. Obviously it is because Cleanup: openssh-server-5.9p1-22.fc17.x86_64 306/574

How can I skip OpenSSH during the distro-sync so my upgrade works fine?

share|improve this question
2  
yum has a --exclude=[package] option which exclude package from updating, but not sure if it works with distro-sync. anyway, even if it works, will openssh-server-fc17 works on Fedora 18? remotely upgrade is some kind of dangerous which can cause out of control –  LiuYan 刘研 Dec 17 '12 at 4:38
    
I issue su -c 'yum --releasever=18 --disableplugin=presto --exclude=openssh* distro-sync -y' its succeed until end of the process after reboot what @LiuYan刘研 worried about is true. openssh-server-fc17 NOT working on Fedora 18. –  RiseCakoPlusplus Dec 17 '12 at 5:54
add comment

4 Answers

up vote 2 down vote accepted

Install a separate ssh daemon - either another copy of OpenSSH or e.g. Dropbear - into the system, possibly into /opt or $HOME, run it on a different port. Also run the update in a virtual terminal multiplexer (tmux, screen..) to prevent troubles resulting from losing/dropping the connection halfway through the upgrade.

Using statically linked binaries for both the extra ssh daemon and the virtual terminal multiplexer would make sense as well in this case.

share|improve this answer
add comment

I would also reccomend running inside a screen or tmux session. However, have you ever looked at FedUp to upgrade from F17 to F18? I gave it a try to upgrade my system, entirely remotely, and it worked.

share|improve this answer
add comment

Why cant you use fedup or preupgrade followed by upgrade? These are standard upgrade methods.

Fedora update = fedup.

share|improve this answer
add comment

I had to deal with this since upgrade form F15. Just upgrade openssh-server beforehand:

yum -y remove openssh-server\
&& yum -y --releasever=18 install openssh-server\
&& service sshd restart

You can do it safely over ssh. And then you can run the upgrade as usual:

yum -y --releasever=18 --disableplugin=presto distro-sync
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.