rpm --rebuild

Post Reply
Message
Author
klaus

rpm --rebuild

#1 Post by klaus »

hi

rpm --rebuild geht bei Redhat 8.0 nicht mehr.

Könnt ihr mir mal sagen was da los ist.

Das Paket rpm ist installiert.

danke

Plop

Re: rpm --rebuild

#2 Post by Plop »

Das kommt, weil rpm keine Beine hat - also kann es auch nicht gehen!

User avatar
heinrich
Posts: 219
Joined: 22. Sep 1999 11:22
Location: N49.137 E8.544

Re: rpm --rebuild

#3 Post by heinrich »

> rpm --rebuild geht bei Redhat 8.0 nicht mehr.
>
> Könnt ihr mir mal sagen was da los ist.

Die Funktionalität von "rpm --rebuild" wurde in das separate Programm rpmbuild(8) ausgelagert. Dummerweise funktioniert z.B. checkinstall (noch) nicht mit der neuen RPM Version sondern möchte unbedingt "rpm --rebuild". Die altbekannte Funktionalität muss allerdings in RedHat 8.0 (wie auch bereits in den 7.3.9x Betas) manuell nachgepflegt werden. Wie das genau geht steht in der Manpage zu rpm(8).

Schau mal in die Manpage rpm(8) insbesondere Abschnitt "Legacy Issues":

<blockquote><pre><font size="1" face="">code:</font><hr><font face="Courier New" size="2">
...
...
LEGACY ISSUES
Executing rpmbuild
The build modes of rpm are now resident in the /usr/bin/rpmbuild exe-
cutable. Although legacy compatibility provided by the popt aliases
below has been adequate, the compatibility is not perfect; hence build
mode compatibility through popt aliases is being removed from rpm.
Install the rpmbuild package, and see rpmbuild(8) for documentation of
all the rpm build modes previously documented here in rpm(8).

Add the following lines to /etc/popt if you wish to continue invoking
rpmbuild from the rpm command line:

rpm exec --bp rpmb -bp
rpm exec --bc rpmb -bc
rpm exec --bi rpmb -bi
rpm exec --bl rpmb -bl
rpm exec --ba rpmb -ba
rpm exec --bb rpmb -bb
rpm exec --bs rpmb -bs
rpm exec --tp rpmb -tp
rpm exec --tc rpmb -tc
rpm exec --ti rpmb -ti
rpm exec --tl rpmb -tl
rpm exec --ta rpmb -ta
rpm exec --tb rpmb -tb
rpm exec --ts rpmb -ts
rpm exec --rebuild rpmb --rebuild
rpm exec --recompile rpmb --recompile
rpm exec --clean rpmb --clean
rpm exec --rmsource rpmb --rmsource
rpm exec --rmspec rpmb --rmspec
rpm exec --target rpmb --target
rpm exec --short-circuit rpmb --short-circuit

...
</font><hr></pre></blockquote>

Editiere die Datei /etc/popt (oder neu anlegen falls diese noch nicht existiert) und trage dort die in der Manpage angegebenen Zeilen ein. Danach sollte "rpm --rebuild" wieder funktionieren.

klaus

Re: rpm --rebuild

#4 Post by klaus »

@Descartes

danke für deine Hilfe.

Habe herausgefunden das rpmbuild --rebuild funktioniert.

Vielen Dank

klaus

@Plop
deinen Kommentar finde ich Überflüssig.

klaus

Re: rpm --rebuild

#5 Post by klaus »

@Descartes

danke für deine Hilfe.

Habe herausgefunden das rpmbuild --rebuild funktioniert.

Vielen Dank

klaus

@Plop
deinen Kommentar finde ich Überflüssig.

Post Reply