Re: Easy way to update Fedora

From: M. Lewis (_fedoralist__at_cajuninc.com)
Date: 07/16/05

  • Next message: John Bray: "Re: Why use "su -" rather than "su""
    Date: Fri, 15 Jul 2005 23:46:12 -0500
    To: Gerald Thompson <geraldlt@gmail.com>, For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Gerald Thompson wrote:
    > On 7/15/05, Deboo ^ <knowledgeful@gmail.com> wrote:
    >
    >>What is the easiest way to update Fedora. I have heard and read a lot
    >>about yum but it has never worked for me, tried it many times on
    >>different machines. I do nto know why, it just hangs on the first
    >>message and nothing happens. What do I need to put in /etc/yum.conf to
    >>make it work? Is there any sample yum.conf that would work out of the
    >>box? And later could change it to suit me more?
    >>
    >>Can someone provide a link to a good yum.conf I could use as a startign point?
    >>
    >>Thanks,
    >>Deboo
    >
    >
    > start by going to www.fedorafaq.org
    > - there is an yum.conf for FC3 - however you may not want to use that
    > one if you are using FC4
    > - even if you are using FC4 though, you can still print it out or keep
    > a copy of it.
    > - next in FC4 I believe you are supposed to use repo.d files instead
    > of tagging the repo's in your yum.conf
    > - since you are fairly new I would recommend going with fedora extras
    > and livna as your repo's
    > - the other option is the rpmforge packages - 4 RPMforge repositories
    > (FreshRPMS, PlanetCCRMA, Dries and DAG)
    > - THIS IS VERY IMPORTANT - do not mix fedora-extras/livna with
    > RPMforge - choose one or the other not both.
    > - if you want to get help with RPMforge repo's go here
    > http://dag.wieers.com/home-made/apt/ and http://freshrpms.net/ and
    > http://atrpms.net/dist/fc4/
    >
    > - now for fedora-extras/livna which is what I use
    > livna.org
    > - http://rpm.livna.org/configuration.html
    > - To start using the rpm.livna.org repository in yum simply install
    > the livna-release rpm package:
    > - rpm -ivh http://rpm.livna.org/fedora/4/i386/RPMS.lvn/livna-release-4-0.lvn.2.4.noarch.rpm
    > - don't forget to follow steps on the configuration page to install the gpg key
    >
    > fedora-extras
    > - rpm.livna.org is not a standalone repository. You must use
    > rpm.livna.org with Fedora Extras. In Core 4 Fedora Extras is included
    > in the default configuration and works out of the box. Fedora Core 3
    > users need to add Fedora Extras manually.
    > - http://fedoraproject.org/wiki/Extras/UsingExtras
    >
    > Once you have fedora-extras/livna installed you will be able to
    > install any package that is in the repo's, I am going to start with
    > searching packages first though.
    >
    > - log in as root
    > - su -
    > - to find a package - yum search 'package-name' or yum search 'any-keyword'
    > - once you find the package - double check if it is installed yum list
    > 'package-name'
    > - you can also do different type of searches before you actually install things
    > - yum list available 'package-name' - leave blank for all available
    > packages or type a package name
    > - yum list installed 'package-name' - shows you if a package is installed or not
    > - yum list updates - shows you all packages available for update
    > - yum check-update - does the same thing as list but shows the
    > packages differently
    > - yum info 'package-name' - tells you what a package does
    >
    > - now the reason I give all the search commands first is because you
    > can't hurt anything by doing searches or looking up info. It is a
    > good way to get familiar with package management and how to get info
    > on a package quickly
    >
    > - now there are different ways to install packages - depending on what
    > you are trying to accomplish
    >
    > UPDATES TO SYSTEM AND PROGRAMS:
    > - installing updates only
    > - yum update
    > - to update but exclude a package like kernel or selinux policies
    > - yum --exclude=kernel* update
    > - yum --exclude=selinux* update
    >
    > UPDATING WITH NO CONFIRMATION PROMPTS:
    > - I don't recommend this for really new users, but you can do updates
    > without confirmation, as I said for a new user it is better to have
    > confirmations.
    > - yum -y update
    > - will download and install all updates without asking your
    > permission, you can also do this with the exclusions too
    > - yum -y --exlude=kernel* update
    > - it will install all the updates except the kernel updates
    >
    > INSTALLING A PACKAGE
    > - if you find a package you want to install, make sure you know the
    > correct package name by using yum search and yum list first
    > - yum install 'package-name'
    > - this will automatically find all the dependencies for you
    > - yum remove 'package-name'
    > - this will remove a package and all its dependencies from your system
    >
    > REMOVING A PACKAGE THAT IS NOT IN THE REPOS
    > - this is a neat trick as well, say you installed the RPM for real
    > player or java, www.real.com, java.sun.com - you want to remove it
    > before you upgrade
    > - you can use yum to do this if you want
    > - yum list extras - this shows you all packages you installed with rpm
    > - yum remove 'package-name'
    >
    > - for more detailed info you can do:
    > man yum
    > info yum
    > man yum.conf
    > info yum.conf
    >
    > I hope the information is helpful.

    Great writeup Gerald! Thanks.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: John Bray: "Re: Why use "su -" rather than "su""

    Relevant Pages

    • Re: Preferred Method for Recompiling Apache on FC3?
      ... >> dependencies and hosing my system the next time the httpd package is ... > epoch number on your custom RPMs, so that updates from Fedora never ... I agree with Darren that tweaking the httpd SRPM is the way to go. ...
      (Fedora)
    • Re: update production systems
      ... Is "yum update" recommend for sensible production systems? ... It is better not to use Fedora for production servers. ... less frequent and possibly better tested than updates to Fedora. ... similarly configured test server before deploying to any production server. ...
      (Fedora)
    • Re: Feature Proposal: Rolling Updates (was Re: WHY I WANT TO STOP USING FEDORA!!!)
      ... kinks are worked out, the new package requires libfoo.9, then libfoo.9 ... everything that required libfoo.7 also has to be moved into updates. ... When you update Fedora ... I am well aware of libraries. ...
      (Fedora)
    • Re: [Fwd: Fedora Legacy Project]
      ... Anyone have the instructions on setting up fedora 3 for yum? ... All Fedora Legacy packages are signed with GPG keys. ... to continue to receive updates. ...
      (Fedora)
    • Re: Yum problem
      ... Fedora 7 is supposed to be a stable branch of the distribution. ... to offer new package builds. ... literally throw away all that and upgrade hundreds of packages to give ... Yum is no silver bullet either. ...
      (Fedora)