Welcome to the Linux Foundation Forum!

Example of when editing rpmrc is required?

Hi Linux community. This is Afiq, just a simple beginner that is trying to make his way in Linux craft ;)

I was wondering if there are any reason one should edit rpmrc file? Can anyone share an example where editing rpmrc is required?

Thanks in advance for anyone attention.

Comments

  • Hi @afiq , welcome to the forum!

    I'm in CentOS 8 here, and if I look at the beginning of file /usr/lib/rpm/rpmrc, I see the following:

    /*! \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.

    So, the answer is you shouldn't touch /usr/lib/rpm/rpmrc, but if you want to configure anything about RPM for all the system, you need to do it in /etc/rpmrc. If you are building a package, you may use a ~/.rpmrc file.

    For more details you can read the documentation here:

    http://ftp.rpm.org/max-rpm/s1-rpmrc-file-rpmrc-file-locations.html

    I hope that helps.

    Regards,
    Luis.

  • coop
    coop Posts: 842

    The link Luis gives does indeed explain the use of all three possible files. Note that in general, a normal user would never touch any of these unless they are building rpms during development, and even in that case I have never had to reconfigure any of these files. Normal system administration can get by with never touching them.

Categories

Upcoming Training