Results 1 to 2 of 2

Thread: Setting up Yum on FC2

  1. #1
    Former Employee Newbie
    Join Date
    Oct 2005
    Posts
    31

    Default Setting up Yum on FC2

    If you do not already have Yum installed on your FC2 VPS and wish to have it set up, this will describe the basic process.

    For reference, Todd references our FC2 RPM repository and tamlyn shares his yum configuration in the thread Fedora Core 2 RPM repository

    First, obtain yum at our FC2 RPM repository:

    Code:
    bash-2.05b# cd /tmp
    bash-2.05b# wget ftp://66.249.6.114/linux/fedora/2/Fedora/RPMS/yum-2.0.7-1.1.noarch.rpm
    --20:16:54--  ftp://66.249.6.114/linux/fedora/2/Fedora/RPMS/yum-2.0.7-1.1.noarch.rpm
               => `yum-2.0.7-1.1.noarch.rpm'
    Connecting to 66.249.6.114:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done.    ==> PWD ... done.
    ==> TYPE I ... done.  ==> CWD /linux/fedora/2/Fedora/RPMS ... done.
    ==> PASV ... done.    ==> RETR yum-2.0.7-1.1.noarch.rpm ... done.
    Length: 135,634 (unauthoritative)
    
    100%[================================================================================================>] 135,634       --.--K/s
    
    20:16:54 (4.79 MB/s) - `yum-2.0.7-1.1.noarch.rpm' saved [135,634]
    Next, install the rpm:

    Code:
    bash-2.05b# rpm --install yum-2.0.7-1.1.noarch.rpm
    /etc/security/selinux/file_contexts: No such file or directory
    warning: yum-2.0.7-1.1.noarch.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
    bash-2.05b#
    Edit /etc/yum.conf to your liking. I'm configuring this one with mirrors.kernel.org because we have great connectivity to their server. Tamlyn shows some additional sources in the post referenced above.

    Code:
    [main]
    exclude=courier* apache* mod_ssl* httpd* perl mysql* php* spamassassin* kernel* exim*
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    retries=20
    
    [base]
    name=Fedora Core $releasever - $basearch - Base
    baseurl=http://mirrors.kernel.org/fedora/core/$releasever/$basearch/os/
    
    [updates-released]
    name=Fedora Core $releasever - $basearch - Released Updates
    baseurl=http://mirrors.kernel.org/fedora/core/updates/$releasever/$basearch/
    Lastly, test to make sure it works, using yum list. It should download headers and then list the packages.

    Code:
    bash-2.05b# yum list
    Gathering header information file(s) from server(s)
    Server: Fedora Core 2 - i386 - Base
    Server: Fedora Core 2 - i386 - Released Updates
    Finding updated packages
    Downloading needed headers
    sharutils-0-4.2.1-18.1.FC 100% |=========================| 3.4 kB    00:00
    tzdata-0-2005f-1.fc2.noar 100% |=========================|  29 kB    00:00
    krb5-devel-0-1.3.6-4.i386 100% |=========================|  12 kB    00:00
    telnet-1-0.17-28.FC2.1.i3 100% |=========================| 3.1 kB    00:00
    util-linux-0-2.12-19.i386 100% |=========================|  17 kB    00:00
    
     -- snip --
    
    Name                                Arch   Version                  Repo
    --------------------------------------------------------------------------------
    4Suite                              i386   1.0-1.0.a3.1             base
    Canna                               i386   3.7p1-6                  base
    Canna-devel                         i386   3.7p1-6                  base
    Canna-libs                          i386   3.7p1-6                  base
    ElectricFence                       i386   2.2.2-17.1               base
    FreeWnn                             i386   1.11-42.1                base
    FreeWnn-common                      i386   1.11-42.1                base
    FreeWnn-devel                       i386   1.11-42.1                base
    
    -- snip --
    Last edited by spry_dustin; 01-09-2006 at 05:25 PM. Reason: Using thread linking vs url

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2006
    Posts
    4

    Default Fedora Core 4

    Do you have an RPM repository for Fedora Core 4 containing yum?

Bookmarks

Posting Permissions

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