When I use
emerge --sync my older .ebuild files are removed. How to get newer .ebuild-s, but not lose older ?
One way to do this should be to override the default portage rsync options excluding the deletion related options. The default options are currently hardcoded in
Excluding "--force" and "--delete" you would add
Edit: Note that usually you would not want to keep any such ebuilds within the portage tree you're syncing to.
If you want to preserve specific ebuilds, there are two typical scenarios:
In both these cases the best solution is to copy these ebuilds to a local overlay. You may also have to copy ebuilds they're depending on. Here's how to create a simple local overlay: http://forums.gentoo.org/viewtopic-t-827407.html