Re: Yum in RHEL5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2008-03-13 at 10:55 +0530, Binand Sethumadhavan wrote:
> Hello all,
> 
> I am trying to build my own yum repository to make packages of my
> choice available for distribution within my organization. I have a set
> of packages that I are not part of the official distribution. I am
> quite at home with the procedure in earlier Redhat versions, but with
> RHEL5 (the first version to use yum) I am hitting a roadblock.
> 
> Here is what I have:
> 
> I have an RPM package: cronolog-1.6.2-10.pg.x86_64.rpm. It installs
> cleanly on my test system (rpm -U --test).
> 
> I created a directory, /home/testrepo/RPMS and copied this RPM there.
> 
> I ran createrepo:
> 
> [root@meibok ~]# createrepo /home/testrepo/RPMS
> 1/1 - cronolog-1.6.2-10.pg.x86_64.rpm
> Saving Primary metadata
> Saving file lists metadata
> Saving other metadata
> 
> I created a file in /etc/yum.repos.d:
> 
> [root@meibok ~]# cat /etc/yum.repos.d/test.repo
> [test]
> name = Test Repo
> baseurl = file:///home/testrepo/RPMS
> enabled = 1
> gpgcheck = 0
> 
> I also disabled a lot of features from the default yum install of
> RHEL, in particular:
> 
> I disabled rhel5.repo and rhel-debuginfo.repo
> I disabled the plugin for RHN in rhnplugin.conf
> I edited my yum.conf to read:
> 
> [root@meibok ~]# cat /etc/yum.conf
> [main]
> cachedir=/var/cache/yum
> keepcache=0
> debuglevel=10
> errorlevel=10
> logfile=/var/log/yum.log
> pkgpolicy=newest
> distroverpkg=redhat-release
> tolerant=1
> exactarch=1
> obsoletes=1
> gpgcheck=0
> plugins=1
> metadata_expire=1800
> 
> # PUT YOUR REPOS HERE OR IN separate files named file.repo
> # in /etc/yum.repos.d
> 
> Now, when I run yum:
> 
> [root@meibok ~]# yum info cronolog
> Loading "installonlyn" plugin
> "rhnplugin" plugin is disabled
> Running "config" handler for "installonlyn" plugin
> Yum Version: 3.0.1
> COMMAND: yum
> Installroot: /
> Ext Commands:
> 
>    cronolog
> Setting up repositories
> test                      100% |=========================|  951 B    00:00
> Reading repository metadata in from local files
> Setting up Package Sacks
> primary.xml.gz            100% |=========================| 1.0 kB    00:00
> ################################################## 1/1
> Reading Local RPMDB
> Matching packages for package list to user args
> [root@meibok ~]#
> 
> That's all. What am I doing wrong or missing? Any pointers will be appreciated.
> 


1. thank you for the detail in your report. You were fairly thorough and
that is helpful.

2. what arch is the machine where you're running yum? run these two
commands for me:
    a. uname -m
    b. cat /etc/rpm/platform


thanks
-sv


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux