public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Question about emerge sync and where it all goes.
@ 2024-03-25  2:58 Dale
  2024-03-25  9:23 ` Michael
  0 siblings, 1 reply; 4+ messages in thread
From: Dale @ 2024-03-25  2:58 UTC (permalink / raw
  To: gentoo-user

Howdy,

I've mentioned before that I build my packages in a chroot.  I have a OS
copy on a separate drive.  I do this because of the long compile times
of some packages.  On occasion tho, I catch the tree in a bad place. 
Some conflict or other happens and I need to sync again to get fixes
etc.  Given my process tho, I don't want to sync the chroot without also
syncing my main system because the two will not be in sync and I'll lose
my update since it deletes files as well including any updates I did
emerge successfully.  I need the two to be identical.  So, I'd like to
sync my main system and then copy the new data over to the chroot
without copying the rest of the OS.  I did this with the following
command earlier. 

rsync -av --progress --delete  /var/cache/portage/tree/*
/backup/gentoo-build/var/cache/portage/tree/

As you can see, my tree location is not the default.  It is located at
/var/cache/portage/tree/.  It's the same on the chroot obviously.  Would
the above command copy all the needed files/directories over that it
needs after a emerge sync or is there more to it?  The reason I think it
needs more, when I tried to do the usual emerge -aukDN world on my main
system, it wanted to emerge more packages than the chroot did.  I
suspect there is more to it than just the tree directory. 

Anyone have the details on this?  Anyone know what other
files/directories need to be copied over as well?

Thanks.

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-26  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25  2:58 [gentoo-user] Question about emerge sync and where it all goes Dale
2024-03-25  9:23 ` Michael
2024-03-26  0:37   ` Dale
2024-03-26  9:38     ` Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox