Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snapshot the repositories from other gentoo installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
denn0n
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2020
Posts: 87

PostPosted: Fri Jan 29, 2021 7:52 pm    Post subject: snapshot the repositories from other gentoo installation Reply with quote

hi , it's possible to get the snapshot from the repositories from a gentoo installation?, since after
Code:
emerge-webrsync
that create a snapshot of the repository in your computer this one can should be rsync it to other computer right

I have metered internet then i would like to save Mb

something like the package's are located in the distfiles folder in /var/cache/distfiles then i can copy and paste them

i have take a look in https://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html

and found


/usr/share/portage/config/sets/
Contains the default set configuration.
/var/lib/portage/world
Contains a list of all user-specified packages. You can safely edit this file, adding packages that you want to be considered in world set updates and removing those that you do not want to be considered.
/var/lib/portage/world_sets
This is like the world file but instead of package atoms it contains packages sets which always begin with the @ character. Use /etc/portage/sets/ to define user package sets.
/etc/portage/make.conf
Contains variables for the build process, overriding those in make.globals.
/etc/portage/color.map
Contains variables customizing colors.
/etc/portage/sets/
Contains user package set definitions (see portage(5)).
/etc/dispatch-conf.conf
Contains settings to handle automatic updates/backups of configuration files.
/etc/portage/make.profile/make.defaults
Contains profile-specific variables for the build process. Do not edit this file.
/var/db/repos/gentoo/profiles/use.desc
Contains the master list of USE flags with descriptions of their functions. Do not edit this file.
/etc/portage/make.profile/virtuals
Contains a list of default packages used to resolve virtual dependencies. Do not edit this file.
/etc/portage/make.profile/packages
Contains a list of packages used for the base system. The system and world sets consult this file. Do not edit this file.
/usr/share/portage/config/make.globals
Contains the default variables for the build process. Do not edit this file.
/var/log/emerge.log
Contains a log of all emerge output. This file is always appended to, so if you want to clean it, you need to do so manually.
/var/log/emerge-fetch.log
Contains a log of all the fetches in the previous emerge invocation.
/var/log/portage/elog/summary.log
Contains the emerge summaries. Installs /etc/logrotate.d/elog-save-summary.

but honestly i don't find the relation on those folders or files if some one know how that can be achieved i will appreciate the info thank you !
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Jan 29, 2021 9:16 pm    Post subject: Reply with quote

denn0n,

You can share the gentoo repo and the content of distfiles.

If you want your own rsync mirror the wiki can help.
Distfiles are a bit harder, you need a caching proxy. This fetches the distfiles on first demand and serves them from the cache of other systems.
I don't have a solution for that right now as http-replicator was removed is it required python2.

If you know all your distfiles are already fetched, they can be shared over nfs.
Come to that, the gentoo repo can be shared that way too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Fri Jan 29, 2021 9:59 pm    Post subject: Reply with quote

Sharing portage and distfiles over NFS works like a dream, any computer which runs a upgrade first will fetch the distfile(s) and others will happily use it, same with emerge --sync, one computer runs sync and all others have fresh portage as well. Portage and distfiles belong to portage:portage, therefore there is no need for remote root access.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Jan 29, 2021 11:13 pm    Post subject: Reply with quote

Buffoon,

What happens when several hosts wath to write to the nfs share at the same time?
Does nfs do proper locking?

I share my media collection over nfs but its read only everywher except the machine I use to add to it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
denn0n
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2020
Posts: 87

PostPosted: Fri Jan 29, 2021 11:30 pm    Post subject: Reply with quote

NeddySeagoon wrote:
denn0n,

You can share the gentoo repo and the content of distfiles.

If you want your own rsync mirror the wiki can help.
Distfiles are a bit harder, you need a caching proxy. This fetches the distfiles on first demand and serves them from the cache of other systems.
I don't have a solution for that right now as http-replicator was removed is it required python2.

If you know all your distfiles are already fetched, they can be shared over nfs.
Come to that, the gentoo repo can be shared that way too.


Thanks !

this is what i was looking for
Quote:
/var/db/repos/gentoo
set the localmirror it will take resources at the moment whit that it will be enough ! again thank you !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum