------_=_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 "/<rpmpath>/rpm --initdb --dbpath =
/<rpmdbpath>" but get the message "--dbpath: unknown =
option". </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. 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
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.
_______________________________________________
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. -
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?