View previous topic :: View next topic |
Author |
Message |
jeffss n00b
Joined: 13 Sep 2019 Posts: 55
|
Posted: Wed Jun 21, 2023 4:41 pm Post subject: some uses for git on mantaining Gentoo |
|
|
there are some uses of git which are useful for reducing issues when upgrading the system and often it takes a while to upgrade the system, for many reasons. It is useful to branch the portage configurations directory (default /etc/portage/*) according to different moments on the update so that it is possible to apply, change and reverse different configurations better, also often the update of the repositories directory (default /var/db/repos/*) brings the issue of not being able to recompile packages already present on the system, which is something that could be avoided by being able to refer to some version for backup of that folder as needed |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1659 Location: Germany
|
Posted: Tue Jul 11, 2023 6:53 am Post subject: |
|
|
My experience while using gentoo for round about 20 years now as a software developer: Update often and stay on stable. Huge gaps between updates tend to be more difficult than updates every week or even days.
If you really need a compareable and reliable installation and configuration, then do it and run it in a container which can be freezed or rolled back.
Or run a seperate installtion which is a copy and update it first. Or run a binhost on a diffrerent machine and compile the packages there first. If it fails there the main install will not be affected. _________________ Forum Guidelines
PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Tue Jul 11, 2023 4:19 pm Post subject: Re: some uses for git on mantaining Gentoo |
|
|
jeffss wrote: | It is useful to branch the portage configurations directory (default /etc/portage/*) | Can that be done without .git directory droppings left behind on the main file system? If it could write to /var/cache or /var/db or something, that could be useful. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1136 Location: Richmond Hill, Canada
|
Posted: Tue Jul 11, 2023 8:50 pm Post subject: Re: some uses for git on mantaining Gentoo |
|
|
pjp wrote: | jeffss wrote: | It is useful to branch the portage configurations directory (default /etc/portage/*) | Can that be done without .git directory droppings left behind on the main file system? If it could write to /var/cache or /var/db or something, that could be useful. |
It is possible to use global flag "--git-dir /path/to/alternative/git" or environment variable "GIT_DIR=/path/to/alternative/git" for git command but I think it is whole can of warm if you use it. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Tue Jul 11, 2023 9:14 pm Post subject: |
|
|
Thanks for the warning :) git is still on my someday list. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|