On 24.04.2013 22:51, David G. Miller wrote: > poma <pomidorabelisima <at> gmail.com> writes: > >> >> On 24.04.2013 16:58, David G. Miller wrote: >>> Clemens Eisserer <linuxhippy <at> gmail.com> writes: >> >> […] >>>> What I am looking for is a way to make yum pass "--ignoresize" to rpm >>>> automatically. Is this possible somehow? >>>> >>>> Thank you in advance, Clemens >>>> >>>> 2013/4/24 Clemens Eisserer <linuxhippy <at> gmail.com>: >>> <SNIP> >>> As a workaround you can set rpm options through /etc/rpmrc. You'll have to >>> do the research to find out how to set it but it would then be used for all >>> rpm transactions. >>> >>> Cheers, >>> Dave >> >> rpmbuild != rpm :) >> >> poma >> > Actually, /etc/rpmrc is used by rpm; not rpmbuild. Frpmthe rpm man page: > > FILES > rpmrc Configuration > /usr/lib/rpm/rpmrc > /usr/lib/rpm/redhat/rpmrc > /etc/rpmrc > ~/.rpmrc > man 8 rpmbuild :) … GENERAL OPTIONS … --rcfile FILELIST … The default FILELIST is /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc:/etc/rpmrc:~/.rpmrc. … FILES rpmrc Configuration /usr/lib/rpm/rpmrc /usr/lib/rpm/redhat/rpmrc /etc/rpmrc ~/.rpmrc … > and from /usr/lib/rpm/rpmrc: > > [root@bend ~]# cat /usr/lib/rpm/rpmrc > #/*! \page config_rpmrc Default configuration: /usr/lib/rpm/rpmrc > # \verbatim > # > # This is a global RPM configuration file. All changes made here will > # be lost when the rpm package is upgraded. Any per-system configuration > # should be added to /etc/rpmrc, while per-user configuration should > # be added to ~/.rpmrc. > # > ############################################################# > You left out what is actually used - *optflags* & *arch* directives - to guess what. :) > Both rpm and rpmbuild use the same rc files. Probably not the best design > but take it up with the rpm project folks. > For some of the 'rpm' command options - *maybe* once upon a time. :) It doesn't work even with the RPM version 4.3.3 - EL4. ;) i.e. - RPM version 4.10.3.1 http://www.rpm.org/max-rpm/s1-rpm-install-additional-options.html#S2-RPM-INSTALL-EXCLUDEDOCS-OPTION /etc/rpmrc: excludedocs: 1 # rpm -i dstat-0.7.2-9.fc18.noarch.rpm error: bad option 'excludedocs' at /etc/rpmrc:1 # rpm -e dstat error: bad option 'excludedocs' at /etc/rpmrc:1 # yum install ./dstat-0.7.2-9.fc18.noarch.rpm error: bad option 'excludedocs' at /etc/rpmrc:1 … # yum erase dstat error: bad option 'excludedocs' at /etc/rpmrc:1 … But do work with i.e. /etc/rpm/macros.excludedocs: %_excludedocs 1 # rpm -qs dstat | grep "not installed" not installed /usr/share/doc/dstat-0.7.2 … not installed /usr/share/man/man1/dstat.1.gz or /etc/yum.conf: tsflags=nodocs Take into account that certain(rpm) directives don't work that way, anyway. poma -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org