[Linux-users] FC yum
Bill Campbell
linux-sxs
Sun Aug 12 22:09:55 PDT 2007
On Sun, Aug 12, 2007, vu pham wrote:
>On Sun, 2007-08-12 at 21:44 -0700, Bill Campbell wrote:
>> On Sun, Aug 12, 2007, Lonni J Friedman wrote:
>> >yum search $package
>>
>> This is fine if one knows the package name. Often I've found
>> that I know the name of a program or library I want, not what
>> package it's in.
>>
>> My solution to this is that we maintain local mirrors of the
>> installation and update directories, and I wrote a script that
>> uses ``rpm -qpl $rpmfile'' to extract the component names in the
>> script, and build an index that I can grep to find the related
>> packages.
>>
>Bill, could you please explain a little bit more on "maintain local
>mirrors of the installation and update directories" ? If this package
>has never been installed/updated, how do I know its name ?
>For example, I want to install a radius server on my FC7, how do I know
>which radius server packages that FC7 has ? In this case, I do not know
>the package name.
The simplest way is probably to either search the installation media
directory or to copy it into a directory on a system. Make a directory,
say /centos/4.5/i386, then mount each CD or DVD image and copy it to that
directory. One could also do a loopback mount of a DVD iso which wouldn't
require the disk space.
The RPM packages would then be in /centos/4.5/i386/CentOS/RPMS so a command
``ls -1 /centos/4.5/i386/CentOS/RPMS/*radius*'' would give you a list of
the freeradius RPMs available.
BTW: We've been using freeradius for since 1998 or so with no problems.
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
If we got one-tenth of what was promised to us in these acceptance
speeches there wouldn't be any inducement to go to heaven. -- Will Rogers
More information about the Linux-users
mailing list