Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have created local repo for yum to work on RHEL5 (Red Hat Enterprise Linux Server release 5.2 (Tikanga). I have done this many times and never faced such ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    49

    yum isnt working with local repo - help?

    Hi,

    I have created local repo for yum to work on RHEL5 (Red Hat Enterprise Linux Server release 5.2 (Tikanga).

    I have done this many times and never faced such issue
    Steps I followed

    1. mkdir /rhel5
    2. moved all RHEL DVD files to this Directory /rhel5
    3. installed createrepo RPM
    4. executed this command
    # cd /rhel5/Server/
    # createrepo -v .

    5. # vi /etc/yum.repos.d/myownrepo
    [localinfo]
    name=MyOwnRepo
    baseurl=file:///rhel5/Server/
    enabled=1
    gpgcheck=0
    #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

    6. yum clean all

    *****

    Here are the few outputs

    ]# yum list | more
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Installed Packages
    Deployment_Guide-en-US.noarch 5.2-9 installed
    GConf2.i386 2.14.0-9.el5 installed
    GConf2-devel.i386 2.14.0-9.el5 installed
    MAKEDEV.i386 3.23-1.2 installed
    MySQL-python.i386 1.2.1-1 installed
    NetworkManager.i386 1:0.6.4-8.el5 installed
    NetworkManager-glib.i386 1:0.6.4-8.el5 installed
    NetworkManager-gnome.i386 1:0.6.4-8.el5 installed
    ORBit2.i386 2.14.3-4.el5 installed

    ----------
    ---------- (output truncated)

    **********

    # yum info squid
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Installed Packages
    Name : squid
    Arch : i386
    Epoch : 7
    Version: 2.6.STABLE6
    Release: 3.el5
    Size : 3.3 M
    Repo : installed
    Summary: The Squid proxy caching server.
    Description:
    Squid is a high-performance proxy caching server for Web clients,
    supporting FTP, gopher, and HTTP data objects. Unlike traditional
    caching software, Squid handles all requests in a single,
    non-blocking, I/O-driven process. Squid keeps meta data and especially
    hot objects cached in RAM, caches DNS lookups, supports non-blocking
    DNS lookups, and implements negative caching of failed requests.

    Squid consists of a main server program squid, a Domain Name System
    lookup program (dnsserver), a program for retrieving FTP data
    (ftpget), and some management and client tools.

    *******

    # yum remove squid
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Remove Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package squid.i386 7:2.6.STABLE6-3.el5 set to be erased
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================== ===========================
    Package Arch Version Repository Size
    ================================================== ===========================
    Removing:
    squid i386 7:2.6.STABLE6-3.el5 installed 3.3 M

    Transaction Summary
    ================================================== ===========================
    Install 0 Package(s)
    Update 0 Package(s)
    Remove 1 Package(s)

    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Erasing : squid ######################### [1/1]

    Removed: squid.i386 7:2.6.STABLE6-3.el5
    Complete!

    *****

    Now the issue is when I try to install something with yum it say no package find

    # rpm -qa | grep squid

    # yum install squid
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Parsing package install arguments
    No package squid available.
    Nothing to do



    Can any body suggest what is wrong with this?

    Any comments/suggestions will be highly appreciated.

    Many thanks.

    Sam.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    Red hat doesn't want you to install with yum unless you have a valid license.

  3. #3
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434
    What's yum repolist say? Is myownrepo even recognized?
    Glenn
    Powered by Fedora 16 and Arch Linux

Posting Permissions

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