Re: Easier %config management?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 13, 2015 at 04:58:47AM +0000, Christopher wrote:
> For example, I can see which %config files have changed with `rpm -V`, but
> I can't see what the changes actually are unless I do `dnf download
> $myrpm`, extract it, and diff them. Alternatively, I could rename the
> configuration file, and do a `dnf reinstall $myrpm` to replace the
> original, and then diff them. Both of these methods are clunky, wasteful,
> and not without side-effects.
[...]
> rpm could track more than hashes of config files, and instead track the
> full file. This could be optional, as it uses more disk space, but disk
> space is cheap these days, and config files are relatively small. This
> would avoid having to re-download the rpm, and would make it easier to see
> what has been modified on their system. So, some users may find that a
> worthwhile trade-off.

Supermin has this problem too.  It solves it by downloading the
original RPMs ('dnf download', not 'dnf reinstall'), unpacking them
('rpm2cpio'), etc. but it's a pain in the rear.

  http://libguestfs.org/supermin.1.html

I'm guessing also this is something that Fedora Atomic has had to
solve.

Also, it would be better if packages by default never needed
configuration files.  You would only add a configuration file when you
need to change the default configuration.  A default installation of
Fedora would have an empty /etc (solving your problem ... in a
slightly different way).  Some packages have been heading in this
direction.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux