Re: Recover configuration file with rpm

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

 



On Sun, 2006-05-28 at 16:18 -0400, Tim Largy wrote:
> I edited a configuration file and didn't save the original :)
>
> $ pwd
> /etc/samba
> $ mv smb.conf smb.conf.save
> $ rpm --install --replacepkgs --allfiles
> /var/cache/yum/base/packages/samba-common-3.0.10-1.4E.6.i386.rpm

For what it's worth, it's relatively painless to open RPM files in an
archive handling program, like file roller, and just copy out the one
file you want to get from the original packages.  That'd work fairly
easily for a program like Samba, but not for any RPM that dynamically
created a configuration file during the installation process.

... Just in case this sort of thing crops up again.

-- 
(Currently running FC4, occasionally trying FC5.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux