Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --unsync
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
danboston
n00b
n00b


Joined: 17 Nov 2016
Posts: 47

PostPosted: Tue Apr 18, 2017 11:33 pm    Post subject: emerge --unsync Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Wed Apr 19, 2017 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
danboston
n00b
n00b


Joined: 17 Nov 2016
Posts: 47

PostPosted: Wed Apr 19, 2017 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Apr 19, 2017 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Apr 19, 2017 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Apr 20, 2017 1:04 am    Post subject: Reply with quote

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
View user's profile Send private message
xicod
n00b
n00b


Joined: 03 Oct 2013
Posts: 18

PostPosted: Fri Apr 21, 2017 4:52 pm    Post subject: Reply with quote

There's a git repository, why not use it?

https://gitweb.gentoo.org/repo/gentoo.git/
Back to top
View user's profile Send private message
Maffblaster
Developer
Developer


Joined: 01 May 2007
Posts: 70
Location: Spokane, Washington, USA

PostPosted: Fri Apr 21, 2017 7:32 pm    Post subject: Reply with quote

This is an interesting discussion. I'll write a script that'll do this for ya, buddy!
_________________
Lets make Gentoo better together!
wiki: https://wiki.gentoo.org/wiki/User:Maffblaster
blog: http://dev.gentoo.org/~maffblaster/
Back to top
View user's profile Send private message
Maffblaster
Developer
Developer


Joined: 01 May 2007
Posts: 70
Location: Spokane, Washington, USA

PostPosted: Fri Apr 21, 2017 7:52 pm    Post subject: Reply with quote

Ah, looks like Portage would need a presync.d hook in order for me to accomplish something...
_________________
Lets make Gentoo better together!
wiki: https://wiki.gentoo.org/wiki/User:Maffblaster
blog: http://dev.gentoo.org/~maffblaster/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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