[plug] rpm and dependencies

Russell Keith-Magee keithmag at cs.curtin.edu.au
Fri Mar 2 07:09:41 WST 2001


Ari Finander wrote:
> 
> Hello,
> 
> RedHat.com's security advisory for glibc recommends downloading:
> glibc-2.2-12.i386.rpm
> glibc-common-2.2-12.i386.rpm
> glibc-devel-2.2-12.i386.rpm
> glibc-profile-2.2-12.i386.rpm
> nscd-2.2-12.i38d.rpm
> and then installing them with:
> rpm -Uvh glibc-[2c]*
> rpm -Fvh glibc-[dp]*nscd*
> Now I understand what the rpm -Uvh and Fvh do, but what's with the
> package syntax and the brackets??

Oops...
Sorry for the second post - but I forgot to answer your first question.

Linux/Unix shells have a much richer set of shell expansion functions
than does DOS/Windows. In addition to:

* - expand to 1 or more characters
? - expand to exactly 1 character

you can use
[...] - expand to any one of the characters in the brackets.

i.e.,
[asdf] expands to either a, s, d, or f.
[2c] expands to either a 2 or a c.
You can also specify ranges:
[a-p1-4] expands to any letter between a and p, or any number between 1
and 4, inclusive.

So, glibc-[dp]* will expand to any name starting with glibc-d or glibc-p
(devel and profile in this case).

Kinda nifty little trick this one.

Russ %-)

-- 
-----------------------------------------------------------
Russell Keith-Magee
PhD Research Student
School of Computing, Curtin University of Technology
email: keithmag at cs.curtin.edu.au OR russ.magee at computer.org
WWW:   http://www.cs.curtin.edu.au/~keithmag
Ph: +61 8 9266 2129    FAX +61 8 9266 2819
-----------------------------------------------------------
Kiss your keyboard goodbye!



More information about the plug mailing list