PDA

View Full Version : upgrading from 1 to 2 with yum


Lennart
21st May 2004, 07:29 PM
Hi guys. Hope someone can help me out here cause I'm going bunkers.
Just installed Fedora and I'm sold on the looks that's for sure. As for the workings I haven't really found them out yet so I'm sort of undecided yet but I really hope I find them out pretty soon.

tried up2date. It worked. After updating it didn't work anymore. No error messages, no messages whatsoever. It just won't react.

Thougt to give yummie a go. Went "yum update" and away it went . Went on for a couple of hours without ever updating very much. Found out that I had to do some yum.conf-ing and after that (to make a long story short) at least it gave it a try.

Everything came to an abrubt stop after it decided there was a gstreamer package that needed a libdv.so.2 (or something). Read somewhere that I had to try with exclude =gimp (or something like that), but that didn't really work. Tried installing libdv099, didn't work either.

Now, I anyway want to upgrade to version 2 so, is there anyone who can tell me in some detail, how to change my yum.conf so I can do that. (I've already learned that all it takes is a "yum upgrade" so I think I can manage that bit.
Any and all help will be much appreciated.

ilja
21st May 2004, 07:33 PM
man yum says this :
upgrade
Can take packages as arguments, upgrade is just like update
except that it includes package obsoletes in its calculations -
this makes it better for distro-version changes, for example:
upgrading from somelinux 8.0 to somelinux 9. *deprecated* - this
command may be removed in the future.


But I think the better way is to upgrade with apt. It is tested more often and more proper. The command is apt dist-upgrade.

Lennart
21st May 2004, 08:02 PM

Thanks Ilja.
Tried "yum install apt".
Answer:
.....Unable to satisfy dependencies
Package apt needs librpm-4.2.so, this is not available.
Package apt needs librpmdb-4.2.so, this is not available.
Package apt needs librpmio-4.2.so, this is not available.
Package libapt-pkg needs librpm-4.2.so, this is not available.
Package libapt-pkg needs librpmdb-4.2.so, this is not available.
Package libapt-pkg needs librpmio-4.2.so, this is not available.

ilja
21st May 2004, 08:08 PM
Do you have fedora.us as repro ?

Lennart
21st May 2004, 08:21 PM
I don't know what that means but this is my yum.conf and I'm living in Sweden:

# yum.conf - Fedora. Mirrors. Stable packages. GPG keys and package examples.
# (c) 2004 Tero Karvinen http://iki.fi/karvinen
# Some Scandinavian mirrors from Matti Niinikoski 2004
# Some foreign mirrors from Maxwell Kanat-Alexander 2004 and "Web Augur"
# Free software under the GNU General Public License GPL

# To use Tero's yum.conf
# su -
# cd /etc/
# mv yum.conf old-yum.conf
# wget http://iki.fi/karvinen/yum.conf
# rpm --import http://fedora.redhat.com/about/security/4F2A6FD2.txt
# rpm --import http://www.fedora.us/FEDORA-GPG-KEY
# rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
# yum -y update
# Have some coffee while your system is being updated. (30 min - hours)

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
# commands= # default commands if non given on command line
# http keepalive, disable if you have problems with a proxy:
keepalive=1
retries=6
#exclude=kernel # RPMs that are not updated. Space separated list, globs *?
# Manually compiled kernel modules usually work with one kernel version only

# Yum repositories.
# Put gpgcheck=1 to each to verify package authenticity.
# failovermethod=priority # tries first baseurl, then second...
# failovermethod=roundrobin # default, tries baseurls in random order
# $releasever # defined by distroverpkg in [main], eg. "1"
# $arch # processor, eg. "i686"
# $basearch # base type for processor, eg. "i386" (if your $arch is i686)

### Official Fedora Core / Fedora Project RPMs - http://fedora.redhat.com

[base]
name=Fedora Core $releasever - $basearch - Base - Official RPMs, the same ones that are in installer cd-roms
baseurl=
ftp://ftp.funet.fi/pub/linux/mirrors/fedora/linux/core/1/i386/os/
http://mirrors.kernel.org/fedora/core/1/i386/os/
ftp://ftp.sunet.se/pub/Linux/distributions/fedora/core/1/i386/os/
ftp://ftp.surfnet.nl/pub/os/Linux/distr/fedora/1/i386/os/
ftp://ftp.uio.no/pub/Linux/Fedora/core/1/i386/os/
http://ftp.dulug.duke.edu/pub/fedora/linux/core/1/i386/os
ftp://linux.stanford.edu/pub/mirrors/fedora/linux/core/1/i386/os
http://fedora.redhat.com/releases/fedora-core-1
ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/redhat/1/i386/yum/os/
http://mirrors.usc.edu/pub/linux/fedora/redhat/1/i386/yum/os/
http://download.fr.fedora.us/fedora/redhat/1/i386/yum/os/
http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/redhat/1/i386/yum/os/
http://wftp.tu-chemnitz.de/pub/linux/fedora/redhat/1/i386/yum/os/
ftp://ftp.g-int.net/apt/redhat/1/i386/yum/os/
http://fedora.quicknet.nl/fedora/redhat/1/i386/yum/os/
http://ftp.iasi.roedu.net/mirrors/fedora.us/fedora/redhat/1/i386/yum/os/
failovermethod=priority
gpgcheck=1
# Has eg. ethereal ethereal-gnome nmap nmap-frontend gcc httpd squirrelmail imap php gaim
# rpm --import http://fedora.redhat.com/about/security/4F2A6FD2.txt

[updates-released]
name=Fedora Core 1 - i386 - Released Updates - Official update RPMs from Fedora Project
baseurl=
ftp://ftp.funet.fi/pub/linux/mirrors/fedora/linux/core/updates/1/i386/
http://mirrors.kernel.org/fedora/core/updates/1/i386
ftp://ftp.uio.no/pub/Linux/Fedora/core/updates/1/
ftp://ftp.sunet.se/pub/Linux/distributions/fedora/core/updates/1/i386/
ftp://ftp.surfnet.nl/pub/os/Linux/distr/fedora/updates/1/i386/
http://speakeasy.rpmfind.net/linux/fedora/core/updates/1/i386
http://ftp.dulug.duke.edu/pub/fedora/linux/core/updates/1/i386
ftp://linux.stanford.edu/pub/mirrors/fedora/linux/core/updates/1/i386
http://fedora.redhat.com/updates/released/fedora-core-1
ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/redhat/1/i386/yum/updates/
http://mirrors.usc.edu/pub/linux/fedora/redhat/1/i386/yum/updates/
http://download.fr.fedora.us/fedora/redhat/1/i386/yum/updates/
http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/redhat/1/i386/yum/updates/
http://wftp.tu-chemnitz.de/pub/linux/fedora/redhat/1/i386/yum/updates/
ftp://ftp.g-int.net/apt/redhat/1/i386/yum/updates/
http://fedora.quicknet.nl/fedora/redhat/1/i386/yum/updates/
http://ftp.iasi.roedu.net/mirrors/fedora.us/fedora/redhat/1/i386/yum/updates/
failovermethod=priority
gpgcheck=1
# Has eg. lftp openssh openssh-server wget curl postfix
### Third party RPMs, various projects and packagers
# rpm --import http://fedora.redhat.com/about/security/4F2A6FD2.txt

# Fedora Core test/development packages have other keys, see
# http://fedora.redhat.com/about/security/

[fedora-us-stable]
name=Fedora.us Extras (Stable) - Third party RPMs by many authors
baseurl=
http://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/stable
http://fedora.quicknet.nl/fedora/fedora/1/i386/yum/stable
http://download.fedora.us/fedora/fedora/1/i386/yum/stable
failovermethod=priority
gpgcheck=1
# Has eg. thunderbird MozillaFirebird nethack-falconseye neverball xmule
# rpm --import http://www.fedora.us/FEDORA-GPG-KEY

[freshrpms]
name=FreshRPMs - Stable - Third party RPMs by Mathias Saou
baseurl=
http://ayo.freshrpms.net/fedora/linux/1/i386/freshrpms/
http://ftp.us2.freshrpms.net/linux/freshrpms/ayo/fedora/linux/1/i386/freshrpms/
failovermethod=priority
gpgcheck=1
retries=1
# Has eg. sylpheed ogle ogle_gui mplayer-mencoder ltris neverball
# xmms-mp3 gstreamer-plugins-extras gstreamer-plugins-mp3
# rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable) - Third party RPMs with non-Free licenses, patents...
baseurl=http://rpm.livna.org/fedora/1/i386/yum/stable
failovermethod=priority
retries=0
gpgcheck=1
# Has eg. xmms-mp3 mplayer mplayer-mencoder ogle ogle_gui gstreamer-plugins-mp3
# rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

[atrpms-stable]
name=ATrpms - Stable
baseurl=
http://apt.physik.fu-berlin.de/fedora/1/en/i386/at-stable
http://ftp-stud.fht-esslingen.de/atrpms/download.atrpms.net/fedora/1/en/i386/at-stable
http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/1/en/i386/at-stable
gpgcheck=1
# rpm --import http://atrpms.physik.fu-berlin.de/RPM-GPG-KEY.atrpms

[macromedia]
name=macromedia.mplug.org - Flash Plugin - Closed source plugin for web embedded interactive animations
baseurl=http://macromedia.mplug.org/apt/fedora/1
http://sluglug.ucsc.edu/macromedia/apt/fedora/1
http://ruslug.rutgers.edu/macromedia/apt/fedora/1
http://macromedia.rediris.es/apt/fedora/1
gpgcheck=1
# Has flash-plugin

### Local repository, copy RPMs to baseurl, cd baseurl and yum-arch .
#[my-rpms]
#name=myrpms-local
#baseurl=file:///root/myrpms/
#gpgcheck=1

### Notes
# Using yum:
# yum -y install sylpheed # Install a program, -y answers "yes" to all questions
# yum list "*ssh*" # lists packages that have "ssh" in the name
# find /var/cache/yum -iname "*ssh*" # other way to find ssh
# chkconfig yum on # make yum update all programs every night
# yum remove up2date # remove a program, dependencies handled
# Upgrading between major versions (Red Hat 9 to Fedora Core 1):
# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/yum-2.0.4-2.noarch.rpm
# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/fedora-release-1-3.i386.rpm
# yum upgrade
# Fix some conflicts/requires dependences like: yum remove pine
# About yum: man yum ; man yum.conf ; http://linux.duke.edu/projects/yum/
# Lists of repositories (places to add to yum.conf):
# http://fedora.artoo.net/faq/samples/yum.conf
# http://www.kolumbus.fi/matti.niinikoski/yum.conf (link currently down)
# http://www.webaugur.com/bibliotheca/linux/yum.conf
# Notes:
# Baseurl is url to the the directory where you can see "headers" directory.
# If you are behind a proxy: export http_proxy="http://www-cache.helia.fi:8000"
# Packages that are not found in these mirrors yet:
# catdoc soffice2html zoo calc lufs httrack psi icewm vobcopy
# rhl-ig rhl-rg rhl-cg rhl-sap rhl-sg soikko soikko-oo tmispell
# TODO:
# Yum repository of missing packages.
# GPG keys checking with a computer that has none installed. (Fedora base / updates?)
# Mirros listed in fastest first order. (automate speed test with bash and curl)
# done: Use $arch, $releasever... in all baseurls.
# This yum.conf and many other linux articles http://iki.fi/karvinen/

ilja
21st May 2004, 08:33 PM
yes you've got fedora.us repos.

Try yum install librpm
will it work?

Lennart
21st May 2004, 08:47 PM
No, cannot find a package matching librpm.

ilja
21st May 2004, 09:13 PM
It seems you are not the only one with the problem http://www.redhat.com/archives/fedora-devel-list/2004-April/msg00150.html

//edit:
Do you have rpm properly installed ?
you can find the librpm package here :
http://rpmfind.rediris.es/rpm2html/fedora-os-i386/rpm-4.2.1-0.30.i386.html

Lennart
21st May 2004, 09:33 PM
It is installed. How do I check if properly or otherwise?

Lennart
21st May 2004, 09:37 PM
anyway, rpm or not, could you maybe just point out to me how to do this yum upgrade? That's anyway what i want to do so I have a feeling that anything I do before that is rather a waste of time.

ilja
21st May 2004, 09:38 PM
It seems so, that when you install rpm the not available libraries are installed autmatically. Do you have rpm-devel installed ?

ilja
21st May 2004, 09:40 PM
Originally posted by Lennart
anyway, rpm or not, could you maybe just point out to me how to do this yum upgrade? That's anyway what i want to do so I have a feeling that anything I do before that is rather a waste of time.

Here you are : http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html

Lennart
21st May 2004, 09:53 PM
Great mate, thanks for all the help. Yumming away.

ilja
21st May 2004, 10:00 PM
Please tell us your expierience, when you are ready. I never heard about someone yumming his system up ;)

bosox
21st May 2004, 10:43 PM
yes I would be curious to know how it goes also because I am weighing my install options for FC2 either net or yum/apt

Lennart
22nd May 2004, 07:08 PM
Hi guys,

Well, in a word: disaster. It was yumming for hours on end and when I rebooted I saw loads and loads of data flashing by and in the end startx wouldn't work. I think it said something about xfree86 not being up to scratch. I know I read somewhere, either on this forum or some other (maybe linuxiso) about someone giving quite detailed instructions what to do in order to avoid disaster when updrading from 1 to 2 with yum. However when I wanted to do it I couldn't find it anymore and anyway I usually get stuck somewhere in the middle of these instructions so I thought I'ld have a go without them. Won't do that again in a hurry!
So if you want to try the same: go looking for these instructions!
I'll cool down for a while and then dl Fedora 2. As everybody alse says that seems to be the best way of doing it!

bosox
22nd May 2004, 11:37 PM
Thanks for the words of warning Lennart

thehagen
23rd May 2004, 11:16 AM
I yummed up my system sucessfully!! Followed instructions on http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html Had some problems with the kernel. Had to compile a new one, but everything works fine now :D

bosox
23rd May 2004, 08:30 PM
thehagen,

Thanks for the link I add it to may bookmarks & I will give it a shot sometime soon. Although I may attempt the upgarde using apt first:)

foolish
23rd May 2004, 08:42 PM
Upgrading from Core 1 to Core 2 using anything but anaconda isn't supported. It's not supposed to work, and in most cases it doesn't. Don't do it.

thehagen
23rd May 2004, 08:55 PM
I might have been lucky then. It works, I'm happy :)

bosox
23rd May 2004, 11:54 PM
Originally posted by foolish
Upgrading from Core 1 to Core 2 using anything but anaconda isn't supported. It's not supposed to work, and in most cases it doesn't. Don't do it.

I was just trying ro save some CDR"s maybe I'll do a net install with a boot .img ;)

bosox
24th May 2004, 12:47 AM
Would someone with an FC2 yum.conf with US mirrors be kind enough to post it for me, I would like to attempt an upgrade from FC1 to FC2 via YUM. I have only been able to find FC1 & FC2 test release yum conf files. I could use an apt.sources list also ;)

Thanks a bunch

Bosox