
"yum update"를 사용하여 시스템 패키지를 업데이트한 후 덮어쓸 수 없는 구성 파일은 교체되지 않지만 근처에서 *.rpmnew 파일을 찾을 수 있습니다. 설계상 시스템 관리자는 구성 파일을 병합해야 합니다.
젠투 리눅스에는업데이트 도구를 기다리는 중, 다음과 같이 구성 파일 변경 사항을 대화식으로 병합할 수 있습니다.
Beginning of differences between /etc/pear.conf and /etc/._cfg0000_pear.conf
[...]
End of differences between /etc/pear.conf and /etc/._cfg0000_pear.conf
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
RHEL/Fedora/CentOS에서 대화형으로 구성을 병합하는 방법이 있는지 궁금합니다.
답변1
내가 찾은 Gentoo에 가장 가까운 etc-update
것은rpm 구성 파일:
# yum install -y rpmconf
# rpmconf -a
Configuration file `/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x86_64/jre/lib/security/US_export_policy.jar'
-rw-r--r--. 1 root root 620 Oct 2 16:38 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x86_64/jre/lib/security/US_export_policy.jar
-rw-r--r--. 1 root root 620 Dec 15 12:11 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x86_64/jre/lib/security/US_export_policy.jar.rpmnew
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
M : merge configuration files
Z : background this process to examine the situation
S : skip this file
The default action is to keep your current version.
*** aliases (Y/I/N/O/D/Z/S) [default=N] ?
Your choice: Y
답변2
이 yum 플러그인은 "--merge-conf" 명령줄 옵션을 추가합니다. 이 옵션을 사용하면 Yum은 패키지를 업데이트할 때 변경된 구성 파일을 어떻게 처리할지 묻습니다.
https://apps.fedoraproject.org/packages/yum-plugin-merge-conf
답변3
지금까지 내가 찾은 유일한 방법은 vimdiff입니다.