Marcus Habermehl (BMH1980) schrieb:
Jeff Johnson schrieb:
On Mar 29, 2007, at 8:14 PM, Marcus Habermehl (BMH1980) wrote:
Hi.
Is there any way, to enable the --fileconflicts option on installing
and updating as default?
Hmmm, what version of rpm? My version of rpm has file conflicts
disabled, RH's is enabled.
Maybe a special macro, a configure option or a patch or anything else.
I've tried it with /etc/popt. It was working. But -qi / --info
wasn't working after my changes in /etc/popt. Because of this I must
remove the popt alias.
No popt is the way to add and explivit --fileconflicts when
Try this (untested, but simple enough that I have a prayer of typing
correctly)
rpm alias -U --upgrade --fileconflicts
Hmmm, perhaps your alias for -i is what broke --info. rpm has 3
different
meanings for -i that are contextually dependent for hysterical reasons.
FWIW, -U is same as -i if package is not installed, so always use -U.
So there is no other way to activate --fileconflicts per default?
I think it isn't a good idea to disable fileconflicts per default.
That's the reason for me to activate it.
I've found a patch in the FC rpm package.
--- rpm-4.4.1/lib/poptI.c.conflicts 2005-03-21 10:19:45.000000000 +0000
+++ rpm-4.4.1/lib/poptI.c 2005-03-21 10:19:52.000000000 +0000
@@ -16,8 +16,7 @@
/*@unchecked@*/
struct rpmInstallArguments_s rpmIArgs = {
0, /* transFlags */
- /* probFilter */
- (RPMPROB_FILTER_REPLACEOLDFILES | RPMPROB_FILTER_REPLACENEWFILES),
+ 0, /* probFilter */
0, /* installInterfaceFlags */
0, /* eraseInterfaceFlags */
0, /* qva_flags */
Is this the way how I can activate --fileconflicts per default?
Best regards
Marcus
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list