Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rpm --install problems

1 view
Skip to first unread message

Gordon Stewart

unread,
Dec 5, 2001, 11:43:16 AM12/5/01
to
Dear List

I have installed webmin-0-92 RPM using the command: rpm --install
webmin-0-92, This worked fine, but when I query the database by rpm -q
webmin* there are no entrys. When I try and remove it, it tells me that it
is not there. How can I remove it to install webmin-0-93. If i had
installed it by rpm -Uvh webmin-0-92 then I would be able to do: rpm -q
webmin* . Why is this and can anyone tell me how to remove webmin-0-92?

I am more concerned that I can not erase webmin-0-92 as it tells me that it
is not installed. When all of the config files are there and I can use
webmin. I have install webmin before using rpm -Uvh webmin-0-92 and removed
it with the command rpm -e webmin and it worked fine. The only difference I
see is that I installed it using rpm --install webmin-0-92 which DOES NOT
update the database as it should.

Thanks

Gordon

_______________________________________________
Rpm-list mailing list
Rpm-...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list

Stefan Siegel

unread,
Dec 5, 2001, 11:48:11 AM12/5/01
to
Es schrieb Gordon Stewart:

> I have installed webmin-0-92 RPM using the command: rpm --install
> webmin-0-92, This worked fine, but when I query the database by rpm -q
> webmin* there are no entrys. When I try and remove it, it tells me that it
> is not there. How can I remove it to install webmin-0-93. If i had
> installed it by rpm -Uvh webmin-0-92 then I would be able to do: rpm -q
> webmin* . Why is this and can anyone tell me how to remove webmin-0-92?

You have to remove the asterisk. Wildcard signs are not allowed in rpm
queries. So "rpm -q webmin" should give you "webmin-0-92".
a "rpm -e webmin" should remove the package.

--
                                                        _     
Tschüss und bis demnächst/à bientôt,                  _|_|_   
                                                       (")   *
                                    Stefan             /v\  / 
                                                     »(   )«  Penguin Powered!
 +----------------------------------------------------(m-m)------------------+


�����������������������������������Ѧo��Ëfj)bž b�Ôi�ùb��ëyØZ�÷(š m���þX�¶f������ÿr��������–+-Šw��ºfþX¬

Aaron Gaudio

unread,
Dec 5, 2001, 12:58:21 PM12/5/01
to

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

And lo, upon Wed, Dec 05, 2001 at 12:16:53PM -0500, Jeff Johnson spaketh th=
usly:

>=20
> The above is perfectly correct, but let me supply a technical correction.
>=20
> Wild cards, more technically, regex's and/or globs through fnmatch, are
> permitted on the command line in rpm-4.0.3, try
> rpm -qa XFree*
>=20
> I hasten to point out that I don't believe that this functionality
> is going to be useful at all on the rpm CLI. The arguments to rpm -qa
> are package names, not files, so the regex/glob expressions are applied
> to database keys, not files on path, and there is little reason to
> believe that I can "fake" a file system onto a database retrieval key
> through regex/glob sufficiently well to have implemented useful and/or
> intuitive functionality.

Would this work?
rpm -qa 'XFree*'
That would prevent the shell from expanding the '*' character, and=20
since you say wild cards are supported by 4.03, shouldn't that allow rpm's
pattern matching to work properly?

--=20

Aaron Gaudio prothontar @ onebo=
x.com
GnuPG Public Key: http:/www.cs.rit.edu/~adg1653/pgp_key.asc
---------------
http://www.rit.edu/~adg1653
"He who depends upon the grace of others for the defense of his liberties
has already relinquished them."
---------------
Email Usage Policy: http://www.rit.edu/~adg1653/email.shtml

--CE+1k2dSO48ffgeK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjwOXYcACgkQwXDG7ZQN91ebSgCgtuSHWEdnYT8rxALXYdvmumYd
t8kAoKqq9fXOvzXQOqoTvuC7jAgIndcB
=IZDE
-----END PGP SIGNATURE-----

--CE+1k2dSO48ffgeK--

Bernd Petrovitsch

unread,
Dec 5, 2001, 12:14:48 PM12/5/01
to
In message <000001c17dab$b63ec090$cc13...@net800.co.uk>, "Gordon Stewart" wrot
e:

>I have installed webmin-0-92 RPM using the command: rpm --install
>webmin-0-92, This worked fine, but when I query the database by rpm -q
>webmin* there are no entrys. When I try and remove it, it tells me that it

Do `rpm -qa | grep webmin`

>is not there. How can I remove it to install webmin-0-93. If i had

With `rpm -e webmin`
Probably.

>installed it by rpm -Uvh webmin-0-92 then I would be able to do: rpm -q
>webmin* . Why is this and can anyone tell me how to remove webmin-0-92?

`rpm -U webmin-0-93.i386.rpm` (or whatever the name of the file ist).

Bernd
--
Bernd Petrovitsch Email : be...@gams.at
g.a.m.s gmbh Fax : +43 1 205255-900
Prinz-Eugen-Straße 8 A-1040 Vienna/Austria/Europe
LUGA : http://www.luga.at

Jeff Johnson

unread,
Dec 5, 2001, 12:24:02 PM12/5/01
to
On Wed, Dec 05, 2001 at 05:46:34PM +0100, Stefan Siegel wrote:
> Es schrieb Gordon Stewart:

> > I have installed webmin-0-92 RPM using the command: rpm --install
> > webmin-0-92, This worked fine, but when I query the database by rpm -q
> > webmin* there are no entrys. When I try and remove it, it tells me that it
> > is not there. How can I remove it to install webmin-0-93. If i had
> > installed it by rpm -Uvh webmin-0-92 then I would be able to do: rpm -q
> > webmin* . Why is this and can anyone tell me how to remove webmin-0-92?
>
> You have to remove the asterisk. Wildcard signs are not allowed in rpm
> queries. So "rpm -q webmin" should give you "webmin-0-92".
> a "rpm -e webmin" should remove the package.
>

The above is perfectly correct, but let me supply a technical correction.

Wild cards, more technically, regex's and/or globs through fnmatch, are


permitted on the command line in rpm-4.0.3, try
rpm -qa XFree*

I hasten to point out that I don't believe that this functionality


is going to be useful at all on the rpm CLI. The arguments to rpm -qa
are package names, not files, so the regex/glob expressions are applied
to database keys, not files on path, and there is little reason to
believe that I can "fake" a file system onto a database retrieval key
through regex/glob sufficiently well to have implemented useful and/or
intuitive functionality.

The intended use for the implementation is in the rpmlib API, as it's now
possible to use a database iterator with a complex, multitag query match,
using either regex's or globs/fnmatch, to filter the headers retrieved
based on tag content.

This may someday work it's way into --queryformat syntax, but I still
don't believe that I'm ever gonna be able to document that suffciently
well to make even that useful, as --queryformat seems to be a big mystery
to most people I talk to.

If the above doesn't make sense, don't worry, be happy, and continue using
rpm -qa | grep 'XFree*'
which is the Right Answer for the rpm CLI.

73 de Jeff

--
Jeff Johnson ARS N3NPQ
j...@jbj.org (j...@redhat.com)
Chapel Hill, NC

Bernd Petrovitsch

unread,
Dec 5, 2001, 12:29:22 PM12/5/01
to
In message <2001120512...@eastham.redhat.com>, Jeff Johnson wrote:
>If the above doesn't make sense, don't worry, be happy, and continue using
> rpm -qa | grep 'XFree*'
>which is the Right Answer for the rpm CLI.

The * there has a different semantics (namely the usual reg-exp one)
then in the file globbing case done by a shell.

Bernd
--
Bernd Petrovitsch Email : be...@gams.at
g.a.m.s gmbh Fax : +43 1 205255-900
Prinz-Eugen-Straße 8 A-1040 Vienna/Austria/Europe
LUGA : http://www.luga.at

Jeff Johnson

unread,
Dec 5, 2001, 12:43:41 PM12/5/01
to
On Wed, Dec 05, 2001 at 06:28:04PM +0100, Bernd Petrovitsch wrote:
> In message <2001120512...@eastham.redhat.com>, Jeff Johnson wrote:
> >If the above doesn't make sense, don't worry, be happy, and continue using
> > rpm -qa | grep 'XFree*'
> >which is the Right Answer for the rpm CLI.
>
> The * there has a different semantics (namely the usual reg-exp one)
> then in the file globbing case done by a shell.

Correct. Be happy :-)

Jeff Johnson

unread,
Dec 5, 2001, 1:10:14 PM12/5/01
to
On Wed, Dec 05, 2001 at 12:46:47PM -0500, Aaron Gaudio wrote:
> And lo, upon Wed, Dec 05, 2001 at 12:16:53PM -0500, Jeff Johnson spaketh thusly:

>
> >
> > The above is perfectly correct, but let me supply a technical correction.
> >
> > Wild cards, more technically, regex's and/or globs through fnmatch, are
> > permitted on the command line in rpm-4.0.3, try
> > rpm -qa XFree*
> >
> > I hasten to point out that I don't believe that this functionality
> > is going to be useful at all on the rpm CLI. The arguments to rpm -qa
> > are package names, not files, so the regex/glob expressions are applied
> > to database keys, not files on path, and there is little reason to
> > believe that I can "fake" a file system onto a database retrieval key
> > through regex/glob sufficiently well to have implemented useful and/or
> > intuitive functionality.
>
> Would this work?
> rpm -qa 'XFree*'
> That would prevent the shell from expanding the '*' character, and
> since you say wild cards are supported by 4.03, shouldn't that allow rpm's
> pattern matching to work properly?

IMHO, there's no way to jigger up wild cards for use by rpm queries. The
implementation is there on the CLI only to demonstrate the functionality,
nothing more.

*Please* be happy. :-)

73 de Jeff

--
Jeff Johnson ARS N3NPQ
j...@jbj.org (j...@redhat.com)
Chapel Hill, NC

_______________________________________________

0 new messages