Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

merge custom files to new Gentoo system

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Vieri
l33t
l33t
Posts: 935
Joined: Sun Dec 18, 2005 12:26 pm

merge custom files to new Gentoo system

  • Quote

Post by Vieri » Thu Mar 05, 2026 1:06 am

Hi,

I have quite a lot of custom files - mostly config files for etc but also other dirs as well as some binaries - I would like to merge to a new system.

I'm placing them all in ./overwrite/ so I have a structure similar to:

Code: Select all

./overwrite/etc/apache2
./overwrite/etc/pam.d
./overwrite/usr/local/
I can have both text files (usually config files) and binaries.

I can then do this:

Code: Select all

rsync -avb --suffix=.custom ./overwrite/ /
I don't think rsync can generate the diffs for me.
So at this point I'd probably need to search / for all the text files ending in .custom (or whichever suffix I used) ignoring the binaries and running "diff" on $file.custom and $file.
I was thinking of placing each diff in the same dir where $file is and naming it ._cfg$file (or whichever format is valid) so that I could then simply run dispatch-conf to interactively check and merge the changes.
I like the way dispatch-conf works, and I was wondering if I could use it for this.

Has anyone already done this?
Any suggestions or alternatives?

Thanks
Top
Banana
Administrator
Administrator
User avatar
Posts: 2394
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Thu Mar 05, 2026 6:42 am

rsync is capable of listing and comparing:
https://serverfault.com/questions/50600 ... -directory
https://unix.stackexchange.com/question ... irectories

But in your custom case, creating two files and comparing them would be easier.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic