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

Re: rpm



Tim Huxel wrote:
> 
> When I run rpm -q glibc
> I get glibc 2.1.2-11
> 
> Tim Huxel wrote:
> 
> > I'm confused.I run rpm -q glibc-2.1.2-11.i386.rpm
> > and it says package not installed so I run rpm -ivh
> glibc-2.1.2-11.i386.rpm
> > and it says package already installed so then I run
> > rpm -e glibc-2.1.2-11.i386.rpm and it says package not
> > installed.
> > Anyone know what i'm doing wrong?

The names in the databas used by query (-q) and erase (-e)
are shortened. the '.rpm' suffix is dropped and
the archecture part , like '.i386', '.i686', or '.noarch',
is stored as a seperate field. the version and release
part can be used in the query, since you can have multiple
versions and releases installed at the same time.

ex:
kernel-2.2.16-22.i686.rpm
is the kernel, version 2.2.16, release 22
for intel 686 CPU's.
you can also have kernel-2.2.14-10 and kernel-2.2.16-14
installed at the same time.
using the version and release codes, you can query or
erase specific versions.
You can get query to print the arch using
the --queryformat option or editing the macros.
(see rpm man page)

	-Thomas





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