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

RPM 4.0.2 -- dbpath: unknown option?

94 views
Skip to first unread message

Clarke, Trevor CA - Toronto

unread,
Jun 18, 2001, 1:03:53 PM6/18/01
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0F818.77E05CF0
Content-Type: text/plain;
charset="iso-8859-1"

I'm attempting to create an RPM database using "/<rpmpath>/rpm --initdb
--dbpath /<rpmdbpath>" but get the message "--dbpath: unknown option".

Can anybody direct me what I should do or what I've done incorrectly?

I'm using RPM 4.0.2 on Solaris 2.6.

Thanks,

Trevor

(Note: Disregard disclosure statement if attached below -- this is out of my
control!)


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message and are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly prohibited.


------_=_NextPart_001_01C0F818.77E05CF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RPM 4.0.2 -- dbpath: unknown option?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm attempting to create an RPM =
database using &quot;/&lt;rpmpath&gt;/rpm --initdb --dbpath =
/&lt;rpmdbpath&gt;&quot; but get the message &quot;--dbpath: unknown =
option&quot;.&nbsp; </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Can anybody direct me what I should do =
or what I've done incorrectly?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm using RPM 4.0.2 on Solaris =
2.6.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Trevor</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">(Note: Disregard disclosure statement =
if attached below -- this is out of my control!)</FONT>
</P>
<BR>
<BR>
<BR>

<P><B><FONT SIZE=3D2 FACE=3D"Arial">This message (including any =
attachments) contains confidential information intended for a specific =
individual and purpose, and is protected by law.&nbsp; If you are not =
the intended recipient, you should delete this message and are hereby =
notified that any disclosure, copying, or distribution of this message, =
or the taking of any action based on it, is strictly =
prohibited.</FONT></B></P>

</BODY>
</HTML>
------_=_NextPart_001_01C0F818.77E05CF0--

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

Nathan Owen

unread,
Jun 18, 2001, 1:41:02 PM6/18/01
to
To me it sounds like rpm is not finding the popt alias file. Try using
"/<rpmpath>/rpm
-vv --initdb --define '_dbpath /<rpmdbpath>'"

rpm looks for the alias file in /usr/lib/rpm/rpmpopt-4.0.2. It's hard
coded and there is no way to specify the location at runtime, and best
of all it doesn't complain if it isn't there, you just get VERY strange
responses from rpm (as you've found).

On a related note, does anyone know how much functionality is in
/bin/rpm if this file is not there to specify the exec aliases?

Nathan Owen

> "Clarke, Trevor (CA - Toronto)" wrote:
>
> I'm attempting to create an RPM database using "/<rpmpath>/rpm
> --initdb --dbpath /<rpmdbpath>" but get the message "--dbpath: unknown
> option".
>
> Can anybody direct me what I should do or what I've done incorrectly?
>
> I'm using RPM 4.0.2 on Solaris 2.6.
>
> Thanks,
>
> Trevor
>
> (Note: Disregard disclosure statement if attached below -- this is out
> of my control!)
>
> This message (including any attachments) contains confidential
> information intended for a specific individual and purpose, and is
> protected by law. If you are not the intended recipient, you should
> delete this message and are hereby notified that any disclosure,
> copying, or distribution of this message, or the taking of any action
> based on it, is strictly prohibited.

_______________________________________________

Clarke, Trevor CA - Toronto

unread,
Jun 18, 2001, 2:19:52 PM6/18/01
to
Thanks Nathan.

When i ran it using the your input below, i got the following message:

"error: Macro % has illegal name (%define)"

The command line is being run from an install file for another system. The
installation continues even though this error appears -- however, no rpm db
is created. This is my first time working with RPM and I would assume that
something should be created when i run the command you provided below -- it
this the correct assumption?

Cheers,

Trevor

Nathan Owen

- This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. -

Nathan Owen

unread,
Jun 18, 2001, 3:06:54 PM6/18/01
to
when I run

rpm --initdb --define '_dbpath /var/tmp' -vv

I get the following output:
D: opening db index /var/tmp/Packages create mode=0x102
D: locked db index /var/tmp/Packages
D: closed db index /var/tmp/Packages

and the file /var/tmp/Packages is created.

try running "rpm --define '_dbpath /var/tmp' --eval %_dbpath" to make
sure %_dbpath is being set properly (it should be the same value that
you assigned it in the define argument)

You should be able to use --dbpath instead of the define. Is your
rpmpopt file in the right place?

0 new messages