View previous topic :: View next topic |
Author |
Message |
danboston n00b
Joined: 17 Nov 2016 Posts: 47
|
Posted: Tue Apr 18, 2017 11:33 pm Post subject: emerge --unsync |
|
|
Did an "emerge --sync". Regretting it. I've not actually emerged nor unmerged anything since. Time to revert. The "emerge --unsync" is a handy command that lets one undo the effect of the last "emerge --sync".
To bad there is no such command ... or is there, but under a less-obvious moniker?
Thank you. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Wed Apr 19, 2017 1:13 am Post subject: |
|
|
People ask for this somewhat often, but there is no such command. You could sync to an older mirror, if you found one (or kept one of your own) that was sufficiently out of date. If you have not emerged anything yet, then no damage has been done. Why do you regret this sync? How can we help you move forward? |
|
Back to top |
|
|
danboston n00b
Joined: 17 Nov 2016 Posts: 47
|
Posted: Wed Apr 19, 2017 2:06 am Post subject: |
|
|
Thank you for the replies.
p.s. The regret was caused by a huge long error message from an emerge world (before it started, so I was able to tell it to just please stop emerging this time) where apparently anything that used, was used by, or even slightly incorporated perl was a problem for emerge. thread here.
p.p.s. Just seemed an --unsync would be easier/faster than a restore of "/" from backup. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Wed Apr 19, 2017 2:32 pm Post subject: |
|
|
What you have to do is tar up /usr/portage before you sync, so you can restore it if you need to. This is especially true if, after syncing, a package you use has disappeared or the version you have decided to stay at has disappeared. . You can then restore it to /usr/local/portage if you have a local overlay there. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Apr 19, 2017 2:55 pm Post subject: |
|
|
danboston,
You can't live in the past.
Do your --sync whenever you like but pick your time to deal with the update. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Thu Apr 20, 2017 1:04 am Post subject: |
|
|
In those cases where you absolutely must stay in the past for some particular package, you would be much better off pinning it in a local overlay as soon as you decide you want not to upgrade, rather than waiting until the Gentoo developers move to remove it.
As Tony says, an archive of /usr/portage is sufficient to go back in time. A squashfs of a known-good tree is relatively space efficient (currently ~86M (almost double from a few years ago, if I recall correctly)) way to retain a historical tree. |
|
Back to top |
|
|
xicod n00b
Joined: 03 Oct 2013 Posts: 18
|
|
Back to top |
|
|
Maffblaster Developer
Joined: 01 May 2007 Posts: 70 Location: Spokane, Washington, USA
|
|
Back to top |
|
|
Maffblaster Developer
Joined: 01 May 2007 Posts: 70 Location: Spokane, Washington, USA
|
|
Back to top |
|
|
|