Linux / UNIX Tech Support Forum
This is a discussion on yum isnt working with local repo (RHEL5)- help? within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I have created local repo for yum to work on RHEL5 (Red Hat Enterprise Linux Server release 5.2 (Tikanga). ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Sponsored Links | ||
|
|
|
|||
|
Guys, I have done this many times. Local repo means yum should look to the local directory not RHN...
Anyway I have fixed this issue.... The problem was the name of the repo "/etc/yum.repos.d/myownrepo". just renamed it myownrepo to myown.repo it is working now. Have a look below # yum install squid Loading "rhnplugin" plugin Loading "security" plugin This system is not registered with RHN. RHN support will be disabled. localinfo 100% |=========================| 951 B 00:00 primary.xml.gz 100% |=========================| 729 kB 00:00 localinfo : ################################################## 2115/2115 Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package squid.i386 7:2.6.STABLE6-3.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================== =========================== Package Arch Version Repository Size ================================================== =========================== Installing: squid i386 7:2.6.STABLE6-3.el5 localinfo 1.2 M Transaction Summary ================================================== =========================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.2 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: squid ######################### [1/1] Installed: squid.i386 7:2.6.STABLE6-3.el5 Complete! Cheers |
|
|||
|
cheers dude this is working....thanks for the info
Quote:
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mailing from my Local Linux system | ricc | Linux software | 8 | 21-02-2010 10:53 PM |
| samba local and roaming profile | skumar704 | File Servers | 2 | 22-10-2009 12:36 PM |
| Repo for PSPP | satimis | Ubuntu / Debian | 2 | 29-04-2009 08:58 PM |
| Ldap and non-local users | bdptcob | Linux software | 1 | 15-02-2008 01:34 AM |
| How to share local machine folder to outside network | rajuk | Linux software | 1 | 25-03-2005 10:57 AM |